aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Set Orientation of JPanel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Set Orientation of JPanel" Watch "Set Orientation of JPanel" New topic
Author

Set Orientation of JPanel

Aksa Saki
Greenhorn

Joined: Oct 13, 2011
Posts: 1
I'm creating a swing based application and want to show a panel on label click.
It is something like:
JFrame F contains JPanel P1
P1 contains JPanel P2 and P3
P3 contains JLabel L
when I click on L, I want another JPanel P4 to placed on P1.

When I use setComponentZOrder(,) , I get Exception: container and component should be on the same window.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19693
    
  20

Can you please show us an SSCCE (click on it) that displays the problem, and the exception stack trace?


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: Set Orientation of JPanel