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
2010-05-01 05:17:35
@camickr: Nice trick!
Martijn Courteaux
2010-05-01 08:46:05
@camickr Awesome, thanks for that.
FreeThinker
2010-05-02 09:37:13