• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

JInternalFrame Z-Order Behaviour

 
Ranch Hand
Posts: 191
Netbeans IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 !!

 
Rancher
Posts: 3324
32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:

 
I suggest huckleberry pie. But the only thing on the gluten free menu is this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic