Mercurial > hg > Members > you > TreeVNC
diff src/treeVnc/TextBoxClient.java @ 22:24112133a0d9
add conf.txt src/treeVnc/ConfFileReader.java
author | Yu Taninari <you@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 20 Jan 2012 16:06:49 +0900 |
parents | 810c53d66376 |
children | b5c446990c0a |
line wrap: on
line diff
--- a/src/treeVnc/TextBoxClient.java Sun Jan 15 16:13:09 2012 +0900 +++ b/src/treeVnc/TextBoxClient.java Fri Jan 20 16:06:49 2012 +0900 @@ -27,18 +27,20 @@ private String hostAddress; private String port; private CheckboxGroup ch = new CheckboxGroup(); + + public TextBoxClient() { + setTitle("Informatin Connection Address"); + setResizable(false); + setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + } + public void ipRegister() { setSize(); setText(); visible(); } - public TextBoxClient() { - setTitle("Informatin Connection Address"); - setResizable(false); - setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - } private void setSize() { Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); @@ -102,6 +104,17 @@ label.setFont(new Font("Arial", Font.PLAIN, 20)); pane.add(label); } + + public String getAddressOption() { + while (!(flag)) { + try { + Thread.sleep(500); + } catch (InterruptedException e) { + e.printStackTrace(); + } + } + return t1.getText(); + } public String getAddress() { int i = 0; @@ -121,7 +134,11 @@ return hostAddress; // return t1.getText(); } - + + public String getPortOption() { + return t2.getText(); + } + public String getPort() { return port; // return t2.getText();