JAVA-INDEX.COM
Java programming resources: FAQs, tutorials, compiler and browser download sites, documentation, books lists, IDEs, etc.
Home....
|
log in....
|
Pub my question!
|
Sign-up....
Java-index
>>
Desktop
>>
Core GUI APIs
Making an Image into a clickable Button
I was wondering if there is a way to make an image into a button. I know you can add an image onto a JButton, but I want to make an actual image into its own clickable button.
[182 byte] By [
mike200015a
] at [2007-11-27 1:24:19]
««
Please help me on Regular Expression!
»»
What is the correct way of doing conditional output?
# 1
Add the image to a JButton and set the button Border to null so it doesn't look like a button.
camickra
at 2007-7-12 0:15:19 >
# 2
That doesn't really work. It takes away the borders around the button, but you can still see the button underneath.
mike200015a
at 2007-7-12 0:15:19 >
# 3
> That doesn't really work.Works for me.
camickra
at 2007-7-12 0:15:19 >
# 4
xyz = new ImageIcon(urclass.class.getResource("any.gif"));
Dharmendra.jspa
at 2007-7-12 0:15:19 >
Desktop
SocketException
JNLP classpath precedence 1.4.2 vs 1.6
tta directory services integration
Problem in accessing files outside jar
not able to display UTF-16 char in web page
Can't get rid of the wireframe window
Java 1.6, shortcut creation, and SSL urls
What is the latest version of Java/JRE that Is compatible with AMD64 bit Wi
How to get the List of IP Address, of Computers accessible from a Computer
Connection with an excel document
Core GUI APIs
Problem of JTabbedPane
Table Field Selection
How can I persist all changes I made to these edited leaves and nodes?
DnD JPanel and show moving JPanel
JSplitPane with 2 JScrollPanes sincroniced
how to make jframe with background image transparent
How to edit JLabel Text String at run time?
JTextField and append
GridBagConstraints
embedding external programs?
Desktop New Topic
SocketException
Table Field Selection
DnD JPanel and show moving JPanel
JTextField and append
embedding external programs?
JComboBox will not open inside of JTabbedPane
How to do?
Distinguishing user selections from programmatic selections in JList
Desktop Hot Topic
Problem of JTabbedPane
How can I persist all changes I made to these edited leaves and nodes?
JSplitPane with 2 JScrollPanes sincroniced
how to make jframe with background image transparent
How to edit JLabel Text String at run time?
GridBagConstraints
JNLP classpath precedence 1.4.2 vs 1.6
JScrollPane and tabs in JPanel
Desktop
Core GUI APIs
Deploying
Runtime Environment
Developing for the Desktop
I18N
Sun Secure Global Desktop Software
Sun Java Desktop System
Sun Ray Software - General Discussion
Mozilla Browser For Solaris
All Classified
Archived Forums
Enterprise & Remote Computing
Java Essentials
Desktop
Core
Solaris Operating System
Security
Database Connectivity
Java Mobility Forums
Web & Directory Servers
Development Tools
Application & Integration Servers
Java HotSpot Virtual Machine
Other Topics
E-Mail, Calendar, & Collaboration
Developer Tools
General
Administration Tools
Sun Hardware
Storage Forums
Java Enterprise System
StarOffice
Open Source Technologies
BigAdmin
Real-Time
Java Coding