home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing.plaf.basic;
-
- import com.sun.java.swing.JMenu;
-
- final class BasicInternalFrameTitlePane$2 extends JMenu {
- // $FF: synthetic field
- private final BasicInternalFrameTitlePane this$0;
- boolean neverBeenSet;
-
- public void setPopupMenuVisible(boolean var1) {
- if (this.neverBeenSet) {
- if (!this.this$0.frame.isIconifiable()) {
- this.this$0.windowMenu.getItem(3).setEnabled(false);
- }
-
- if (!this.this$0.frame.isMaximizable()) {
- this.this$0.windowMenu.getItem(4).setEnabled(false);
- }
-
- if (!this.this$0.frame.isMaximizable() && !this.this$0.frame.isIconifiable()) {
- this.this$0.windowMenu.getItem(0).setEnabled(false);
- }
-
- if (!this.this$0.frame.isClosable()) {
- this.this$0.windowMenu.getItem(6).setEnabled(false);
- }
-
- this.neverBeenSet = false;
- }
-
- super.setPopupMenuVisible(var1);
- }
-
- // $FF: synthetic method
- BasicInternalFrameTitlePane$2(BasicInternalFrameTitlePane var1, String var2) {
- super(var2);
- this.this$0 = var1;
- this.neverBeenSet = true;
- }
- }
-