Forums Register Login

Use of Layout Managers

+Pie Number of slices to send: Send
Hi !
I did not use the Layout Managers on two of my assignment windows, both regarding database configuration, alone and network mode. May I use this approuch ? I did because as configuration windows they would not require iteraction regarding window and component resizing.
Tks in advance !
Michel.
+Pie Number of slices to send: Send
Sorry, I forgot to post another doubt. I developed a helper class to position objects in a JFrame. Very simple implementation which takes components from a array (label and component) and places them side by side in the screen.
May I use it too ?
Tks again !
Michel.
+Pie Number of slices to send: Send
Hi Michel--
Other than the required use of a JTable, my specs (Contractors 2.1.1) don't mention any restrictions on how the GUI should be implemented; if you've got my doc, I'd say you're in good shape. One thing to look out for is to think about how another developer might want to add components to your container; does your implementation facilitate this process or hinder it?

Regards,
Paul
[ November 10, 2003: Message edited by: Paul Tongyoo ]
+Pie Number of slices to send: Send
Hi Michel,
I agree with Paul, just adding that if you use absolute positioning, make sure that your screens look still OK with different L&F.
Now I wouldn't advice you to do what you decided : as using layout managers is a Java GUI "good practice", I would take into account the (small ?) risk that your examiner won't appreciate that you don't use them. But if you have a good justification for doing so, you should be OK IMO.
Best,
Phil.
PS: Are you french, belgian, swiss or canadian ?
+Pie Number of slices to send: Send
I also don't really recommend using a null layout manager, but if you do - what happens if the user tries to resize your app? Chances are, it won't look very good. This is what layout managers are good for. If you don't use a layout manager, consider using setResizable(false).
[ November 10, 2003: Message edited by: Jim Yingst ]
+Pie Number of slices to send: Send
Tks for your comments ! I will think a little more about the subject.
Regards,
Michel.
Hang a left on main. Then read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 545 times.
Similar Threads
Placing components with Swing
Re: GridLayout
Decrese space between Jlabel and its container(as cell spacing in html)
2 Questions
Resolution and Swing
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 00:22:18.