티스토리 뷰

package gui;



import java.awt.event.*; 

import javax.swing.*;

import javax.swing.event.*; 

import javax.swing.*;


public class MyFrame extends JFrame{


MyFrame() throws InterruptedException{

setTitle("첫번째 프레임");

setSize(300,300);

setVisible(true);

Thread.sleep(1000);

setVisible(false);

setSize(500,500);

setVisible(true);

}

public static void main(String[] args) throws InterruptedException {

MyFrame mf = new MyFrame();


}

}



댓글
댓글쓰기 폼