This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin Cookbook and have Ken Kousen on-line!
See this thread for details.
Win a copy of Kotlin Cookbook this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Joe Ess
  • salvin francis

Doubt in Layout

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a question asked in a mock exam from the book "Dreaming of Java" by Dilbert, Dogbert et al.
Which layout(s) is more useful, if you want the components to resize horizantally , but not vertically, when the
container is resized ?
Could someone answer this and explain it too, for the sake
of humanity ?

[This message has been edited by Shalini Gopalan (edited December 29, 2000).]
 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shalini,

I think that the answer is BorderLayout. The components placed in NORTH and SOUTH in a BorderLayout have their preferred height honoured. So even if a component is resized the height of the components in north and south will not change but only their width.
Hope this helps
rajani
[ March 27, 2002: Message edited by: rajani peddi ]
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where comes NORTH and SOUTH in GridLayout?
Are u talking about BorderLayout?
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well even in the border layout if the container is resized then the components are resized. Only flow layout honours the preferred size of the components the arrangements of the components is altered in the rows when the container is altered., in null layout we can set the bounds, in both the size does not change if we change the size of the container. Someone please answer this one from Shalini.
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi rajani peddi;
Are you clear your JCP exam?
if Yes, you are stupid .
Do you know about layout? if ,yes you need to clear your knowledge about layout.
Bye.
Sorry.
 
rajani peddi
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mr.Stupid Patel ,
I have cleared my JCP exam with 84%. Infact your statement "Are you clear your JCP exam?" makes no sense and may be you should learn english before learning java.
Regards,
Rajani

Originally posted by vishad patel:
hi rajani peddi;
Are you clear your JCP exam?
if Yes, you are stupid .
Do you know about layout? if ,yes you need to clear your knowledge about layout.
Bye.
Sorry.

 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vishad patel (although you may be long gone) and rajani peddi,
This stops NOW!!!
This is no battlefield here, people are willing to learn here not watching stupid fights.
If you want to have a good fight go over to MD and do it there, but not in my forum, understood?
[ March 27, 2002: Message edited by: Valentin Crettaz ]
 
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Valentin Crettaz:
vishad patel (although you may be long gone) and rajani peddi,
This stops NOW!!!
This is no battlefield here, people are willing to learn here not watching stupid fights.
If you want to have a good fight go over to MD and do it there, but not in my forum, understood?
[ March 27, 2002: Message edited by: Valentin Crettaz ]


What is MD?
 
Valentin Crettaz
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MD = Meaningless Drivel
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!