|
Thank you for your help. Let me show you what I did.
I declared private DefaultListModel lm = newDefaultListModel(); with the rest of my declared buttons and textfields etc...
Then I went to the jlist properties section and clicked on the model section and typed in lm after selecting custom code. and then just added the elements to the add button after creating an event actionperformed by right clicking on the add button, selecting events, then actionperformed and typing in the following code.
lm.addElement(jTextField1.getText()); etc... for the rest of the textfields
I tryed doing this yestereday but I was trying to select component and then I was trying to bind. I go it now though, so if any other newbies like myself need help with something similar hopefully they will find my post, since I was looking for hours for a post like this.
Thank you again for your effort.
|