Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

need simple programe in swing, in which component will not stretch with win size  RSS feed

 
mani senthil
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear friends, i don't know how to set the size(width and height) of the componeds. when i maximize the window the component also stretch with window size. so help me to avoid that. send me a simple programe
 
Henrik Engert
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which layout manager are you using?
[ January 19, 2007: Message edited by: Henrik Engert ]
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> send me a simple programe

far easier for you to send us a simple program, showing us what you're doing,
and we can show you a fix
 
mani senthil
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Henrik Engert:
Which layout manager are you using?

[ January 19, 2007: Message edited by: Henrik Engert ]


i have used GridBagLayout
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!