Need Swing exmples

S

stocksami

I'm learning Java while doing a project at work. I'm creating an
application that while go to a user chosen directory, read some files,
populate some list boxes with that information and then finally display
a user chosen set of data. I've written some classes that read the
data and put it into objects. I've also been able to master using
FileChooser to select a directory. The step I'm having trouble with is
putting the data from the files into listboxes for further choices.
Could someone point me to a link with examples similar to that?

Thanks,

Clark
 
S

stocksami

I'm learning Java while doing a project at work. I'm creating an
application that while go to a user chosen directory, read some files,
populate some list boxes with that information and then finally display
a user chosen set of data. I've written some classes that read the
data and put it into objects. I've also been able to master using
FileChooser to select a directory. The step I'm having trouble with is
putting the data from the files into listboxes for further choices.
Could someone point me to a link with examples similar to that?

I should add that I'm using JFileChooser, not FileChooser. I can't
figure out how to update the components in the JFrame.

Thanks
 
O

Oliver Wong

I'm learning Java while doing a project at work. I'm creating an
application that while go to a user chosen directory, read some files,
populate some list boxes with that information and then finally display
a user chosen set of data. I've written some classes that read the
data and put it into objects. I've also been able to master using
FileChooser to select a directory. The step I'm having trouble with is
putting the data from the files into listboxes for further choices.
Could someone point me to a link with examples similar to that?

You could try "Learn Swing By Examples":
http://java.sun.com/docs/books/tutorial/uiswing/learn/index.html

You might also want to try "A Visual Index to the Swing Components".
Click on the picture of the component you want to use, and you'll be sent to
a tutorial on using that component.
http://java.sun.com/docs/books/tutorial/uiswing/components/components.html

- Oliver
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top