Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #793

JComboBox pulldown proble

From "Paul Hunter" <paul.hunter@THRWHITE.remove-dii-this>
Subject JComboBox pulldown proble
Message-ID <RaOdnb_ZYfLwHCTYnZ2dnUVZ_ternZ2d@comcast.com> (permalink)
Newsgroups comp.lang.java.gui
Date 2011-04-27 15:29 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
It's been awhile since I used Swing, and I ran into an issue. I wanted to 
have a pulldown text choice widget using a JComboBox with the following 
code:

  String[] list = {"one", "two", "three"};
  JComboBox companyName = new JComboBox(list);
  companyName.setEditable(true);
  rootPane.add(companyName);

However, the pulldown menu does not appear when the arrow is pressed. What 
am I missing?

Thanks.

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextNext in thread | Find similar


Thread

JComboBox pulldown proble "Paul Hunter" <paul.hunter@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
  Re: JComboBox pulldown pr "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000

csiph-web