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


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

Re: JComboBox pulldown pr

From "tar" <tar@THRWHITE.remove-dii-this>
Subject Re: JComboBox pulldown pr
Message-ID <ymi3b5td33z.fsf@sevak.isi.edu> (permalink)
Newsgroups comp.lang.java.gui
References <AeydnfJPGN0YESTYnZ2dnUVZ_vupnZ2d@comcast.com>
Date 2011-04-27 15:29 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
"Paul Hunter" <baseballfan@comcast.net> writes:

>         Container rootPane = getRootPane();
                                  ^^^^
          Container rootPane = getContentPane();
             

This is the mistake.  You want to add the component to the Frame's
contentPane, not the rootPane.

-- 
Thomas A. Russ,  USC/Information Sciences Institute

---
 * 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 | Find similar


Thread

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

csiph-web