Hi I have a JFrame that contains a JList & a JLabel.When the JFrame is created the JList will be empty,the size of it is larger than that of the JLabel which is empty too.The JList is added with values one by one by the user.When a value is added to the list it is resized to fit to the length of the added value.Can't this be set to a specific value at the beginning itself.I'm using BorderLayout().Please help me out. Happy middling with java. Netharam.
posted 15 years ago
The method setFixedCellWidth() in JList might help. - Raja.