home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &… the Search for Life CD 3 / 0_CD-ROM.iso / install / jre1_3 / lib / rt.jar / javax / swing / plaf / basic / BasicInternalFrameTitlePane$MaximizeAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  848 b   |  33 lines

  1. package javax.swing.plaf.basic;
  2.  
  3. import java.awt.event.ActionEvent;
  4. import java.beans.PropertyVetoException;
  5. import javax.swing.AbstractAction;
  6.  
  7. public class BasicInternalFrameTitlePane$MaximizeAction extends AbstractAction {
  8.    // $FF: synthetic field
  9.    private final BasicInternalFrameTitlePane this$0;
  10.  
  11.    public BasicInternalFrameTitlePane$MaximizeAction(BasicInternalFrameTitlePane var1) {
  12.       super("Maximize");
  13.       this.this$0 = var1;
  14.    }
  15.  
  16.    public void actionPerformed(ActionEvent var1) {
  17.       if (this.this$0.frame.isMaximizable()) {
  18.          if (!this.this$0.frame.isMaximum()) {
  19.             try {
  20.                this.this$0.frame.setMaximum(true);
  21.             } catch (PropertyVetoException var4) {
  22.             }
  23.          } else {
  24.             try {
  25.                this.this$0.frame.setMaximum(false);
  26.             } catch (PropertyVetoException var3) {
  27.             }
  28.          }
  29.       }
  30.  
  31.    }
  32. }
  33.