This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

Robert Marcano's blog
Get Firefox Use OpenOffice.org hacker emblem

Java? Swing component to simulate link labels

robert | 27 March, 2004 14:06

Someone requested help on SoloJava group (spanish language) about a Label that can be clicked, so I decided to implement one. The implementation details are very simple, this component is not a JLabel, it is a simple JButton with a different UI and a mouse listener added in order to change it appareance when the mouse enters or exit the component area. You can download the source code (BSD license)

See the source code file for the class com.marcanoonline.swing.TestButtonLink in order to see an example of com.marcanoonline.swing.JButtonLink component usage

 
Valid XHTML 1.0 Strict and CSS.
Copyright 2003-2009 Robert Marcano. All Rights Reserved
Powered by LifeType