I've got this:
public void init(){
Container container = getContentPane();
getContentPane().setBackground( Color.yellow );
container.setLayout( new BorderLayout() );
JPForm = new JPanel();
JPForm.setLayout( new GridLayout(3, 1, 2, 2) );
LblHeight = new JLabel(" Korkeus (mm): ");
LblWidth = new JLabel(" Leveys (mm): ");
LblSideSpace = new JLabel(" Sivutila (mm): ");
JPForm.add( LblHeight );
JPForm.add( LblWidth );
JPForm.add( LblSideSpace );
container.add( JPForm, BorderLayout.EAST );
The labels are never there and the background color command is also ignored. Why? It's so similar to
applet's I've had work but now when I want the labels on a panel in an applet I can't get it to work.
[ May 13, 2002: Message edited by: Elouise Kivineva ]
[ May 13, 2002: Message edited by: Elouise Kivineva ]
[ May 13, 2002: Message edited by: Elouise Kivineva ]
[ May 13, 2002: Message edited by: Elouise Kivineva ]