Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Swing / AWT / SWT and the fly likes Can I change the List's DLM dynamically? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Can I change the List Watch "Can I change the List New topic
Author

Can I change the List's DLM dynamically?

Shay Gaghe
Ranch Hand

Joined: Sep 03, 2001
Posts: 102
I have the following syntax:

For example, I have method inside my class that receives DefaultListModel object , I want to put this object instead of the current dlm in run time, can I do this?
Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can I change the List's DLM dynamically?