Link to home
Start Free TrialLog in
Avatar of scc080497
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




Avatar of katya062697
katya062697

There is no way to minimize an applet, since the applet's area is *always* fixed by the height and width parameters of the surrounding html page. This is a very unfortunate limitation.

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
ASKER CERTIFIED SOLUTION
Avatar of rembo
rembo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial