์ ์ฒด ๊ธ
-
[JAVA / SWING] ๋ฐฐ์น๊ด๋ฆฌ์(Layout Manager) - BorderLayoutDev_Study/Java 2016. 10. 7. 05:10
import java.awt.BorderLayout; import javax.swing.JButton; import javax.swing.JFrame; public class BorderLayoutEx extends JFrame { public BorderLayoutEx (){ setLayout(new BorderLayout()); //ํ๋ ์ ๋ฐฐ์น๊ด๋ฆฌ์ setTitle("BorderLayout ์ ๋๋ค"); setSize(300, 300); setLocationRelativeTo(null); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); JButton bt1 = new JButton("๋ฒํผ1"); JButton bt2 = new JBu..
-
[JAVA / SWING] ๋ฐฐ์น๊ด๋ฆฌ์(Layout Manager) - FlowLayoutDev_Study/Java 2016. 10. 7. 05:10
import java.awt.FlowLayout; import javax.swing.JButton; import javax.swing.JFrame; public class FlowLayoutEx extends JFrame { public FlowLayoutEx (){ setLayout(new FlowLayout()); //ํ๋ ์ ๋ฐฐ์น๊ด๋ฆฌ์ setTitle("FlowLayout ์ ๋๋ค"); setSize(300, 300); setLocationRelativeTo(null); //ํ๋ฉด ์ค์์ ์์ฑ setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); JButton bt1 = new JButton("๋ฒํผ1"); JButton bt2 = new J..
-
[JAVA / SWING] ํ๋ ์ ์์ฑํ๊ธฐDev_Study/Java 2016. 10. 7. 05:10
import javax.swing.JFrame; public class Ex1 extends JFrame { public Ex1(){ setTitle("JFrame ์ ๋๋ค"); setSize(300, 300); setLocationRelativeTo(null); //ํ๋ฉด ์ค์์ ์์ฑ setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); } public static void main(String[] args) { Ex1 e = new Ex1(); } }