• Post Reply Bookmark Topic Watch Topic
  • New Topic

Rounded button with a customed icon on it

 
Archana Venu Aradhyula
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I want the code for rounded button with a customed icon on it in swings.

Thanks
Archana
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Archana Venu Aradhyula:

I want the code for rounded button with a customed icon on it in swings.


Archana,

The ranch is not a code mill. All the fellow ranchers volunteer their time here, so your statements like "I want.." are liable to get you some flak from someone.

On the other hand, if you attempt it yourself, and then request for some assistance in fixing a problem, people will be more than eager to help you.
You might also want to consider using words like please when making such requests.
 
Rob Spoor
Sheriff
Posts: 20822
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look for two methods that you can find yourself in JButton or one of its super classes:
- setBorder
- setIcon

Now you won't find the border you want in the API, but if you use Google I'm sure you'll be able to find it. I have seen code for it before so I know it exists.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!