Hello all,
I have the B&S Contractors assignment.
My client GUI has 3 main parts: a search panel (top), the JTable (middle), and a booking panel (bottom). Resizing works great - the top and bottom panels only take up the necessary vertical space to fit the components, and the JTable takes all remaining vertical space.
The question is with my search panel. It consists of two JComboBox's with JLabels (one pair for name, one for location), a group of two radio buttons (so the search will either return all matching contractors, or only matching contractors that aren't booked), and a search button.
Right now, I have it laid out like this:
---------------------------------------------
---------------------------------------------
NOTE: The JRadioButtons and the JComboBox's should all line up, but I
couldn't find a setLayout(new GridBagLayout()) in the Instant UBB
Code
I used GridBagLayout on this panel, and resizing works great, but there is a whole lot of empty space to the right of these components, especially when it's resized to full screen on a high resolution. Is this a bad design? Any suggestions on how I could improve? I don't want to add a bunch of new functionality just for the sake of filling up space. Maybe put the two JComboBox's on the same line?
Thanks in advance.
[ November 22, 2004: Message edited by: Jared Chapman ]
[ November 22, 2004: Message edited by: Jared Chapman ]
[ November 22, 2004: Message edited by: Jared Chapman ]
[ November 22, 2004: Message edited by: Jared Chapman ]
[Andrew: put code between
UBB [code] and [/code] tags]
[ November 22, 2004: Message edited by: Andrew Monkhouse ]