Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

size of the Component  RSS feed

 
lakshmi v.samy
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

can we set size the button?(all awt componenets)

Thanks in advance.
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You usually don't set the size of components. That's the job of the layout manager. Take the tutorial: http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html

If you want to *suggest* a size for a component, you often write:

[ February 10, 2006: Message edited by: Jeff Albertson ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!