This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JInternalFrame Z-Order Behaviour

 
Isaac Hewitt
Ranch Hand
Posts: 191
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a my wit's end over the placement of JInternalFrame in the z-order.

I have 2 JInternalFrames that span the width and height of the JDesktop therefore I will have just 1 visible at any given time, hence that one will be in the number 1 position of the z-order.

int j gives me the 1 position in the z-order. The problem is that the code is not reading the position of the frames correctly where I have k = this.getComponentZOrder(inner_Fr); should work if k is not equal to j which is the desired z-order.

Please help !!

 
Rob Camick
Ranch Hand
Posts: 2703
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't need to play with the Z-Order. To make a frame display on top you can use:

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!