Results 1 to 4 of 4
  1. #1
    dazza-s is offline Member
    Join Date
    Apr 2008
    Location
    Cornwall, UK
    Posts
    10
    Rep Power
    0

    Default 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

  2. #2
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    8

    Default

    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.

  3. #3
    dazza-s is offline Member
    Join Date
    Apr 2008
    Location
    Cornwall, UK
    Posts
    10
    Rep Power
    0

    Default

    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?

  4. #4
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    8

Similar Threads

  1. Eclipse's internal Tomcat
    By vadimf in forum Eclipse
    Replies: 0
    Last Post: 02-14-2008, 09:37 AM
  2. Using SWT Canvas
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-08-2008, 09:06 AM
  3. an internal error occurred during refresh
    By christina in forum Eclipse
    Replies: 1
    Last Post: 08-06-2007, 09:37 PM
  4. Canvas question
    By christina in forum Advanced Java
    Replies: 1
    Last Post: 08-03-2007, 07:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •