Mercurial > hg > Members > you > TreeVNC
changeset 10:7be14292da1b
modify TextBox.java
author | one |
---|---|
date | Tue, 20 Dec 2011 19:03:51 +0900 |
parents | 56251926d766 |
children | 0bb5ff851d76 80a51a184be4 578ea14c95e9 |
files | bin/myVncProxy/TextBox.class bin/myVncProxy/VncProxyService.class src/myVncProxy/TextBox.java src/myVncProxy/VncProxyService.java |
diffstat | 4 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/myVncProxy/TextBox.java Tue Dec 20 18:09:34 2011 +0900 +++ b/src/myVncProxy/TextBox.java Tue Dec 20 19:03:51 2011 +0900 @@ -70,7 +70,7 @@ private void setText() { panel = new JPanel(); - t1 = new TextField("Address", 30); + t1 = new TextField("localhost", 30); t2 = new TextField("5900", 5); pw = new JPasswordField("Password",30); button = new JButton("Connect"); @@ -104,8 +104,10 @@ } public void actionPerformed(ActionEvent e) { - if(e.getSource()==button) + if(e.getSource()==button) { flag = true; + setVisible(false); + } if(e.getSource()==button1) try { init();
--- a/src/myVncProxy/VncProxyService.java Tue Dec 20 18:09:34 2011 +0900 +++ b/src/myVncProxy/VncProxyService.java Tue Dec 20 19:03:51 2011 +0900 @@ -750,9 +750,9 @@ } if(getHost==null){ getHost = new TextBox(this); - getHost.changeHost(); + //getHost.changeHost(); } else { - getHost.changeHost(); + //getHost.changeHost(); } // Read "ENCPASSWORD" or "PASSWORD" parameter if specified.