File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Set Orientation of JPanel

 
Aksa Saki
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20369
43
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please show us an SSCCE (click on it) that displays the problem, and the exception stack trace?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic