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


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

Re: JPanel will not show

From "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this>
Subject Re: JPanel will not show
Message-ID <1169015200.445602.10850@a75g2000cwd.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
References <EWirh.133211$Pv5.44566@newsfe17.lga>
Date 2011-04-27 15:29 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
Knute Johnson wrote:
> printdude1968@gmail.com wrote:
> > Knute Johnson wrote:
> >> printdude1968@gmail.com wrote:
> >>> So you can see my program in contxt
> >>>
> >>> public class MainPanel extends JPanel implements ActionListener {
..
> >>> How do I make my panel appear?
...
> >> You make your panel appear by adding it to a top level container
..
> >> The biggest problem you are going to face is layout managers.
..
> >> .. Here is a simple example of how to do that.
> >>
> >> import java.awt.*;
..
> > Ok... that's what I thought.  I need to add the panel to the top level
> > container.  Thanks for your help.
..
> Or to another container, it doesn't matter which.

Since the OP seems to have now made the (excellent,
I feel) choice to not top-post, I am guessing they are
open to 'usenaut' like tips.  So I will suggest another one.

'trim' text when replying.  Note that I gave a basic
'context' for the earlier conversation in just 22 lines.
Since it was not really necessary to repeat the detail,
I saved a lot of bytes.

Oh, and note that I felt the point had already been
made re. no more t-p, and I was sick of seeing it
in the title (so I changed the title - to reflect that!).
Apologies if I break the threading of this in
anyone's news-client.

Andrew T.

---
 * 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 | Unroll thread


Thread

JPanel will not show  ( a printdude1968@gmail.com.remove-dii-this - 2011-04-27 15:29 +0000
  Re: JPanel will not show "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
    Re: JPanel will not show printdude1968@gmail.com.remove-dii-this - 2011-04-27 15:29 +0000
      Re: JPanel will not show "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
        Re: JPanel will not show "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
          One final question before printdude1968@gmail.com.remove-dii-this - 2011-04-27 15:29 +0000
            Re: One final question be "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
              Re: One final question be printdude1968@gmail.com.remove-dii-this - 2011-04-27 15:29 +0000
            Re: One final question be "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
    Re: JPanel will not show "Ian Wilson" <ian.wilson@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000

csiph-web