wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes Jpanel not displayed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Jpanel not displayed" Watch "Jpanel not displayed" New topic
Author

Jpanel not displayed

mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 246
hi

in a class i do



code of this class


nothing is displayed... any idea?

thanks
Moojid Hamid
Ranch Hand

Joined: Mar 07, 2009
Posts: 120
You need a "Top-Level Container"
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
and you also need to add the tabbedPane to its container (the class TestPanel)
mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 246
ok so every jpanel need to be added in a jframe?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19655
    
  18

Or another control like a second JPanel, a JTabbedPane or a JScrollPane. But in the end, all controls must be directly or indirectly added to a (J)Frame, (J)Dialog, (J)Window or (J)Applet.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jpanel not displayed
 
Similar Threads
JPanel Form Problems
JSlider issue
Graphics2D window not being repaired?
Generat JAR file with resouces such as picture and music!
call paint method on a JPanel