home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 March / pcp161a.iso / handson / files / copyjava.exe / com / sun / java / swing / plaf / basic / BasicInternalFrameTitlePane$2.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-02-26  |  1.4 KB  |  41 lines

  1. package com.sun.java.swing.plaf.basic;
  2.  
  3. import com.sun.java.swing.JMenu;
  4.  
  5. final class BasicInternalFrameTitlePane$2 extends JMenu {
  6.    // $FF: synthetic field
  7.    private final BasicInternalFrameTitlePane this$0;
  8.    boolean neverBeenSet;
  9.  
  10.    public void setPopupMenuVisible(boolean var1) {
  11.       if (this.neverBeenSet) {
  12.          if (!this.this$0.frame.isIconifiable()) {
  13.             this.this$0.windowMenu.getItem(3).setEnabled(false);
  14.          }
  15.  
  16.          if (!this.this$0.frame.isMaximizable()) {
  17.             this.this$0.windowMenu.getItem(4).setEnabled(false);
  18.          }
  19.  
  20.          if (!this.this$0.frame.isMaximizable() && !this.this$0.frame.isIconifiable()) {
  21.             this.this$0.windowMenu.getItem(0).setEnabled(false);
  22.          }
  23.  
  24.          if (!this.this$0.frame.isClosable()) {
  25.             this.this$0.windowMenu.getItem(6).setEnabled(false);
  26.          }
  27.  
  28.          this.neverBeenSet = false;
  29.       }
  30.  
  31.       super.setPopupMenuVisible(var1);
  32.    }
  33.  
  34.    // $FF: synthetic method
  35.    BasicInternalFrameTitlePane$2(BasicInternalFrameTitlePane var1, String var2) {
  36.       super(var2);
  37.       this.this$0 = var1;
  38.       this.neverBeenSet = true;
  39.    }
  40. }
  41.