diff --git a/src/lsystem/screen/main/Listener.java b/src/lsystem/screen/main/Listener.java index 68f691b..f944b1d 100644 --- a/src/lsystem/screen/main/Listener.java +++ b/src/lsystem/screen/main/Listener.java @@ -90,8 +90,7 @@ public class Listener extends AbstractListener implements KeyListener, MouseWhee } @Override - public void keyTyped(KeyEvent ke) { - + public void keyTyped(KeyEvent e) { } diff --git a/src/lsystem/screen/main/MainFrame.java b/src/lsystem/screen/main/MainFrame.java index 0089b7a..4caa069 100644 --- a/src/lsystem/screen/main/MainFrame.java +++ b/src/lsystem/screen/main/MainFrame.java @@ -8,6 +8,7 @@ import lsystem.screen.gl3d.AbstractCanvas; import lsystem.utils.Pair; import javax.swing.*; +import javax.swing.plaf.nimbus.NimbusLookAndFeel; import java.awt.*; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; @@ -30,6 +31,11 @@ public class MainFrame extends JFrame { * Create a new JFrame on which will be displayed all the GUI elements. */ public MainFrame(){ + try { + UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); + } catch (ClassNotFoundException | IllegalAccessException | UnsupportedLookAndFeelException | InstantiationException e) { + e.printStackTrace(); + } nbRules = 1; nbTabs = 0; basePanel = new JPanel();