Newby Question on SwingWorker

Hello,
im new to swing, ive read the tutorial and a couple of articles. but im just not grasping what goes where.
i have a panel with two comboboxes that need to be populated from the database. i think the call to the database should go into the swingworker construct function. do i populate the boxes in the construct function or in the finished function? do i call jpanels add function to add the boxes in the finish function?
any help is appreciated. :)

The add() method for basic GUI components of your application should be called in the GUI initialization part of your constructor. After DB access is done in the SwingWorker.construct() method, populating some GUIs should be done in the finish() method.

Similar Messages

  • Vibe Z2 Pro - Few newby questions

    Hello, as a newby, I have a few simple questions about Z2 Pro and Vibe UI:
    (a) the main issue I have with Vibe UI on this phone is that the 4-apps-per-row look very huge, can you cange it to 5 apps per row with some settings? that would be really useful, as most other big phones are 5 apps per row.
    (b) can I make a guest mode? I think I saw with some other phones, that you can make a guest mode, so that your little cousens don't see all your apps that they don't need to see. I know there is secure mode but that is sothing else.
    (c) can you use Z2 Pro to make the payments with the phone? I know it has the NTF, but don't you need a finger print scanner for that?
    (d) in the camera settings, when I tested the phone, I could not choose 1:1 for the front camera, only for the selfie camera? Is that really so? I would not see why not.
    (e) in the camera settings, I can choose between 3:4 and 16:9 but I somehow could not find the settings for image resolution. what do I do if I want low resolution photos or very high resolutio photos?
    (f) I assume, you can't charge the phone wirelessly, that would be too much to ask for
    Thanks guys.

    Hi, ileyb
    Unfortunately I don't know, what is the "Security Zone" & will be very grateful if you explain a bit about this feature or provide an appropriate link.
    In order to switch to "stock android", you have to do the next:
    1) Go to Settings > About phone > Version information, tap 7 times on "Software version number". This will unlock "Developer options" settings section.
    2) Go to Settings > Developer options > Switch System UI Style and enjoy,

  • Newby question: I keep on getting "No size set" error

    Hello,
    I'm trying to integrate an Oracle database into my ASP.NET application and I keep on getting an error:
    "Parameter: ENTITY_NAME. No size set for variable length data type: String"
    The parameter is set as VarChar2 in the database, size 50, and the C# code sets this as a VarChar.
    My ASP.NET code is:
    Connect();
    // setup the command to the stored procedure
    OracleCommand DBCmd = new OracleCommand("HDB.PRL_PAYROLL_PKG.GET_ENTITIYID_BY_STOREID", this.Connection);
    DBCmd.CommandType = System.Data.CommandType.StoredProcedure;
    DBCmd.Parameters.Add("STOREID", OracleType.Number).Value = StoreID;
    DBCmd.Parameters.Add("STOREID", OracleType.Number).Direction = System.Data.ParameterDirection.Input;
    DBCmd.Parameters.Add("HDB_ENTITIES_ID", OracleType.Number).Direction = System.Data.ParameterDirection.Output;
    DBCmd.Parameters.Add("ENTITY_NAME", OracleType.VarChar).Direction = System.Data.ParameterDirection.Output;
    DBCmd.Parameters.Add("ENTITY_NAME", OracleType.VarChar).Size = 50;
    // Execute Procedure.
    OracleDataReader reader = DBCmd.ExecuteReader(System.Data.CommandBehavior.SequentialAccess);
    Can anybody steer me in the right direction?
    Thanks in advance for your help.
    Steve

    I have recieved no answers to this question.
    I think I'll go back to SQL Server 2005.

  • Newby question: I have a report that is featured and is available for Q&A and now I want to display this functionality in a web part of a site...

    Hi,
    I have a report that is featured and is available for Q&A and now I want to display this functionality in a web part of a site.
    I am using a trial right now, so I am not sure if I have all the necessary licences, but I am really new to this subject so a link to msdn page or blog item might already do the trick.
    This is what I have right now: 
    https://www.youtube.com/watch?v=rV2_m4iWxSE
    Thanks

    No that is not currently available. 
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Newby Question! Do I have keep my music on Itunes forever?

    OK - I just got my 30g Ipod yesterday and I spent 3 hours importing music and then deleted the music out of Itunes to save space on my computer. When I started to import more music, low and behold, it erased all my music on my Ipod from last night. If I have a 30g Ipod, will I have to leave 30g of music on my computer slowing it down forever? What do you suggest, I'm clueless. This is ridiculous. I did change the preferences to manually manage music but it said I will have "eject" my Ipod each time I disconnect, what does that mean.
    Help me please, I'm a total newby!
    Thank you

    If you have your iPod set to transfer your music manually, then that “do not disconnect” message will continue to be displayed on your iPod until you manually eject it.
    You can do this by clicking on the little eject icon next to the iPod listing in the source window of iTunes, or right click on it and select “eject”. Another way would be to use the “safely remove hardware” icon in the system tray next to the clock (looks like a grey rectangle with a green arrow above it). Click on this then select your iPod. Or through Windows, select start/my computer, right click on the iPod, select eject.
    Just a word (alright several!) about deleting the songs in iTunes.
    It is a very risky option. What if you needed to do a software restore (which is a very common fix for iPod problems)? This would erase the contents of your iPod. Any purchased music would be lost and need to be purchased again.
    What if the iPod were stolen/lost/needed repair?
    It’s much better to keep the music on your computer, and if storage space is at a premium, one option would be to buy an external hard drive, which are cheaper than ever nowadays, and keep your music library on that.
    The iPod is a music player and was never intended as a long term storage device for the only copy of your music.
    See also Backing up your music files in iTunes.
    Sorry for the sermon, but we see a lot of folks weeping and wailing here that they lost all their music.

  • Newby questions

    Hello All,
    I am new to wireless and my company is about to pilot an internal iPad app. I am a network specialist in an IT department of a business that requires high security. I have received recommendations to look at Cisco access point routers due to their security features.
    Are there any guides to give me a high level understanding about wireless access, including terminology, differences between technologies and deployment strategies?
    The recommendation was for the Aironet 3502e. The iPads in our pilot project will be used in a public area of our business. At this point we are not ready to offer WiFi access in the public area. That may change. The iPads will connect to at least one server on our production network. If the pilot goes well we will be deploying this to several of our remote offices. Is the 3502e the best option for this project? Is there another Cisco device that may be better suited for our project?
    If this should be posted elsewhere, please let me know and I will repost.
    I appreciate assistance you can provide
    Dan
    Sent from Cisco Technical Support iPad App

    SO from a purely RF coverage standpoint yes you could do that with the antennae. Is it the correct and best practices method of doing that? NO. Why? RF is a wave pattern carrier of data traffic. When the waves bounce off of multiple surfaces they ten to reflect and turn inward. Another example of this is a bathtub of water that is completely still. You drop a marble in at the far end and desire to get a perfect waveform at the other. As the waves spread out from the drop point the bounce off the walls and by the time they get to the other end the perfect wave is now only chop. The same happens with RF and when this happens multiple copies of the same wave hit the receiver at slightly different times. This is called multipath distortion or multipath interference. Second generation access points combated this with SiSo diversity technologies where the receiving access point would choose which of its two antennae to accept the signal from and then assuming the best path to then was also the best path back, send the return signal out of the chosen antenna that received the signal. The problem with mobility is that we are mobile and often the signal did not return adequately resulting in packet retries. Packet retries occur when the signal does not arrive properly at the intended receiver and the transmitting AP never gets the packet received message back from its intended target. OFDM modulation was the 3rd generation improvement still using SiSO to make diversity event stronger but still did not provide robust enough protection to allow for high speed data rates on RF. In come 802.11n. 802.11n allows for multiples of antennae to receive individual signals then phase shift them so that the signals can be combined to make a single, stronger, and more reliable reception of signal.This is called maximal ratio combining diversity or MRC. As much as a 40% SNR improvement. Then by phase shifting the return signal you can focus the return signal to the original sending device like a mag light. This is called beamforming. Since the signal is going back via multiple paths you can split the signal according to the number of transmitting antennae thus allowing for a quicker transmission of the data because you now have multiple paths back to achieve this. This is called spatial multiplexing. 802.11n also allows you to channel bond or add two adjacent channels together to in fact double the size of the pipe you are sending the data on. All of these technologies for 802.11n are the key components of MiMO technology or multiple in multiple out. We won't get into packet aggregation today as that could easily be another two pages of typing but just think of the old jumbo frame for Ethernet and you'll get the idea.
    5th and 6th generation access points are now being developed around even more antennae and new standards. 4x4 or four antenna per radio solutions are now nearing fielding to the market and promise even better throughput rates of up to 6gb of throughput based on the being developed 802.11ac standard. These new standards reside around competing technologies such as Multiuser MiMO and DiDO or distributed input distributed output. The coming years promise even more innovation as RF scientists learn even more efficient ways of utilizing our existing spectrum.
    So, back to the original question, spread the antennae around? No. Why? We need MRC diversity and MiMO to complete the task reliably. How? By placing the antennae apart in a linear path along a distance determined by multiples of the length of the wavelength. You can achieve this with individual antennae for each antenna connector on the AP and do the math calculations yourself OR just buy MiMO enable antennae that have proper placement of the antenna elements already placed for you.

  • Newby question: Server user

    Guys, i'm just starting installing the webserver on an HP-UX 11i. My question: which user should I set as the "Server user" when creating a new server? The help ercommends to use a "nobody" user, or the adm.
    It is safe to assign the adm user or should I create a "nobosy" user and to assign it as server user for the sw server?
    REgards,
    Vladimir

    Actually, it's probably best to create a separate user just for Web Server. It should have permissions to read the content Web Server is supposed to serve and nothing else.

  • Newby question: NAL Application

    hi all, I have a question : how to determine which novell application is distributing now? any log file i can check? or only viewing C:\nalcache?
    http://www.rayha.350.com/n.jpg

    Rayha,
    > hi all, I have a question : how to determine which novell application
    > is distributing now? any log file i can check? or only viewing
    > C:\nalcache?
    >
    Problem is that the NAL window appears to be to small to show the actual
    app name. Normally, you should see at least part of the app name. Since
    this is ZEN4 there is not much I can do, but a possible workaround would
    be to change the windows settings so that the title bar uses a smaller
    font.
    - Anders Gustafsson (Sysop)
    The Aaland Islands (N60 E20)
    Novell has a new enhancement request system,
    or what is now known as the requirement portal.
    If customers would like to give input in the upcoming
    releases of Novell products then they should go to
    http://www.novell.com/rms

  • Newby question: counting redelivering trials

    I use jms with MDB. I send messages successful to a queue and the MDB gets them. I put the message back
    to the queue if proccessing message did not succeed.
    My problem is, that I have to know how many times the
    message has been put to queue again, because this action should be done only ten times. The Message objects given to onMessage are readOnly - that I know.
    My question: is there a way to count the retries without creating a new Message and putting this new one(with an increased counter) to queue instead of
    original one? If mentioned idea is the only one please tell me too.

    Hi!
    I'm not quite sure, if I understood you right. Do you mean that you have to send same message again and again in the case that reciver won't get the message?
    You can use persistent messages that will stay in db if receiver is not present.
    QueueSender sender = ... //create sender
    sender.setDeliveryMode(DeliveryMode.PERSISTENT);Second quess: Your receiver is processing some task and if it fails, you want to send message again?
    Possible solution: use request-reply functionality included in poin-to-point domain. Then your sender or requestor will block until receiver will send reply back. Your sender can read the reply and if reply contains an error message, send message again and stop sending after ten times.
    Does this help you at all?
    -Raine-

  • Newby Question (copy / paste in timeline)

    I have a section in my timeline called "ABOUT". It contains
    three animated tabs. What I did is copy this animation and apply it
    to the "SERVICES" section. The problem is that the tabs and text
    pages need to be different for each section. What is the best way
    to change this info in the "SERVICES" section.
    Hope this question is understandable and not beneath this
    form...
    Thanks
    Nolan

    you need to swap those symbols out for new ones or as rafiq
    suggested, duplicate them and edit them.
    Chris Georgenes
    Adobe Community Expert
    mudbubble.com
    keyframer.com
    howtocheatinflash.com
    solidediting wrote:
    > Rafiq,
    >
    > Thanks for the quick response. What is troubling me is
    how do I reapply the
    > new updated animation into the timeline. Originally,
    when I copied the animated
    > tabs and pasted them in the new section it still
    referenced the original
    > animation and action script. I created a new animation
    but can't figure out how
    > to substitute it for the original animation.
    >
    > N
    >
    >

  • Newby question about download

    Hi!!
    I'm new developing in j2me, and have a lot of questions. I already made a small app in java, and now I want to download it to a phone.
    I have a Samsung SPH-A660, but the main problems is that I can�t use OTA for the downloading, but I have the data link, is there a way to download the app to the phone via the data link?
    On the other hand, where can I find an emulator for this phone?
    I hope that anyone can help me!!

    hi i actually never donwload using samsung. I usually download use nokia,siemens and other phone. basically, you should transfer the jar file to your cellphone. that's simple.hope it works :)
    Ari

  • Newby question !!! MX 440

    I have aquired an MX 440 vid card built by msi for gateway it has 128 megs of ddr memory the msi drivers seem to work well with it , My question is on the 440 chip what should my core clock be set at and what is the max ?? When auto adjusting the memory clock it goes from 333mhz to 438 mhz . Any software that would help ???? Thanks in advance for your help !!

    This is the Card. I have found NO other 128 meg mx 440  cards and does make me curious as to the actual gpu. http://support.gateway.com/s/VIDCARD/MSI/6002264/6002264nv.shtml
    Thanx !!

  • Newby question. Trying to fill a section but using fill and/or stroke only changes line colour

    Hi,
    Been trying to work this out for hours now so if anyone can help I will be forever thankful!
    Basically, I traced an image earlier, expanded it then wanted to change the line colour. For some reason I couldn't get this to work even though I've done it in the past. So, I used the magic wand to select the line then dragged it into my new document and changed the line colour.
    Now, I want to change the fill on certain sections, however when I change the stroke it changes the colour of the line and when I change the fill it changes the colour of the line.
    I'm not sure if that makes sense or if anyone can help based on that but I can post pictures or something if that would help?
    I also understand that the magic want thing might be where I've went wrong at the very start maybe?
    Thanks for any help at all!

    I don't know if that helps you understand at all?
    For example I want to fill the inside of the square but when I'm hitting the fill and stroke buttons they're just changing the colour of the line.
    I think I might just start from scratch again! Don't know where I've went wrong.

  • Newby question on syncing/updating

    If I change some of the column data for a song (or songs) in my iTunes library on my iBook will it (or they) be recognized as same or different from the copies already on the iPod?
    Better: What is the best way to sync columnar data between my iBook and iPod?

    Josh, you appear to be wrong. I now have two copies of songs for which I changed some data.
    I have my iPod set for Manual update. When I selected all in my library and dragged them to the iPod it left the old versions on the iPod.

  • Newby question.  Iweb not 'publishing' my websites properly anymore

    Hi,
    Since I updated Iweb to the latest version (2.0.3), my website pages won't 'publish to folder' properly. Examples of problems I'm encountering include:
    1)The dynamic menu bar located at the top of every page no longer shows up on published pages.
    2) My photo log page now shows up empty - no title, no text, and no photos. It now publishes, essentially, like a blank template.
    Please help!

    This should help!
    http://discussions.apple.com/thread.jspa?messageID=7251905&#7251905

Maybe you are looking for