B&B Electronics ADAM-6066 - Manual User Manual

Page 120

Advertising
background image

ADAM-6000 Series User Manual

110

}

/**Displayed Screen*/
class myFramPanel extends Panel
{
int panelType; Label labMassage = new Label("");

public myFramPanel() {
//super();
}

public myFramPanel(int myType) {
//super();
panelType = myType;
}

public myFramPanel(int myType, String Msg, int msgTextLength) {
//super();
panelType = myType; if (Msg != "") { labMassage.setText(Msg); this.set-
Layout(null);
labMassage.setBounds(new Rectangle(20, 3, msgTextLength,
15));

}
}

this.add(labMassage);
public void paint(Graphics g) { Dimension size = getSize();

if (panelType == 1) {
int off;

Advertising