Click to See Complete Forum and Search --> : Java - JLayedPane


nanode
11-07-2000, 05:36 PM
I have a JInternalFrame that I want to add components to. I know with typical JFrames you can:

myJFrame.getLayeredPane().add(component, JLayeredPane.DRAG_LAYER);


I'm not getting any compile or runtime errors when I do the equivalent with the JInternalFrame:

myJInternalFrame.getLayeredPane().add(component, JLayeredPane.DRAG_LAYER);

, but I cannot see the added component. I've read somwhere that JIF is a 'lightweight' component in contrast to JFrame being 'heavyweight'.

Is it possible for my to add components to seperate layers within a JInternalFrame?

If yes, how?

Dru Lee Parsec
11-08-2000, 12:39 PM
Generally, a JInternal frame is added to a JDesktopPane. For example, in Codewright, the individual files would be in the equivalent of JInternal Frames with main window that holds all those panes being a JDesktopPane.

A JLayeredPane is the superclass of JDesktop.

I'm not sure that adding a JLayeredPane to another JLayeredPane is the right process. I know I did something like that with the Lambada text editor but it's been a long time.

I could send you the source code to Lambada tonight to your home e-mail if you want?

<personal msg>
Hey! Did you see the latest Tapper? 0.01G is out and it has the fretboard class. </personal msg>