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


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

Re: JComboBox's drop-down

From "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this>
Subject Re: JComboBox's drop-down
Message-ID <nAHfh.168511$4Z1.139435@newsfe09.phx> (permalink)
Newsgroups comp.lang.java.gui
References <GtHfh.718$tE1.683@reader1.news.saunalahti.fi>
Date 2011-04-27 15:27 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
loquak wrote:
> Great, another problem... *can already hear the deep sighs*
> 
> I've created a JComboBox with the very simple code:
> 
> String[] items = new String[] {"item1", "item2", "item3", ...};
> JComboBox comboBox = new JComboBox(items);
> 
> The component is added to a panel that uses gridbaglayout and shows up 
> properly. However, when I click the drop-down button, no list is shown, 
> though I can select the item with the up/down arrow keys. What am I 
> missing now?

The problem is in your code, which we can't see!  Post a compilable 
example that demonstrates your problem.

-- 

Knute Johnson
email s/nospam/knute/

---
 * 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 | NextPrevious in thread | Next in thread | Find similar


Thread

JComboBox's drop-down lis "loquak" <loquak@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
  Re: JComboBox's drop-down "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
    Re: JComboBox's drop-down "loquak" <loquak@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000

csiph-web