intellij commit #1

This commit is contained in:
cs-powell
2024-12-05 21:08:26 -05:00
parent b460a8f8b9
commit 75cb986ed1
5 changed files with 53 additions and 36 deletions

View File

@@ -22,6 +22,7 @@ public class visualizer {
JLabel two = new JLabel();
JLabel three = new JLabel();
JLabel four = new JLabel();
Model m;
@@ -30,7 +31,6 @@ public class visualizer {
this.m = m;
}
public void initializeDisplay() {
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
@@ -126,7 +126,7 @@ public class visualizer {
visualizer.add(rudderGrid);
JToolBar tool = new JToolBar("Toolbar");
JButton b1 = new JButton("Data Log Toggle");
JButton b1 = new JButton("Data Log Disabled");
ActionListener press = new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
@@ -134,10 +134,12 @@ public class visualizer {
m.startLog();
JOptionPane.showMessageDialog(frame,"Data Logging Enabled");
tool.setBackground(Color.green);
b1.setText("Data Log Enabled");
} else {
m.stopLog();
JOptionPane.showMessageDialog(frame,"Data Logging Disabled");
tool.setBackground(Color.white);
b1.setText("Data Log Disabled");
}
}