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?
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?