Skip to main content
gamedev.net
🔒 Locked

[java] adding items to a JList

Started by capn_midnight Jun 9, 2004 at 4:19 PM 0 replies 350+ views
Original Post
capn_midnight
capn_midnight
I have an ArrayList of Building objects, which in turn has an ArrayList of Room objects. I have a editor form for adding Buildings to the list and Rooms to the buildings. I have a JList that I want to display the buildings in, but for the life of me I can''t figure out how to add items to the JList after it has been initialized.
capn_midnight | Captain Midnight | deviantArt ACM | SIGGRAPH | Generation5 "I''m tired of all this nonsense about beauty being only skin-deep. That''s deep enough. What do you want - an adorable pancreas?" -Jean Kerr

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.