Mercurial > hg > Applications > TreeVNC
diff src/viewer_swing/java/com/glavsoft/viewer/Viewer.java @ 45:20326a4b9d88
create new change button for client.
author | one |
---|---|
date | Tue, 04 Dec 2012 17:56:39 +0900 |
parents | 6687aa9dd55e |
children | d2741b80399e |
line wrap: on
line diff
--- a/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java Sun Nov 18 18:47:14 2012 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java Tue Dec 04 17:56:39 2012 +0900 @@ -49,6 +49,7 @@ import java.io.IOException; import java.io.InputStream; import java.net.Socket; +import java.net.UnknownHostException; import java.util.LinkedList; import java.util.List; import java.util.jar.Attributes; @@ -446,11 +447,14 @@ testButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { - testKey(context); + try { + rfb.screenChangeRequest(); + } catch (IOException e1) { + e1.printStackTrace(); + } setSurfaceToHandleKbdFocus(); } }); - @@ -604,9 +608,6 @@ context.sendMessage(new KeyEventMessage(Keymap.K_CTRL_LEFT, false)); } - private void testKey(ProtocolContext context) { - System.out.println("test"); - } @Override public void windowOpened(WindowEvent e) { /* nop */ }