New Look and feel Theme

This commit is contained in:
Arthur 2021-04-20 11:11:07 +02:00
parent 9909249039
commit d141d9032b
2 changed files with 7 additions and 2 deletions

View File

@ -90,8 +90,7 @@ public class Listener extends AbstractListener implements KeyListener, MouseWhee
} }
@Override @Override
public void keyTyped(KeyEvent ke) { public void keyTyped(KeyEvent e) {
} }

View File

@ -8,6 +8,7 @@ import lsystem.screen.gl3d.AbstractCanvas;
import lsystem.utils.Pair; import lsystem.utils.Pair;
import javax.swing.*; import javax.swing.*;
import javax.swing.plaf.nimbus.NimbusLookAndFeel;
import java.awt.*; import java.awt.*;
import java.awt.event.WindowAdapter; import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent; 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. * Create a new JFrame on which will be displayed all the GUI elements.
*/ */
public MainFrame(){ public MainFrame(){
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (ClassNotFoundException | IllegalAccessException | UnsupportedLookAndFeelException | InstantiationException e) {
e.printStackTrace();
}
nbRules = 1; nbRules = 1;
nbTabs = 0; nbTabs = 0;
basePanel = new JPanel(); basePanel = new JPanel();