본문 바로가기
JAVA

GUI / AWT / SWING

by Minius 2018. 3. 15.
반응형

AWT와  SWING의 차이

-

-


java.awt 패키지


awt 구조도에 대한 이미지 검색결과


Component 

Subclasses:
ButtonCanvasCheckboxChoiceContainerLabelListScrollbarTextComponent

Button() // 이름 없음
Constructs a button with an empty string for its label.
Button(String label) // 이름 있음
Constructs a button with the specified label.


Frame 단독사용 가능

Panel : frame 위에 추가

panel위에 panel 추가



Card 라벨 추가하며 색깔을 바꾼다.

패널 만들고

레이아웃

배경색주고















'JAVA' 카테고리의 다른 글

MouseListener  (0) 2018.03.16
Event Handling  (0) 2018.03.16
익명 클래스 2 (Anonymous Class)  (0) 2018.03.15
익명 클래스 (Anonymous class)  (0) 2018.03.15
익명 객체  (0) 2018.03.14

댓글