Mercurial > hg > Applications > tvnjviewer
changeset 27:e650eaf8deeb
prevent video feedback
author | sugi |
---|---|
date | Sun, 09 Nov 2014 17:31:08 +0900 |
parents | f1dc728ffe87 |
children | e2de671a155d |
files | build.gradle src/viewer_swing/java/com/glavsoft/viewer/Viewer.java src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java |
diffstat | 3 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/build.gradle Sun Nov 09 11:40:01 2014 +0900 +++ b/build.gradle Sun Nov 09 17:31:08 2014 +0900 @@ -33,7 +33,7 @@ repositories { maven(){ - url 'http://www.cr.ie.u-ryukyu.ac.jp/hg/maven/raw-file/cd1aa6cb6d9d/' + url 'http://www.cr.ie.u-ryukyu.ac.jp/hg/maven/raw-file/b2b8776c2f26/' } flatDir { dirs 'src/libs/'
--- a/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java Sun Nov 09 11:40:01 2014 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java Sun Nov 09 17:31:08 2014 +0900 @@ -63,6 +63,7 @@ private volatile boolean isAppletStopped = false; private ConnectionPresenter connectionPresenter; private boolean needReconnect = true; + public boolean hideJFrame = false; public static void main(String[] args) { Parser parser = new Parser(); @@ -112,6 +113,7 @@ ReceiveData rData = new ReceiveData(this, false, false); DataSegment.getLocal().put("viewer", rData, null); this.needReconnect = false; + this.hideJFrame = true; }; } }
--- a/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Sun Nov 09 11:40:01 2014 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Sun Nov 09 17:31:08 2014 +0900 @@ -168,7 +168,7 @@ // frame.pack(); outerPanel.setSize(surface.getPreferredSize()); internalPack(null); - frame.setVisible(true); + frame.setVisible(!viewer.hideJFrame); frame.validate(); } else { appletWindow.setLayout(new BorderLayout(0, 0)); @@ -907,4 +907,8 @@ infoDialog.setVisible(true); } + + public void setVisible(boolean b){ + frame.setVisible(b); + } } \ No newline at end of file