scc080497
asked on
Maximizing & Minimizing HTML
I'm programming two applets that are comunicating data and now I'm
interested in maximize the applet that has the focus and minimize the
other.
The problem are that the HTML page gives a fixed size to every applet and I
can't modify.
I've tried hiding the applet but it doesn't works.
TIA
interested in maximize the applet that has the focus and minimize the
other.
The problem are that the HTML page gives a fixed size to every applet and I
can't modify.
I've tried hiding the applet but it doesn't works.
TIA
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The only thing you can do is to override the gotFocus() and lostFocus() methods of the applet, and then do something to show that the applet is active/inactive. You could, for instance, do a removeAll() (which removes all components) or something similar to clear the area of the inactive applet, and if you applet has the same background as the surrounding page if would just look as an empty space.
Unfortunately, hide() does not work on top level objects (applet).
Probably not what you wanted to hear, but I think this is the best that can be done. Sorry