Search:

Type: Posts; User: GregBrannon

Search: Search took 0.20 seconds.

  1. Replies
    14
    Views
    1,014

    Re: MCV (buttons not working)

    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...
  2. Replies
    14
    Views
    1,014

    Re: MCV (buttons not working)

    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...
  3. Replies
    14
    Views
    1,014

    Re: MCV (buttons not working)

    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...
  4. Replies
    14
    Views
    1,014

    Re: MCV (buttons not working)

    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...
  5. Replies
    14
    Views
    1,014

    Re: MCV (buttons not working)

    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...
  6. Replies
    14
    Views
    1,014

    Re: MCV (buttons not working)

    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...
Results 1 to 6 of 6