Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-25-2008, 12:06 AM
Member
 
Join Date: Apr 2008
Location: Cornwall, UK
Posts: 10
dazza-s is on a distinguished road
Internal Frame order and canvas Z Index
Hi

Scenario is I am making a java application that has a serious of internal frames and one of them hold a canvas. The internal frames should be able to appear on top of the frame that holds the canvas (a la Photoshop layout). It does this but the frames sit on top of the canvas frame but behind the canvas itself?? I can't find any Z-indexing on the canvas. How do I resolve this problem? I am using Net Beans. Please help

cheers for now

D
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-25-2008, 11:29 PM
Senior Member
 
Join Date: Jul 2007
Posts: 1,222
hardwired is on a distinguished road
Canvas is an AWT, heavy-weight component and will appear on top of all lightweight components ("J"-prefix). Use a JPanel for drawing instead of a Canvas.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-28-2008, 02:25 PM
Member
 
Join Date: Apr 2008
Location: Cornwall, UK
Posts: 10
dazza-s is on a distinguished road
Quote:
Originally Posted by hardwired View Post
Canvas is an AWT, heavy-weight component and will appear on top of all lightweight components ("J"-prefix). Use a JPanel for drawing instead of a Canvas.
Thanks for that. In the end I decided just to use normal frame popups instead of internal frames. But that info will be handy for the future.

Could you explain the difference between heavy and lightweight objects? Is it just the screen order that is effected or anything else?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 05-29-2008, 08:20 AM
Senior Member
 
Join Date: Jul 2007
Posts: 1,222
hardwired is on a distinguished road
Mixing heavy and light components
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Eclipse's internal Tomcat vadimf Eclipse 0 02-14-2008 11:37 AM
Using SWT Canvas Java Tip Java Tips 0 01-08-2008 11:06 AM
SWT Canvas JavaForums Java Blogs 0 12-31-2007 06:53 PM
an internal error occurred during refresh christina Eclipse 1 08-06-2007 11:37 PM
Canvas question christina Advanced Java 1 08-03-2007 09:21 PM


All times are GMT +3. The time now is 07:08 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org