Mercurial > hg > RemoteEditor > REPSessionManager
comparison test/TestGUI.java @ 5:91a33a634fef
*** empty log message ***
author | pin |
---|---|
date | Thu, 18 Oct 2007 13:27:06 +0900 |
parents | |
children | 01062be677e9 |
comparison
equal
deleted
inserted
replaced
4:c0db426126b6 | 5:91a33a634fef |
---|---|
1 package test; | |
2 | |
3 import java.awt.Container; | |
4 import java.awt.LayoutManager; | |
5 | |
6 import javax.swing.JFrame; | |
7 | |
8 import rep.ConnectToSessionManager; | |
9 import rep.ConnectionListener; | |
10 import rep.RPanel; | |
11 import rep.gui.ConnectionPanel; | |
12 | |
13 public class TestGUI { | |
14 | |
15 private static JFrame frame; | |
16 private static ConnectionPanel cp; | |
17 private static ConnectionListener listener; | |
18 | |
19 public TestGUI() { | |
20 // TODO Auto-generated constructor stub | |
21 } | |
22 | |
23 public static void main(String[] args){ | |
24 frame = new JFrame("SessionManager"); | |
25 frame.setBounds(100, 100, 400, 100); | |
26 cp = new ConnectionPanel(listener); | |
27 Container cont = frame.getContentPane(); | |
28 cont.add(cp); | |
29 | |
30 frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | |
31 frame.setVisible(true); | |
32 } | |
33 | |
34 } |