Mercurial > hg > Applications > TreeVNC
changeset 285:b8e8d84c86ec
adjust hd size
author | oc |
---|---|
date | Sun, 11 Jan 2015 07:28:43 +0900 |
parents | 3d7ecf31037b |
children | 6ad14086225e |
files | src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Sun Jan 11 07:22:07 2015 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Sun Jan 11 07:28:43 2015 +0900 @@ -887,19 +887,18 @@ kbdButtons.add(screenButton); - JButton adjustHdSizeButton = buttonsBar.createButton("adjust-hd-size", "Adjust Hd Size", new ActionListener() { + final JButton adjustHdSizeButton = buttonsBar.createButton("adjust-hd-size", "Adjust Hd Size", new ActionListener() { @Override public void actionPerformed(ActionEvent e) { // adjustHdSizeButton.setSelected(false); if (viewer.getRfb().isTreeManager()) { System.out.println(viewer.getRfb().singleWidth); -// uiSettings.adjustHdSize(viewer.getRfb().singleWidth); + uiSettings.adjustHdSize(viewer.getRfb().singleWidth); return; } - System.out.println(viewer.getRfb().singleWidth); context.sendMessage(new RequestSingleDisplayWidth()); System.out.println(viewer.getRfb().singleWidth); -// uiSettings.adjustHdSize(viewer.getRfb().singleWidth); + uiSettings.adjustHdSize(viewer.getRfb().singleWidth); } }); kbdButtons.add(adjustHdSizeButton);