Java/AWT
AWT로 버튼생성
Bohemian life
2012. 4. 13. 21:58
package com.display;//AWT로 버튼 생성 import java.awt.Frame; import java.awt.Button; public class ButtonTest extends Frame{ public ButtonTest(){ super("버튼 테스트"); Button b = new Button("확인"); //Frame에 Button등록 add(b); setSize(500,600); //width height setVisible(true); setLocation(100,400); //x,y } public static void main(String[] args) { new ButtonTest(); } }