View Single Post
  #2 (permalink)  
Old 06-03-2008, 05:35 AM
sukatoa's Avatar
sukatoa sukatoa is offline
Senior Member
 
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 527
sukatoa is on a distinguished road
Send a message via Yahoo to sukatoa
Not clear,

You want to add the contents of the textField to JList?

Quote:
I looked for tutorials on using netbeans to use the add button to add to a jlist and I found nothing.
NetBeans doesn't support that feature(The programmer should do it)... it only initializes the contents when the ClassLoader loads that class.
Not dynamic...

try to use DefaultListModel, have experiments on it....
THere is a JList constructor that has a parameter ListModel...
You can pass that DefaultListModel to that parameter....

You may play with that.....
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote