How can I get the first element in my jList?
Code: public void getFirst(){ JOptionPane.showMessageDialog(null,jList1.getModel().getElementAt(0)); }
public void getFirst(){ JOptionPane.showMessageDialog(null,jList1.getModel().getElementAt(0)); }
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson My Blog
Forum Rules