Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to streach an image all over the button  RSS feed

 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi there,
I got an image where I would like to strech it all over the button.
in the code below - it place it in a flow mode (and i would like it to be BorderLayout).


exit = new JButton();
exit.setIcon(new ImageIcon("images/Exit.gif"));

thanks for any help
peter
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ohhhh....thank you sir
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!