some swing stuff cause swt is heavy and swing isnt
+ SwingCameraWindow + SwingCCTVManager --- fixes in WebcamCaptureLoop.java : Include thread safety, and some more stuff which is needed for Swing components. Planning on deprecating SWT in general
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
package io.swtc;
|
||||
|
||||
public class Main {
|
||||
|
||||
public static void main(String[] args) {
|
||||
// very simple main, so that we can start the manager!
|
||||
CCTVManager.main(args);
|
||||
for (int i = 0; i < args.length; i++) {
|
||||
System.out.println("Arg " + i + ": " + args[i]);
|
||||
}
|
||||
|
||||
if (args.length > 0 && "swing".equalsIgnoreCase(args[0])) {
|
||||
SwingCCTVManager.main(new String[0]);
|
||||
} else {
|
||||
CCTVManager.main(new String[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user