or drag border to resize
Best viewed with
Firefox
Feel free to donate Bitcoin, Bitcoin Cash, Ether or Litecoin
Post this site to
JavaLessons.com
GUI, Swing
g44. JInternalFrame, JDesktopPane and layers
This lesson is about child windows.
Essence
JDesktopPane dskp ; JInternalFrame child ; ... dskp = new JDesktopPane(); child = new JInternalFrame ( "Internal affairs" ) ; child.setClosable ( true ); child.setMaximizable ( true ); child.setIconifiable ( true ); child.setResizable ( true ); child.setBounds ( 25, 50, 225, 150); Container cp = child.getContentPane(); cp.setLayout( new FlowLayout() ); cp.add ( ... ) ; child.setVisible( true ); dskp.setOpaque( false ); dskp.add ( child, JLayeredPane.DEFAULT_LAYER ); ... setContentPane( dskp );
Double-click to select or
JavaLessons.com
Copyright © 2000-2014 System Exclusive & Multi Midi (NL) All rights reserved
Terms, conditions, disclaimer