Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Use of Layout Managers

 
Michel Bertrand
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Michel Bertrand
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Paul Tongyoo
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Michel Bertrand
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tks for your comments ! I will think a little more about the subject.
Regards,
Michel.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic