Mercurial > hg > RemoteEditor > REPSessionManager
changeset 182:e5a7aad3fbc0
*** empty log message ***
author | pin |
---|---|
date | Fri, 29 Aug 2008 13:35:49 +0900 |
parents | 3a2c6c2f9761 |
children | eb89a73976fa |
files | rep/SessionManager.java rep/SessionManagerGUI.java |
diffstat | 2 files changed, 14 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rep/SessionManager.java Fri Aug 29 13:30:46 2008 +0900 +++ b/rep/SessionManager.java Fri Aug 29 13:35:49 2008 +0900 @@ -57,7 +57,7 @@ static final int DEFAULT_PORT = 8766; public SessionManager(int port) { - gui = new SessionManagerGUI(); + gui = new SessionManagerGUI(this); } public void openSelector() throws IOException{ @@ -159,7 +159,8 @@ editorList.add(editor); //GUIに反映 - gui.setComboEditor(editor.getEID(), channel); + //gui.setComboEditor(editor.getEID(), channel); + gui.update(); }
--- a/rep/SessionManagerGUI.java Fri Aug 29 13:30:46 2008 +0900 +++ b/rep/SessionManagerGUI.java Fri Aug 29 13:35:49 2008 +0900 @@ -6,12 +6,23 @@ public class SessionManagerGUI implements Runnable{ + + private SessionManager manager; + public static void main(String[] args) { SessionManagerGUI gui = new SessionManagerGUI(); Thread th = new Thread( gui ); th.start(); } + public SessionManagerGUI(SessionManager manager) { + this.manager = manager; + } + + public SessionManagerGUI() { + // TODO Auto-generated constructor stub + } + private RPanel rp; //private ConnectionPanel rp; private JFrame frame;