Author: Paul.Lee.1971Paul.Lee.1971
Date: Jul 16, 2008 07:39
Hi,
This is probably very simple, but I can't get this to work. I am
writing an Applet that will display two panels, the first one being a
panel to display graphics, and the other panel displaying the controls
to manipulate the graphics panel.
Derived from JApplet, my init() method has the following:
Container content=getContentPane();
display = new JPanel();
controls = new JPanel();
displayPanel = new DataDisplayPanel( this );
displayPanel.setPreferredSize(new Dimension( 840, 712 ));
displayPanel.setBackground( Color.BLACK );
display.add( displayPanel );
content.add( display );
content.add( controls );
|