just some theme changes, i like this one more

This commit is contained in:
2026-01-18 22:10:37 +01:00
parent e7a3d98dd0
commit 41fbf62757

View File

@@ -1,11 +1,40 @@
package io.swtc;
import javax.swing.*;
import java.io.PrintWriter;
import java.io.StringWriter;
public class Main {
public static void main(String[] args) {
for (int i = 0; i < args.length; i++) {
System.out.println("Arg " + i + ": " + args[i]);
// for (int i = 0; i < args.length; i++) {
// System.out.println("Arg " + i + ": " + args[i]);
// }
try {
UIManager.setLookAndFeel(
"com.sun.java.swing.plaf.windows.WindowsLookAndFeel" // actual class
//"com.i.throw.errors" // just for testing the try catch!
);
} catch (Exception e) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
String message =
"Exception -> " + e.getMessage() +
"\nStacktrace:" + sw
+ "\n\nException Class: " + e.getClass().getName()
;
JOptionPane.showMessageDialog(
null,
message,
"Exception",
JOptionPane.ERROR_MESSAGE
);
}
SwingCCTVManager.main(null);
}
}