invisible button
I'm trying to create more or less a clickable area by extending JButton, the only problem is that I don't want the JButton to be displayed, i tried setUI(null), but that seemed to nullify all of the button's function. Is there some sort of setIsPainted(false) method? or am I just going to have to write some custom code?
[331 byte] By [
YODA0340a] at [2007-11-27 10:24:10]

# 1
Thinking aloud here; (i.e. haven't tried it). Could you create a new button class extending JButton, then override the paint() method with a stub. Therefore it won't draw.
As I say haven't tried, just a thought
# 2
These are worth a try.
button.setContentAreaFilled(false);
button.setBorderPainted(false);
Also check your API documentation for JButton and AbstractButton for more useful methods
ICE