|
JList max width problem
I have had a quick search and can't find anything really useful. I am making a IRC style chat app for some coursework and have a JList inside a ScrollPane in the center of a BorderLayout jPanel (on the right (LINE_END) of a BorderLayout on the main form) to list all the usernames of clients connected to the server.
My problem is that I cannot seem to make the width of the jList fixed, or adhere to a maximum value. It is always the width of the longest text in the list, it doesn't matter if the scrollpane is set to even always display horizontal scroll bars that doesn't work. Anyone have any ideas? I'll add code if need be.
__________________
Go away before I replace you with a very small shell script.
--
Get FireFox!
|