• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JButton

 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, i have a JButton like so

JButton button = new JButton("Send");
button.setBounds(x,y,40,15);

ok, how do i modify the "Send" to fit on that small of a button?


Justin
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
setMargin() to 0
then
setFont() to a smaller size
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic