File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT / JFace and the fly likes JList + JScrollPane Prob (URGENT..) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply Bookmark "JList + JScrollPane Prob (URGENT..)" Watch "JList + JScrollPane Prob (URGENT..)" New topic
Author

JList + JScrollPane Prob (URGENT..)

Yaroslav Chinskiy
Ranch Hand

Joined: Jan 09, 2001
Posts: 147
Hi,
I have JList with ScrollPane
For JList I use DefaultListModel
If I pump a lot of messages to the list (at the same time i send 300 x 3 thread), I sometimes get ArrayOutOfBound exception or my ScrollPane freezes until the new message is added.
I add messages using mulithread, the add method is synchronied.

Do you know how to fix it???
Also i want to add counter that whould display num of messages in the JList, it should inc ar dec whenever new messege is added or deleted?
Thank you.
Yarik.
 
 
subject: JList + JScrollPane Prob (URGENT..)
 
Threads others viewed
how to add a scrollpane...
ScrollBar(VERY URGENT PLEASE)
Need Guru's help!!
HashMap problem
JList maximum capacity???
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture