JAVA 라벨(Label)



1
2
3
4
5
6
Label lb = new Label();
lb.setText("Lable");
lb.setSize(350100);
lb.setAlignment(Label.CENTER);
lb.setBackground(Color.yellow);
lb.setForeground(Color.green);
cs

setText : 라벨의 텍스트
setSize : 라벨의 가로 세로 사이즈
setAlignment : 라벨의 text 정렬 방법
setForeground : 라벨의 텍스트 색 
setBackground : 라벨의 텍스트 백그라운드 색


댓글