• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to resize the component  RSS feed

 
chaitanya thakur
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have used the setSize() ans setBounds() method to resize the swing button.But its not working.
Any answer for this.
TA
Chaitanya
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the following methods:
setMinimumSize()
setPreferredSize()
They both are passed a Dimension.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!