Search:

Type: Posts; User: JavaPF

Search: Search took 0.10 seconds.

  1. Replies
    7
    Views
    3,104

    [SOLVED] Re: using 2 classes

    Try updating the VendingMachineGUI class with this:



    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import...
  2. Replies
    7
    Views
    3,104

    [SOLVED] Re: using 2 classes

    OK I have a version of this saved now that will compile.

    I can see your GUI... What are you expecting to happen exactly? Please tell me how you would like the program to work.
  3. Replies
    7
    Views
    3,104

    [SOLVED] Re: using 2 classes

    Is this your entire code? There are a few errors in the VendingMachineGUI class which are stopping me from compiling it.
  4. Replies
    7
    Views
    3,104

    [SOLVED] Re: using 2 classes

    Hello AZBOY2000 and welcome to the Java Programming Forums :D

    Its good to meet you too.

    Here is an example of how to create a Swing GUI with a botton. When the button is clicked, an action is...
Results 1 to 4 of 4