Relates :
|
Swing-1.0.2: I have one comment on painting focus logic of motif look JButton. From the line 219 of MotifBorderFactory, hasfocus is always true whenever the button is pressed even though focusPaint is false. hasfocus is used to see if focus has to be painted or not. How about: hasFocus = b.isFocusPainted() && b.hasFocus(); If button's focusPaint is false, focus should not be painted even though button is pressed. (Window and Metal ButtonUI follows this well) bae-chul.kim@eng 1998-04-16
|