This is a snippet of code that was created by netbeans, and I am confused by what these brackets do after it calls AbstractListModel.
li_reminderslist.setModel(new javax.swing.AbstractListModel() {
String[] strings = { };
public int getSize() { return strings.length; }
public Object getElementAt(int i) { return strings[i]; }
});
Sorry for the newbie. I tried to find a tutorial on this, but could not find it.
source
share