'Lecture Notes > Java Programming' 카테고리의 다른 글
Java Executable File 만들기 (0) | 2011.09.23 |
---|---|
Java Applet Programming (0) | 2011.09.23 |
Java AWT Application 만들기 (0) | 2011.09.23 |
Java Framework Programming (0) | 2011.09.23 |
Java AWT & SWING (0) | 2011.09.23 |
Java Executable File 만들기 (0) | 2011.09.23 |
---|---|
Java Applet Programming (0) | 2011.09.23 |
Java AWT Application 만들기 (0) | 2011.09.23 |
Java Framework Programming (0) | 2011.09.23 |
Java AWT & SWING (0) | 2011.09.23 |
Java AWT Application 만들기 (0) | 2011.09.23 |
---|---|
Java Framework Programming (0) | 2011.09.23 |
자바 애플릿 & 어플리케이션 (0) | 2011.09.23 |
Java Important Issues (0) | 2011.09.23 |
Java Event Componet (0) | 2011.09.23 |
import javax.swing.JFrame;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class SWINGCaseFive extends JFrame implements ActionListener {
public static final int WIDTH = 300;
public static final int HEIGHT = 200;
public SWINGCaseFive() {
setTitle("Swing Case 5");
setSize(WIDTH, HEIGHT);
setDefaultCloseOperation(EXIT_ON_CLOSE);
JButton endButton = new JButton("Click to End the Program");
endButton.addActionListener(this);
getContentPane().add(endButton);
setVisible(true);
}
public static void main(String[] args) {
new SWINGCaseFive();
}
public void actionPerformed(ActionEvent e) {
System.exit(0);
}
}
Javastyle Android Program (Basic) (0) | 2010.06.04 |
---|---|
Default Android Program (Basic) (0) | 2010.06.04 |
WIPI Basic Program (0) | 2010.06.03 |
J2ME Basic Program (0) | 2010.06.03 |
Basic Framework : JAVA AWT Program (0) | 2010.06.03 |