Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

regarding the JButton  RSS feed

 
narayana satish
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By default we will add our gif files to the JLabels. Please tell me how to add the same to our JButton
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JButton has a constructor that takes an Icon as an argument.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!