Results 1 to 4 of 4
- 05-24-2008, 10:06 PM #1
Member
- Join Date
- Apr 2008
- Location
- Cornwall, UK
- Posts
- 10
- Rep Power
- 0
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
- 05-25-2008, 09:29 PM #2
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.
- 05-28-2008, 12:25 PM #3
Member
- Join Date
- Apr 2008
- Location
- Cornwall, UK
- Posts
- 10
- Rep Power
- 0
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?
- 05-29-2008, 06:20 AM #4
Similar Threads
-
Eclipse's internal Tomcat
By vadimf in forum EclipseReplies: 0Last Post: 02-14-2008, 09:37 AM -
Using SWT Canvas
By Java Tip in forum Java TipReplies: 0Last Post: 01-08-2008, 09:06 AM -
an internal error occurred during refresh
By christina in forum EclipseReplies: 1Last Post: 08-06-2007, 09:37 PM -
Canvas question
By christina in forum Advanced JavaReplies: 1Last Post: 08-03-2007, 07:21 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks