posted 18 years ago
hi, i just moved to nb5 and matisse gui and im trying my first steps with it.
i created the JFrame, draged the JList on it and i wrote a separat class which gets some data from DB. All i want ist to show that Data in JList. In a property pane,when Jlist is selected, there is "model" option but it only offers to add the items manualy ?
in my separete class i have something like :
while (rs.next()) {
someVector.add(rs.getInt("id"));
}
and i have the geterMethod like:
public Vector getSomeVector(){
return someVector;
}
so how to say the gui that i want to call that method so that i have something like:
JList jlist = new JList( someVector);
TIA