|
@@ -23,15 +23,22 @@ public class Main {
|
|
|
*/
|
|
|
public static void main(String[] args) {
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- try {
|
|
|
+ if (!System.getProperty("os.name").startsWith("Linux"))
|
|
|
+
|
|
|
+ try {
|
|
|
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
|
|
|
- } catch (ClassNotFoundException | InstantiationException | IllegalAccessException
|
|
|
- | UnsupportedLookAndFeelException e) {
|
|
|
+ } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException e) {
|
|
|
|
|
|
e.printStackTrace();
|
|
|
- }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ try {
|
|
|
+ UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel");
|
|
|
+ } catch (ClassNotFoundException | InstantiationException | IllegalAccessException
|
|
|
+ | UnsupportedLookAndFeelException e) {
|
|
|
+
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
|
|
|
EventQueue.invokeLater(new Runnable() {
|
|
|
public void run() {
|