티스토리 뷰
class TextAreaText extends Frame {
public TextAreaText(String str) {
super(str);
Panel p = new Panel();
//TextArea txt1 = new TextArea(10,30); //행열 크기 10x30
TextArea txt1 = new TextArea("good",15,35); // +@ 초기 문자 셋팅
TextField txt2 = new TextField("Hello Java", 20);
//txt1.setText("Java World");
txt1.setBackground(Color.DARK_GRAY); //영역 배경색 지정
txt1.setFont(new Font("굴림체",Font.BOLD,10)); //폰트 지정
txt1.setForeground(Color.WHITE); //글자색 지정
txt2.setForeground(Color.BLUE); //텍스트필드 글자 색깔 지정
p.add(txt1);
p.add(txt2);
add(p);
setSize(300, 300);
setVisible(true);
}
}
public class TextAreaMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
new TextAreaText("Text Area Test");
}
}
'java,web study > 3주차 (7월 15일 ~21일)' 카테고리의 다른 글
Flow Layout (0) | 2013.07.17 |
---|---|
메뉴 만들기 (0) | 2013.07.17 |
텍스트필드 컴포넌트 (0) | 2013.07.17 |
리스트 컴포넌트 (0) | 2013.07.17 |
깜박이는 레이블 (0) | 2013.07.17 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 정렬
- 청주
- jsp
- db
- 도전과제
- 알고리즘
- 프로젝트
- ERP
- CSS
- 게임
- 배열
- SQL
- 클래스
- 정보
- 메모장
- HTML
- 자바
- 파이썬
- 아두이노
- 안드로이드
- 잡담
- JQuery
- 데이터베이스
- 소켓
- 이론
- SVN
- 자바스크립트
- 오라클
- 충북대
- 졸업작품
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함