전체 글
-
[JAVA / SWING] 성적관리 프로그램 v0.1Dev_Study/Java 2016. 10. 15. 10:14
package com.std.cal; import java.awt.Color; import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.math.BigDecimal; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; public class ScoreCal extends JFrame implements ActionListener{ JPanel jp1 = null; JLabel ..
-
[JAVA / SWING] 배치관리자(Layout Manager) - BoxLayoutDev_Study/Java 2016. 10. 7. 05:10
import java.awt.Component; import javax.swing.BoxLayout; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; public class BoxLayoutEx extends JFrame { public BoxLayoutEx (){ setTitle("BoxLayout 입니다"); setSize(300, 300); setLocationRelativeTo(null); //화면 중앙에 생성 setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); JPanel jp = new JPanel(); jp.setLayout(ne..
-
[JAVA / SWING] 배치관리자(Layout Manager) - GridLayoutDev_Study/Java 2016. 10. 7. 05:10
import java.awt.GridLayout; import javax.swing.JButton; import javax.swing.JFrame; public class GridLayoutEx extends JFrame { public GridLayoutEx (){ setLayout(new GridLayout(0, 4)); //GridLayout(행, 열) setTitle("GridLayout 입니다"); setSize(300, 300); setLocationRelativeTo(null); //화면 중앙에 생성 setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); JButton bt1 = new JButton("버튼1"); JButton ..