import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; public class Java3DExample extends JFrame { private Java3DWorld java3DWorld; private JPanel controlPanel; private Java3DWorldK java3DWorldK; private JPanel controlPanelK; public Java3DExample() { super( "Прямоугольный параллелепипед и куб: вращай, маштабируй и изменяй цвет!" ); java3DWorldK = new Java3DWorldK(""); controlPanelK = new ControlPanelK ( java3DWorldK ); getContentPane().add( java3DWorldK, BorderLayout.EAST); getContentPane().add( controlPanelK, BorderLayout.SOUTH); java3DWorld = new Java3DWorld(""); controlPanel = new ControlPanel ( java3DWorld ); getContentPane().add( java3DWorld, BorderLayout.WEST); getContentPane().add( controlPanel, BorderLayout.NORTH); } public static void main (String args [] ) { Java3DExample application = new Java3DExample(); application.setDefaultCloseOperation( EXIT_ON_CLOSE ); application.pack(); application.setVisible( true ); } }