This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Everything appears to be in place and with no errors while open in Eclipse. When I run the program though, it will only let me select ONE of the options on the checkbox buttons, and also the calculate and exit buttons are not working. Where exactly have I gone wrong with this? My instructor mentioned something about making the calculate/exit buttons NOT static, but if I do that, it won't even run and errors pop up everywhere, so I'm pretty confused. The following is the last point where I had no errors, yet had the button issue. All of my other attempts at trying different fixes kind of broke everything, so this is the functional version.
you create your buttons in buildButtonPanel
calcButton = new JButton("Calculate");
exitButton = new JButton("Exit");
and add (now) actionListeners to them.
but then in the constructor of autoMaintenanceSvcCalc() you re-create the buttons
serviceCalculatorGUI.calcButton = new JButton("Calculate");
serviceCalculatorGUI.exitButton = new JButton("Exit");
these buttons do not have a listener added to them
comment out the lines
//serviceCalculatorGUI.calcButton = new JButton("Calculate");
//serviceCalculatorGUI.exitButton = new JButton("Exit");
and in the constructor of serviceCalculatorGUI() move
mainPanel = new autoMaintenanceSvcCalc();