Update src/main/java/dev/sillyangel/calc/Calculator.java
All checks were successful
Build the Jar / build (push) Successful in 8s
All checks were successful
Build the Jar / build (push) Successful in 8s
This commit is contained in:
@@ -164,7 +164,7 @@ public class Calculator extends JFrame implements KeyListener {
|
|||||||
JMenuItem delete = new JMenuItem("Delete");
|
JMenuItem delete = new JMenuItem("Delete");
|
||||||
JMenuItem preferencesm = new JMenuItem("Preferences");
|
JMenuItem preferencesm = new JMenuItem("Preferences");
|
||||||
preferencesm.setMnemonic('P');
|
preferencesm.setMnemonic('P');
|
||||||
// preferencesm.addActionListener(e -> PreferencesAction());
|
preferencesm.addActionListener(e -> PreferencesAction());
|
||||||
|
|
||||||
edit.add(undo);
|
edit.add(undo);
|
||||||
edit.add(redo);
|
edit.add(redo);
|
||||||
@@ -472,7 +472,9 @@ public class Calculator extends JFrame implements KeyListener {
|
|||||||
contentPane.setLayout(gl_contentPane);
|
contentPane.setLayout(gl_contentPane);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
private void PreferencesAction() {
|
||||||
|
System.out.println("preferences panel are open");
|
||||||
|
}
|
||||||
private void aboutActionPerformed() {
|
private void aboutActionPerformed() {
|
||||||
JLabel titleLabel = new JLabel( "Angel's Awesome Calculator" );
|
JLabel titleLabel = new JLabel( "Angel's Awesome Calculator" );
|
||||||
titleLabel.putClientProperty( FlatClientProperties.STYLE_CLASS, "h1" );
|
titleLabel.putClientProperty( FlatClientProperties.STYLE_CLASS, "h1" );
|
||||||
|
|||||||
Reference in New Issue
Block a user