Im new to java and would be great if someone could just point me in the right direction here.
Im trying to put different arraylists into one array so i can then put those array objects into a Jlist.
I have got so far but now just cant seem to populate my Jlist with what i want.
Any Pointers would be great.
private void btnCheckActionPerformed(java.awt.event.ActionEvent evt) {
carmakes[] makes = new carmakes[3];
Audi [0] = new carmakes (AudiFeatures);
BMW [1] = new carmakes (BMWFeatures);
DefaultListModel myModel = new DefaultListModel();
myModel.addElement(makes);
lbxCarMake.setModel(myModel);
// Create Car
ArrayList<String> AudiFeatures = new ArrayList<String>();
AudiFeatures.add("Leather Seats");
AudiFeatures.add("Bose Sound System");
AudiFeatures.add("Paint Job");
AudiFeatures.add("24inch Alloys");
ProductOrder Audi = new ProductOrder ("Audi", (String)cbxenginesize.getSelectedItem(), AudiFeatures, 9999.99);
//Create Car
ArrayList<String> BMWFeatures = new ArrayList<String>();
BMWFeatures.add("SatNav");
BMWFeatures.add("Leather Seats");
BMWFeatures.add("22inch Alloys");
ProductOrder BMW = new ProductOrder ("BMW", (String) cbxenginesize.getSelectedItem(), BMWFeatures, 10000.99);
Many thanks.