Swing/Hello Swing 썸네일형 리스트형 Hello Swing /* * HelloWorldSwing.java requires no other files. */ import javax.swing.*; public class HelloWorldSwing { private static void createAndShowGUI() { //Create and set up the window. JFrame frame = new JFrame("HelloWorldSwing"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //Add the ubiquitous "Hello World" label. JLabel label = new JLabel("Hello World"); frame.getContentPane().add(label);.. 더보기 이전 1 다음