When you use new classes, you should review/skim the API page to see what's there, useful notes at the top, example usages, what methods are available and what they do. It's a simple thing, takes a...
Type: Posts; User: GregBrannon
When you use new classes, you should review/skim the API page to see what's there, useful notes at the top, example usages, what methods are available and what they do. It's a simple thing, takes a...
Look at the ActionEvent.getSource() method, notice what it returns and then imagine what you could do with that to handle button presses.
Edit: And this is a case where it's okay to compare...
You're making the Controller instance aware of the View instance, but not the other way around.
This is what you could do:
Modify the main class so that the model is created first and passed to...
You need to be more specific about what you need help with. When you say "It runs but nothing", and "still nothing," what do you mean? Do you mean that the buttons are not causing some action to...
It actually is displaying, probably very small in the upper left corner of your screen. To improve the output, give the panel a preferred size, something like:
panel.setPreferredSize( new...
We need to see how the MVC elements are wired together. Post the Model and View.
What results? How many results? What should the box look like? Review Oracle's Swing tutorials to see the...