About
Pricing
Community
Teams
Start Free Trial
Log in
hipal
asked on
11/8/2010
Displaying images as Jbutton
Hi All,
Can someone please suggest how can I make my images to be a button?
I am trying to show just an image and no borders etc. and want it to work as button.
Thanks!
Programming
Java
7
4
Last Comment
GenroseSusai
8/22/2022 - Mon
hipal
11/8/2010
ASKER
I am not trying to display a picture in JButton but trying to make an image itself a button.
ASKER CERTIFIED SOLUTION
Mick Barry
11/8/2010
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
hipal
11/8/2010
ASKER
Can you please give a very simple example overriding paintCOmponent to replace a circle as a button.
Hope I am not asking for too much. It that needs too much code, please ignore ..
thank you !
SOLUTION
ksivananth
11/8/2010
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Valeri
11/8/2010
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
CEHJ
11/9/2010
http://download.oracle.com/javase/1.4.2/docs/guide/awt/demos/lightweight/RoundButtons/actual/RoundButton.java
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
SOLUTION
GenroseSusai
11/9/2010
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.