tags:

views:

28

answers:

1

Currently I am developing a small todo list manager and would like to use labels in place of buttons on the 'context' bar. If any one could provide me with information on how I could go about doing this I would appreciate it greatly.

+2  A: 

It's probably easier to just use a JButton. It you use

button.setBorderPainted(false)

then it will look just like a label but you can still use an ActionListener.

camickr
@camickr: Nice trick!
Martijn Courteaux
@camickr Awesome, thanks for that.
FreeThinker