This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a JDialog with a JComboBox on it. The first time a open the form all is fine. All subsequent times, the comboBox can be expanded, but I can't click on any of the items. However, the keyboard can select an item. I have other comboboxes that work fine, but their lists are hard-coded. This combobox gets its values from the db. Anyone seen this? (jdk 1.4.X)
use setPreferredSize(Dimension d) on the combo box
Joined: Feb 18, 2003
setPreferredSize() didn't actually fix my problem. I did find a workaround though... I'm reusing the JDialog in question. On the close of the window, I call dispose(). It fixes my problem (my combo is now 'clickable') and it never actually releases the form back to memory. I verified this with JProfiler. Strange side effect!
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com