Re: using SkinLF to change application LF



Roedy Green wrote:
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?
It is kind of the other way round. Calling updateComponentTreeUI() on a frame revalidates/repaints all its children, grand-children, ...

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('$','@')

.


Quantcast