home *** CD-ROM | disk | FTP | other *** search
- import java.awt.BorderLayout;
- import java.awt.Container;
- import java.awt.Event;
- import java.awt.Frame;
- import java.awt.Panel;
-
- public class BigWindow extends Frame {
- private ParaChat applet;
- Panel basePanel;
-
- BigWindow(ParaChat var1, String var2) {
- super(var2);
- this.applet = var1;
- this.basePanel = var1.basePanel;
- ((Container)this).setLayout(new BorderLayout());
- this.applet.remove(this.basePanel);
- ((Container)this).add("Center", this.basePanel);
- ((Container)this).layout();
- }
-
- public boolean unfloat() {
- ((Container)this).remove(this.basePanel);
- this.applet.add("Center", this.basePanel);
- ((Frame)this).dispose();
- this.applet.invalidate();
- this.applet.validate();
- this.applet.repaint();
- return true;
- }
-
- public boolean handleEvent(Event var1) {
- if (var1.id == 201) {
- this.applet.unfloatBigWin();
- return true;
- } else {
- return this.applet.handleEvent(var1);
- }
- }
- }
-