<Swing Dev> awful JButton
Johan Henriksson
mahogny at areta.org
Mon Dec 29 19:42:05 UTC 2008
Hello!
I've become tempted at some openjdk hacking. the JButton has pissed me
off for a long time. it doesn't work very well when shrunk:
* The text is replaced by ... even when ... takes almost more or as much
space
* instead of removing slack space at the sides of the text, it starts to
throw away the label
work-arounds in GUIs that has to be compact are really awful. I wouldn't
mind trying to fix this myself if someone gives me a few pointers (I'm
totally confused about AWT, java2d, any sort of acceleration and gtk(?))
but first:
1. would changing the behaviour break anything? (or enough to stop the
change?)
2. what's your opinion? would a patch be accepted?
/Johan
More information about the swing-dev
mailing list