Skip to content

Commit

Permalink
Updated various information
Browse files Browse the repository at this point in the history
  • Loading branch information
BrendanoElTaco committed Nov 29, 2023
1 parent a130267 commit dfe9bb4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/AboutPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public AboutPanel() {
</style>
</head>
<body>
<p><strong>Version:</strong> 1.0.2</p>
<p><strong>Version:</strong> 1.1.3</p>
<p>Developed by Brendan LeGrand</p>
<p>For more information, visit my <a href="https://github.com/BrendanoElTaco/CSCI3300_Term_Project">GitHub</a></p>
<p>NumCruncher is a user-friendly calculator designed to perform basic arithmetic operations, trigonometric calculations, and more.</p>
Expand Down
1 change: 0 additions & 1 deletion src/Calculator.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public class Calculator extends JFrame implements ActionListener {
* - Use the graphical interface for performing calculations.
* - Refer to the FAQ in the help center for detailed operating instructions.
*
* Note: This class depends on CalculatorUI and CalculatorLogic for its operations.
*/
private static final long serialVersionUID = 4519143440307608770L;

Expand Down
11 changes: 3 additions & 8 deletions src/CalculatorUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ public void initializeUI(Calculator calc) {
initializeOperationButtons();
initializeFunctionButtons();
initializeMenuBar();

//Make key presses work
registerGlobalKeyEventListener();

// Create the main panel to hold the result field and button panel
mainPanel = new JPanel();
Expand All @@ -114,8 +117,6 @@ public void initializeUI(Calculator calc) {

// Make the frame visible
setVisible(true);

registerGlobalKeyEventListener();
}

private void initializeMenuBar() {
Expand All @@ -129,7 +130,6 @@ private void initializeMenuBar() {
setJMenuBar(menuBar);
}


private JMenu createCustomizationMenu() {
JMenu customizationMenu = new JMenu("Customization");

Expand Down Expand Up @@ -205,7 +205,6 @@ private JMenu createSoundMenu() {
return soundMenu;
}


private JMenu createHelpMenu() {
JMenu helpMenu = new JMenu("Help");
JMenuItem helpItem = new JMenuItem("Help Center");
Expand All @@ -222,7 +221,6 @@ private JMenu createHelpMenu() {
return helpMenu;
}


private JMenu createAboutMenu() {
JMenu aboutMenu = new JMenu("About");
JMenuItem aboutItem = new JMenuItem("About my Calculator");
Expand All @@ -239,7 +237,6 @@ private JMenu createAboutMenu() {
return aboutMenu;
}


private void initializeResultField() {
resultField = new JTextField(10);
resultField.setEditable(false);
Expand Down Expand Up @@ -275,7 +272,6 @@ private void initializeOperationButtons() {
}
}


private void initializeFunctionButtons() {
calculateButton = createButton("=", BUTTON_FONT);
calculateButton.setBackground(equalBgColor);
Expand Down Expand Up @@ -585,7 +581,6 @@ public void updateVolume(int sliderValue) {
savedVolume = convertSliderValueToDecibels(sliderValue);
}


// Method to mute the sound
public void muteSound() {
isMuted = true;
Expand Down

0 comments on commit dfe9bb4

Please sign in to comment.