Search:

Type: Posts; User: joachim89

Search: Search took 0.09 seconds.

  1. Replies
    9
    Views
    2,424

    Re: A program with a GUI

    I made a method called addToList that takes an ArrayList and an object as parameters. Evidently it it supposed to add the object to the list. My class for the dialog box looks like this now:


    ...
  2. Replies
    9
    Views
    2,424

    Re: A program with a GUI

    I decided to create a JFrame with data fields.

    Here's an EventHandler class that reads input from the JFrame dialog box.
    (createNew is a JButton)


    public class EventHandler implements...
  3. Replies
    9
    Views
    2,424

    Re: A program with a GUI

    Ok, I decided to make my own JFrame instead.
    But still I can't get it to run just for a quick test.

    This code gives me the error message that the method setVisible is undefined for the type...
  4. Replies
    9
    Views
    2,424

    Re: A program with a GUI

    Is it possible for me to create my own JOptionPane? I need more than one string to pass on to the constructor.(The constructor takes like 6 parameters of 3 different types). Of course I could have...
  5. Replies
    9
    Views
    2,424

    A program with a GUI

    I have an (a subclass to) AbstractTableModel which contains an ArrayList of type Item (a home-made class) and some basic methods such as add, remove,getColumnCount, getRowCount and getValueAt. This...
Results 1 to 5 of 5