Label();
Label("abc");
Label("abc",CENTER);
Label("abc",LEFT);
Label("abc",RIGHT);
buf=L1.getText();
L1.setText("abc");
import java.awt.*;
import java.awt.event.*;
public class Ltest extends Frame
{
Label L1;
public Ltest () {
super();
setSize(200,300);
Panel p0 = new Panel();
L1=new Label("abc");
p0.add(L1);
add(p0,BorderLayout.CENTER);
}
public static void main(String args[]) {
Ltest f = new Ltest();
f.show();
}
}
Label作成
トラックバック(0)
トラックバックURL: http://winnote.adg7.com/mt/mt-tb.cgi/241
コメントする