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:
...
Type: Posts; User: joachim89
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:
...
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...
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...
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...
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...