import java.awt.*;
import java.awt.event.*;
import javasoft.awtsqe.lw.*;

public class MCC extends Frame {
    LWButton lwButton,lbutton;
    LWLabel lwLabel;
    Frame frame;
    Button hwButton;
    Label hwLabel;
    LWBorderedPanel lwPanel;
    Panel hwPanel,framePanel;
    Label contLabel,hcontLabel;
    LWList lwList;

    public static void main(String args[]) {
        MCC tf = new MCC();
        tf.setBounds(0,360,700,240);
        tf.pack();
        tf.setVisible(true);
    }
    public MCC() {

        this.setLayout (new BorderLayout ());
        lwButton = new LWButton("Change cursor");
        lwButton.setActionCommand("Change cursor");
        lwButton.setBackground(Color.green);
        lwButton.setForeground(Color.black);

        lwLabel = new LWLabel("Ltwt Label");
        lwLabel.setBackground(Color.green);
        lwLabel.setForeground(Color.black);
        lwPanel= new LWBorderedPanel("Ltwt container");
        lwPanel.setBackground(Color.yellow);
        hwButton = new Button("Hywt button");
        hwLabel = new Label("Hywt label");
        lwPanel.add(hwButton);
        lwPanel.add(hwLabel);
        hwPanel = new Panel();
        hwPanel.setBackground(Color.blue);
        hwPanel.setForeground(Color.white);
        lwList = new LWList(3);
        lwList.add("LtwtList");
        lwList.add("item1");
        lwList.add("item2");
        hcontLabel=new Label("Hywt container");
        hwPanel.add(hcontLabel);
        hwPanel.add(lwList);

        lbutton=new LWButton("ChangeCursor");
        lbutton.setActionCommand("ChangeCursor");
        hwPanel.add(lbutton);

        lwPanel.add(hwPanel);
        contLabel=new Label("Hywt container");
        this.setLayout(new BorderLayout());
        framePanel = new Panel(new BorderLayout());
        this.setBackground(Color.green);
        framePanel.add("East",lwButton);
        framePanel.add("West",lwLabel);
        framePanel.add("Center",lwPanel);
        this.add("North",contLabel);
        this.add("Center",framePanel);

        //this.invalidate();
        //this.validate();

    }

}
