I would like to change font properties of a title bar in JInternalFrame (that actually is on the screen) so I am calling:
IFrame is dynamically refreshed (font changed) and everything seems to be allright.. Unfortunately updateUI() method removes my mouse listeners from the title bar.
My questions are: 1) is any other way to refresh internal frame UI (without invoking updateUI())? 2) can I (in some safe way) save and restore my listeners from a title bar? I tried something like this (override updateUI):
Yes, this works fine.. but the problem is that I want to refresh existing internal frames (shown on JDesktopPane - not new). When I am creating new frame all is allright - newly created frame has an updated font in a title bar, but other frames (these created before was invoked) have an old font.