For me the critical component was the Search panel. It had a few labels and buttons and as a flowlayout was prone to have buttons drops down when resized (and usually disappear below the JTable. I decided that this would be the first component added to the Frame, the frame would then be packed and the width of the frame (with a 10 pizel added offset) at that point stored in an int minWidth. Other panels inc the JTable are then added (making the frame wider and higher instantly). Then on any resize event if the width is set below the minWidth I simple called setSize(minWidth,getWidth()); It works (although the correction only happens AFTER they release the mouse button) on my windows XP system. Anyone know if I might get problems with such a solution on other systems?
SCJP (1.4), SCJD (1.4), SCWCD (1.3), SCBCD (1.3)
posted 13 years ago
Sounds good to me. I wish I had done something like that before submitting. My frame can be resized down to a speck...
Jacques<br />*******<br />MCP, SCJP, SCJD, SCWCD
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads