Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
Can I change the List's DLM dynamically?
Joined: Sep 03, 2001
Oct 08, 2001 02:22:00
I have the following syntax:
DefaultListModel dlm= new DefaultListModel(); JList list = new JList(dlm);; JScrollPane clientScroll = new JScrollPane(list);
For example, I have method inside my class that receives
object , I want to put this object instead of the current dlm in run time, can I do this?
It is sorta covered in the
JavaRanch Style Guide
subject: Can I change the List's DLM dynamically?
Help understanding custom ListCellRenderers
Problem with JScrollPane
Image in List
Changing the values in the list box
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014