Problem with JComboBox in JApplet


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Problem with JComboBox in JApplet

  1. #1
    Join Date
    Mar 2005
    Posts
    4

    Question Problem with JComboBox in JApplet

    Hello,

    I really need help in this issue, it goes like this, I have a JApplet and attached to it is a JPanel, i have added a JComboBox to this panel , but the main problem is that it is not showing on the Applet when it first loads, but when i navigate to other panels present in the aplet and get back to the combobox panel then it is visible, Am i doing some thing wrong here as i cannot figure out what the problem is, I have used the regular code to create the Jcombobox as this works with the JFrame (I have tested it), but it does not work with JApplet.

    Hope any one of you can help me out with this :-)

    Thanks in Advance

  2. #2
    Join Date
    Oct 2004
    Posts
    311
    The problem is most likely in the location in your code you add the combobax to the panel. You need to first add the combobox to the panel, and then add the panel to the applet. after you have done this, you need ot make the whole applet visible. If you start by making the pplet visible, the rest of the changes might not be shown

  3. #3
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    If that is not the solution you should check your layoutmanagement and sizing
    of the components.
    eschew obfuscation

  4. #4
    Join Date
    Mar 2005
    Posts
    4

    Thanks

    Thanks , for the solution, That works..............

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center