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'm trying to create a color panel behind some JLabels for visual feedback on a process. The problem I'm having is that the panel automatically resizes to fit the labels, regardless of any of the size settings.
This is a data collection program running on our factory floor collecting data from some wireless barcode scanners. The labels provide detailed status of the process is you are standing near the monitor, but the colored panel provides feedback the operators can see across the shop floor.
I've sucessfully set the size of the labels based on a percentage of the parent JFrame, but even if I set the color panel to 90% of the frame width, it automatically downsizes to just contain the labels.
Is there any way to force a panel to be certain size and not automatically shrink to fit the contained elements? Or, is there some other way to do what I'm trying to do?
TIA, [ January 27, 2005: Message edited by: Tom Blough ]
Tom Blough<br /> <blockquote><font size="1" face="Verdana, Arial">quote:</font><hr>Cum catapultae proscriptae erunt tum soli proscripti catapultas habebunt.<hr></blockquote>