Added mechanism to display help of additional (undeclared) options.
This commit is contained in:
@@ -77,6 +77,7 @@ public class ScreenPanelSF extends Panel implements CamServerViewer.CamServerVie
|
||||
SwingUtilities.invokeLater(()->{
|
||||
try {
|
||||
camServerViewer.initialize(App.getArgumentValue(Options.SP_MODE.getString(null)));
|
||||
startTimer(1000);
|
||||
} catch (Exception ex) {
|
||||
Logger.getLogger(ScreenPanelSF.class.getName()).log(Level.SEVERE, null, ex);
|
||||
}
|
||||
@@ -85,11 +86,12 @@ public class ScreenPanelSF extends Panel implements CamServerViewer.CamServerVie
|
||||
|
||||
} catch (Exception ex) {
|
||||
logger.log(Level.SEVERE, null, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStop() {
|
||||
stopTimer();
|
||||
super.onStop();
|
||||
}
|
||||
|
||||
@@ -131,22 +133,13 @@ public class ScreenPanelSF extends Panel implements CamServerViewer.CamServerVie
|
||||
@Override
|
||||
protected void onTimer() {
|
||||
for (Device dev : new Device[]{screen, filter}) {
|
||||
if (dev != null) {
|
||||
if ((dev != null) && (dev.getState().isNormal())) {
|
||||
dev.request();
|
||||
}
|
||||
}
|
||||
|
||||
checkAppState();
|
||||
|
||||
if (App.hasArgument("s")) {
|
||||
try {
|
||||
((Source) getDevice("image")).initialize();
|
||||
} catch (IOException ex) {
|
||||
logger.log(Level.SEVERE, null, ex);
|
||||
} catch (InterruptedException ex) {
|
||||
logger.log(Level.SEVERE, null, ex);
|
||||
}
|
||||
}
|
||||
try {
|
||||
if (panelPulse.isVisible()){
|
||||
CamServerViewer.Frame frame = camServerViewer.getCurrentFrame();
|
||||
|
||||
Reference in New Issue
Block a user