EasyManua.ls Logo

Advantech ADAM-6000 series - Page 81

Advantech ADAM-6000 series
156 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.setLayout(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;
off=4;
g.setColor(Color.white);
g.drawRect(0, 0, size.width - 1, size.height - 1);
g.setColor(Color.darkGray);
g.drawLine(size.width - 1, 0, size.width - 1, size.height -
1);
g.drawLine(0, size.height - 1, size.width - 1, size.height
- 1);g.setColor(Color.black);

Related product manuals