Page 896 - 3-2
P. 896
static int addr=301;
static int dete=0,dete2=0,dete3=0;
static int cnt_d=0;
static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
static final String DB_URL =
"jdbc:mysql://localhost:3306/and1?autoReconnect=true&useSSL=false";
static final String USERNAME = "root";
static final String PASSWORD = "raspberry";
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
Room frame = new Room();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the frame.
*/
public Room() {
cnt_d=0;
//setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//setDefaultCloseOperation(setVisible(false));
setTitle(addr+" 호");
setBounds(0, 0, 566, 412);
contentPane = new JPanel();
setContentPane(contentPane);
contentPane.setLayout(new BorderLayout(0, 0));
JPanel panel = new JPanel();
contentPane.add(panel,"Center");
panel.setLayout(new GridLayout(0, 3, 10, 10));
JTextArea textArea1 = new JTextArea();
panel.add(textArea1);
- 896 -