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:
2026-01-11 21:09:51 +01:00
parent ddba427205
commit 965bed6801
7 changed files with 432 additions and 4 deletions

View File

@@ -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]);
}
}
}
}