|
Need help with GUI's and JLists.... -
I am working on an assignment for my advanced Java class. We are doing JLists for GUI's. I am not that good with GUIs, and I am having problems with valueChanged() method. I havent worked much with JLists before, so i am very new with them.
I am getting the error, inconvertible types in my ProdTest.Java file. I added a zip file containing all of my code so that anyone may look at it and help me out with this. I dont know what I am doing wrong. Code:
public void valueChanged(ListSelectionEvent e){
Product product = (Product)listOfProds.getSelectedIndex();
this.getContentPane().add(new ProductView(product), BorderLayout.EAST);
pack();
}
Here is what my assignment is supposed to be able to do Quote:
|