Re: using SkinLF to change application LF
- From: Thomas Fritsch <i.dont.like.spam@xxxxxxxxxxx>
- Date: Thu, 27 Oct 2005 09:49:00 GMT
Roedy Green wrote:
It is kind of the other way round. Calling updateComponentTreeUI() on a frame revalidates/repaints all its children, grand-children, ...On 26 Oct 2005 16:51:14 -0700, anikkar@xxxxxxxxx wrote, quoted, or quoted someone who wrote :
I seem to have found the problem, it doesn't seem to update the any buttons (thats the only component i have noticed yet), until you mouse over the button (which fires the mouseOverEvent), which in turn changes the UI of the button (particulary it's bounds, i.e. rounded corners, etc).
Does calling updateUI automatically revalidate/repaint all Frames?
Calling
SwingUtilities.updateComponentTreeUI(frame)
walks through this frame's component/container tree. For each JComponent found it calls its updateUI() method.
All(?) subclasses of JComponent have a canonical implementation, like for class JBlaBla:
public void updateUI() {
setUI((BlaBlaUI) UIManager.getUI(this));
}
Subclasses of JComponent in their setUI(..) method typically call super.setUI(..) so that finally JComponent.setUI(..) is called, which in turn calls revalidate() and repaint().
--
"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@').
- Follow-Ups:
- Re: using SkinLF to change application LF
- From: Roedy Green
- Re: using SkinLF to change application LF
- References:
- using SkinLF to change application LF
- From: anikkar
- Re: using SkinLF to change application LF
- From: Thomas Fritsch
- Re: using SkinLF to change application LF
- From: anikkar
- Re: using SkinLF to change application LF
- From: Thomas Fritsch
- Re: using SkinLF to change application LF
- From: anikkar
- Re: using SkinLF to change application LF
- From: anikkar
- Re: using SkinLF to change application LF
- From: Roedy Green
- using SkinLF to change application LF
- Prev by Date: Re: getParentDirectory
- Next by Date: Re: problem related to transferhandler
- Previous by thread: Re: using SkinLF to change application LF
- Next by thread: Re: using SkinLF to change application LF
- Index(es):