Expand|Select|Wrap|Line Numbers
- public void actionPerformed(ActionEvent event) {
- JComboBox comboBox = (JComboBox)event.getSource();
- String selection = (String)comboBox.getSelectedItem();
- if (selection == "Price Elasticity of Demand") {
- runGUI
- }
Furthermore, how can i call a method from a different class when a button is clicked ?
Cheers in advance ;)