class sun.tools.jconsole.JConsole$WindowMenu extends javax.swing.JMenu
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.tools.jconsole.JConsole$WindowMenu
super_class: javax.swing.JMenu
{
sun.tools.jconsole.VMInternalFrame[] windowMenuWindows;
descriptor: [Lsun/tools/jconsole/VMInternalFrame;
flags: (0x0000)
int separatorPosition;
descriptor: I
flags: (0x0000)
java.awt.Rectangle viewR;
descriptor: Ljava/awt/Rectangle;
flags: (0x0000)
java.awt.Rectangle textR;
descriptor: Ljava/awt/Rectangle;
flags: (0x0000)
java.awt.Rectangle iconR;
descriptor: Ljava/awt/Rectangle;
flags: (0x0000)
final sun.tools.jconsole.JConsole this$0;
descriptor: Lsun/tools/jconsole/JConsole;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(sun.tools.jconsole.JConsole, java.lang.String);
descriptor: (Lsun/tools/jconsole/JConsole;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=7, locals=3, args_size=3
start local 0 // sun.tools.jconsole.JConsole$WindowMenu this
start local 2 // java.lang.String text
0: .line 215
aload 0 /* this */
aload 1
putfield sun.tools.jconsole.JConsole$WindowMenu.this$0:Lsun/tools/jconsole/JConsole;
1: .line 216
aload 0 /* this */
aload 2 /* text */
invokespecial javax.swing.JMenu.<init>:(Ljava/lang/String;)V
2: .line 206
aload 0 /* this */
iconst_0
anewarray sun.tools.jconsole.VMInternalFrame
putfield sun.tools.jconsole.JConsole$WindowMenu.windowMenuWindows:[Lsun/tools/jconsole/VMInternalFrame;
3: .line 211
aload 0 /* this */
new java.awt.Rectangle
dup
iconst_0
iconst_0
sipush 400
bipush 20
invokespecial java.awt.Rectangle.<init>:(IIII)V
putfield sun.tools.jconsole.JConsole$WindowMenu.viewR:Ljava/awt/Rectangle;
4: .line 212
aload 0 /* this */
new java.awt.Rectangle
dup
iconst_0
iconst_0
iconst_0
iconst_0
invokespecial java.awt.Rectangle.<init>:(IIII)V
putfield sun.tools.jconsole.JConsole$WindowMenu.textR:Ljava/awt/Rectangle;
5: .line 213
aload 0 /* this */
new java.awt.Rectangle
dup
iconst_0
iconst_0
iconst_0
iconst_0
invokespecial java.awt.Rectangle.<init>:(IIII)V
putfield sun.tools.jconsole.JConsole$WindowMenu.iconR:Ljava/awt/Rectangle;
6: .line 218
aload 1
new javax.swing.JMenuItem
dup
getstatic sun.tools.jconsole.Messages.CASCADE:Ljava/lang/String;
invokespecial javax.swing.JMenuItem.<init>:(Ljava/lang/String;)V
putfield sun.tools.jconsole.JConsole.cascadeMI:Ljavax/swing/JMenuItem;
7: .line 219
aload 1
getfield sun.tools.jconsole.JConsole.cascadeMI:Ljavax/swing/JMenuItem;
getstatic sun.tools.jconsole.Messages.CASCADE:Ljava/lang/String;
invokestatic sun.tools.jconsole.Resources.getMnemonicInt:(Ljava/lang/String;)I
invokevirtual javax.swing.JMenuItem.setMnemonic:(I)V
8: .line 220
aload 1
getfield sun.tools.jconsole.JConsole.cascadeMI:Ljavax/swing/JMenuItem;
aload 1
invokevirtual javax.swing.JMenuItem.addActionListener:(Ljava/awt/event/ActionListener;)V
9: .line 221
aload 0 /* this */
aload 1
getfield sun.tools.jconsole.JConsole.cascadeMI:Ljavax/swing/JMenuItem;
invokevirtual sun.tools.jconsole.JConsole$WindowMenu.add:(Ljavax/swing/JMenuItem;)Ljavax/swing/JMenuItem;
pop
10: .line 223
aload 1
new javax.swing.JMenuItem
dup
getstatic sun.tools.jconsole.Messages.TILE:Ljava/lang/String;
invokespecial javax.swing.JMenuItem.<init>:(Ljava/lang/String;)V
putfield sun.tools.jconsole.JConsole.tileMI:Ljavax/swing/JMenuItem;
11: .line 224
aload 1
getfield sun.tools.jconsole.JConsole.tileMI:Ljavax/swing/JMenuItem;
getstatic sun.tools.jconsole.Messages.TILE:Ljava/lang/String;
invokestatic sun.tools.jconsole.Resources.getMnemonicInt:(Ljava/lang/String;)I
invokevirtual javax.swing.JMenuItem.setMnemonic:(I)V
12: .line 225
aload 1
getfield sun.tools.jconsole.JConsole.tileMI:Ljavax/swing/JMenuItem;
bipush 84
13: .line 226
iconst_2
14: .line 225
invokestatic javax.swing.KeyStroke.getKeyStroke:(II)Ljavax/swing/KeyStroke;
invokevirtual javax.swing.JMenuItem.setAccelerator:(Ljavax/swing/KeyStroke;)V
15: .line 227
aload 1
getfield sun.tools.jconsole.JConsole.tileMI:Ljavax/swing/JMenuItem;
aload 1
invokevirtual javax.swing.JMenuItem.addActionListener:(Ljava/awt/event/ActionListener;)V
16: .line 228
aload 0 /* this */
aload 1
getfield sun.tools.jconsole.JConsole.tileMI:Ljavax/swing/JMenuItem;
invokevirtual sun.tools.jconsole.JConsole$WindowMenu.add:(Ljavax/swing/JMenuItem;)Ljavax/swing/JMenuItem;
pop
17: .line 230
aload 1
new javax.swing.JMenuItem
dup
getstatic sun.tools.jconsole.Messages.MINIMIZE_ALL:Ljava/lang/String;
invokespecial javax.swing.JMenuItem.<init>:(Ljava/lang/String;)V
putfield sun.tools.jconsole.JConsole.minimizeAllMI:Ljavax/swing/JMenuItem;
18: .line 231
aload 1
getfield sun.tools.jconsole.JConsole.minimizeAllMI:Ljavax/swing/JMenuItem;
getstatic sun.tools.jconsole.Messages.MINIMIZE_ALL:Ljava/lang/String;
invokestatic sun.tools.jconsole.Resources.getMnemonicInt:(Ljava/lang/String;)I
invokevirtual javax.swing.JMenuItem.setMnemonic:(I)V
19: .line 232
aload 1
getfield sun.tools.jconsole.JConsole.minimizeAllMI:Ljavax/swing/JMenuItem;
aload 1
invokevirtual javax.swing.JMenuItem.addActionListener:(Ljava/awt/event/ActionListener;)V
20: .line 233
aload 0 /* this */
aload 1
getfield sun.tools.jconsole.JConsole.minimizeAllMI:Ljavax/swing/JMenuItem;
invokevirtual sun.tools.jconsole.JConsole$WindowMenu.add:(Ljavax/swing/JMenuItem;)Ljavax/swing/JMenuItem;
pop
21: .line 235
aload 1
new javax.swing.JMenuItem
dup
getstatic sun.tools.jconsole.Messages.RESTORE_ALL:Ljava/lang/String;
invokespecial javax.swing.JMenuItem.<init>:(Ljava/lang/String;)V
putfield sun.tools.jconsole.JConsole.restoreAllMI:Ljavax/swing/JMenuItem;
22: .line 236
aload 1
getfield sun.tools.jconsole.JConsole.restoreAllMI:Ljavax/swing/JMenuItem;
getstatic sun.tools.jconsole.Messages.RESTORE_ALL:Ljava/lang/String;
invokestatic sun.tools.jconsole.Resources.getMnemonicInt:(Ljava/lang/String;)I
invokevirtual javax.swing.JMenuItem.setMnemonic:(I)V
23: .line 237
aload 1
getfield sun.tools.jconsole.JConsole.restoreAllMI:Ljavax/swing/JMenuItem;
aload 1
invokevirtual javax.swing.JMenuItem.addActionListener:(Ljava/awt/event/ActionListener;)V
24: .line 238
aload 0 /* this */
aload 1
getfield sun.tools.jconsole.JConsole.restoreAllMI:Ljavax/swing/JMenuItem;
invokevirtual sun.tools.jconsole.JConsole$WindowMenu.add:(Ljavax/swing/JMenuItem;)Ljavax/swing/JMenuItem;
pop
25: .line 240
aload 0 /* this */
aload 0 /* this */
invokevirtual sun.tools.jconsole.JConsole$WindowMenu.getMenuComponentCount:()I
putfield sun.tools.jconsole.JConsole$WindowMenu.separatorPosition:I
26: .line 241
return
end local 2 // java.lang.String text
end local 0 // sun.tools.jconsole.JConsole$WindowMenu this
LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lsun/tools/jconsole/JConsole$WindowMenu;
0 27 2 text Ljava/lang/String;
MethodParameters:
Name Flags
this$0 final
text
private void add(sun.tools.jconsole.VMInternalFrame);
descriptor: (Lsun/tools/jconsole/VMInternalFrame;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=12, locals=10, args_size=2
start local 0 // sun.tools.jconsole.JConsole$WindowMenu this
start local 1 // sun.tools.jconsole.VMInternalFrame vmIF
0: .line 244
aload 0 /* this */
getfield sun.tools.jconsole.JConsole$WindowMenu.separatorPosition:I
aload 0 /* this */
invokevirtual sun.tools.jconsole.JConsole$WindowMenu.getMenuComponentCount:()I
if_icmpne 2
1: .line 245
aload 0 /* this */
invokevirtual sun.tools.jconsole.JConsole$WindowMenu.addSeparator:()V
2: .line 248
StackMap locals:
StackMap stack:
iconst_m1
istore 2 /* index */
start local 2 // int index
3: .line 249
aload 0 /* this */
getfield sun.tools.jconsole.JConsole$WindowMenu.separatorPosition:I
iconst_1
iadd
istore 3 /* position */
start local 3 // int position
4: .line 250
aload 0 /* this */
getfield sun.tools.jconsole.JConsole$WindowMenu.windowMenuWindows:[Lsun/tools/jconsole/VMInternalFrame;
arraylength
istore 4 /* n */
start local 4 // int n
5: .line 252
iconst_0
istore 5 /* i */
start local 5 // int i
6: goto 13
7: .line 253
StackMap locals: sun.tools.jconsole.JConsole$WindowMenu sun.tools.jconsole.VMInternalFrame int int int int
StackMap stack:
aload 0 /* this */
getfield sun.tools.jconsole.JConsole$WindowMenu.windowMenuWindows:[Lsun/tools/jconsole/VMInternalFrame;
iload 5 /* i */
aaload
ifnull 10
8: .line 255
iinc 3 /* position */ 1
9: .line 256
goto 12
10: .line 258
StackMap locals:
StackMap stack:
iload 5 /* i */
istore 2 /* index */
11: .line 259
goto 14
12: .line 252
StackMap locals:
StackMap stack:
iinc 5 /* i */ 1
StackMap locals:
StackMap stack:
13: iload 5 /* i */
iload 4 /* n */
if_icmplt 7
end local 5 // int i
14: .line 263
StackMap locals:
StackMap stack:
iload 2 /* index */
iconst_m1
if_icmpne 19
15: .line 265
iload 4 /* n */
iconst_1
iadd
anewarray sun.tools.jconsole.VMInternalFrame
astore 5 /* newArray */
start local 5 // sun.tools.jconsole.VMInternalFrame[] newArray
16: .line 266
aload 0 /* this */
getfield sun.tools.jconsole.JConsole$WindowMenu.windowMenuWindows:[Lsun/tools/jconsole/VMInternalFrame;
iconst_0
aload 5 /* newArray */
iconst_0
iload 4 /* n */
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
17: .line 267
aload 0 /* this */
aload 5 /* newArray */
putfield sun.tools.jconsole.JConsole$WindowMenu.windowMenuWindows:[Lsun/tools/jconsole/VMInternalFrame;
18: .line 268
iload 4 /* n */
istore 2 /* index */
end local 5 // sun.tools.jconsole.VMInternalFrame[] newArray
19: .line 271
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield sun.tools.jconsole.JConsole$WindowMenu.windowMenuWindows:[Lsun/tools/jconsole/VMInternalFrame;
iload 2 /* index */
aload 1 /* vmIF */
aastore
20: .line 273
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
iload 2 /* index */
iconst_1
iadd
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5 /* indexString */
start local 5 // java.lang.String indexString
21: .line 274
aload 1 /* vmIF */
invokevirtual sun.tools.jconsole.VMInternalFrame.getVMPanel:()Lsun/tools/jconsole/VMPanel;
invokevirtual sun.tools.jconsole.VMPanel.getDisplayName:()Ljava/lang/String;
astore 6 /* vmName */
start local 6 // java.lang.String vmName
22: .line 277
aload 0 /* this */
23: .line 278
aload 0 /* this */
invokevirtual sun.tools.jconsole.JConsole$WindowMenu.getGraphics:()Ljava/awt/Graphics;
aload 0 /* this */
invokevirtual sun.tools.jconsole.JConsole$WindowMenu.getFont:()Ljava/awt/Font;
invokevirtual java.awt.Graphics.getFontMetrics:(Ljava/awt/Font;)Ljava/awt/FontMetrics;
24: .line 279
new java.lang.StringBuilder
dup
aload 5 /* indexString */
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 6 /* vmName */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
25: .line 280
aconst_null
iconst_0
iconst_0
iconst_0
iconst_0
26: .line 281
aload 0 /* this */
getfield sun.tools.jconsole.JConsole$WindowMenu.viewR:Ljava/awt/Rectangle;
aload 0 /* this */
getfield sun.tools.jconsole.JConsole$WindowMenu.iconR:Ljava/awt/Rectangle;
aload 0 /* this */
getfield sun.tools.jconsole.JConsole$WindowMenu.textR:Ljava/awt/Rectangle;
iconst_0
27: .line 277
invokestatic javax.swing.SwingUtilities.layoutCompoundLabel:(Ljavax/swing/JComponent;Ljava/awt/FontMetrics;Ljava/lang/String;Ljavax/swing/Icon;IIIILjava/awt/Rectangle;Ljava/awt/Rectangle;Ljava/awt/Rectangle;I)Ljava/lang/String;
28: .line 276
astore 7 /* text */
start local 7 // java.lang.String text
29: .line 282
new javax.swing.JMenuItem
dup
aload 7 /* text */
invokespecial javax.swing.JMenuItem.<init>:(Ljava/lang/String;)V
astore 8 /* mi */
start local 8 // javax.swing.JMenuItem mi
30: .line 283
aload 7 /* text */
ldc "..."
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 32
31: .line 284
aload 8 /* mi */
aload 6 /* vmName */
invokevirtual javax.swing.JMenuItem.setToolTipText:(Ljava/lang/String;)V
32: .line 288
StackMap locals: sun.tools.jconsole.JConsole$WindowMenu sun.tools.jconsole.VMInternalFrame int int int java.lang.String java.lang.String java.lang.String javax.swing.JMenuItem
StackMap stack:
aload 5 /* indexString */
invokevirtual java.lang.String.length:()I
istore 9 /* nDigits */
start local 9 // int nDigits
33: .line 289
aload 8 /* mi */
aload 5 /* indexString */
iload 9 /* nDigits */
iconst_1
isub
invokevirtual java.lang.String.charAt:(I)C
invokevirtual javax.swing.JMenuItem.setMnemonic:(C)V
34: .line 290
aload 8 /* mi */
iload 9 /* nDigits */
iconst_1
isub
invokevirtual javax.swing.JMenuItem.setDisplayedMnemonicIndex:(I)V
35: .line 292
aload 8 /* mi */
ldc "JConsole.vmIF"
aload 1 /* vmIF */
invokevirtual javax.swing.JMenuItem.putClientProperty:(Ljava/lang/Object;Ljava/lang/Object;)V
36: .line 293
aload 8 /* mi */
aload 0 /* this */
getfield sun.tools.jconsole.JConsole$WindowMenu.this$0:Lsun/tools/jconsole/JConsole;
invokevirtual javax.swing.JMenuItem.addActionListener:(Ljava/awt/event/ActionListener;)V
37: .line 294
aload 1 /* vmIF */
ldc "JConsole.menuItem"
aload 8 /* mi */
invokevirtual sun.tools.jconsole.VMInternalFrame.putClientProperty:(Ljava/lang/Object;Ljava/lang/Object;)V
38: .line 295
aload 0 /* this */
aload 8 /* mi */
iload 3 /* position */
invokevirtual sun.tools.jconsole.JConsole$WindowMenu.add:(Ljava/awt/Component;I)Ljava/awt/Component;
pop
39: .line 296
return
end local 9 // int nDigits
end local 8 // javax.swing.JMenuItem mi
end local 7 // java.lang.String text
end local 6 // java.lang.String vmName
end local 5 // java.lang.String indexString
end local 4 // int n
end local 3 // int position
end local 2 // int index
end local 1 // sun.tools.jconsole.VMInternalFrame vmIF
end local 0 // sun.tools.jconsole.JConsole$WindowMenu this
LocalVariableTable:
Start End Slot Name Signature
0 40 0 this Lsun/tools/jconsole/JConsole$WindowMenu;
0 40 1 vmIF Lsun/tools/jconsole/VMInternalFrame;
3 40 2 index I
4 40 3 position I
5 40 4 n I
6 14 5 i I
16 19 5 newArray [Lsun/tools/jconsole/VMInternalFrame;
21 40 5 indexString Ljava/lang/String;
22 40 6 vmName Ljava/lang/String;
29 40 7 text Ljava/lang/String;
30 40 8 mi Ljavax/swing/JMenuItem;
33 40 9 nDigits I
MethodParameters:
Name Flags
vmIF
private void remove(sun.tools.jconsole.VMInternalFrame);
descriptor: (Lsun/tools/jconsole/VMInternalFrame;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 // sun.tools.jconsole.JConsole$WindowMenu this
start local 1 // sun.tools.jconsole.VMInternalFrame vmIF
0: .line 299
iconst_0
istore 2 /* i */
start local 2 // int i
1: goto 5
2: .line 300
StackMap locals: int
StackMap stack:
aload 0 /* this */
getfield sun.tools.jconsole.JConsole$WindowMenu.windowMenuWindows:[Lsun/tools/jconsole/VMInternalFrame;
iload 2 /* i */
aaload
aload 1 /* vmIF */
if_acmpne 4
3: .line 301
aload 0 /* this */
getfield sun.tools.jconsole.JConsole$WindowMenu.windowMenuWindows:[Lsun/tools/jconsole/VMInternalFrame;
iload 2 /* i */
aconst_null
aastore
4: .line 299
StackMap locals:
StackMap stack:
iinc 2 /* i */ 1
StackMap locals:
StackMap stack:
5: iload 2 /* i */
aload 0 /* this */
getfield sun.tools.jconsole.JConsole$WindowMenu.windowMenuWindows:[Lsun/tools/jconsole/VMInternalFrame;
arraylength
if_icmplt 2
end local 2 // int i
6: .line 304
aload 1 /* vmIF */
ldc "JConsole.menuItem"
invokevirtual sun.tools.jconsole.VMInternalFrame.getClientProperty:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.swing.JMenuItem
astore 2 /* mi */
start local 2 // javax.swing.JMenuItem mi
7: .line 305
aload 0 /* this */
aload 2 /* mi */
invokevirtual sun.tools.jconsole.JConsole$WindowMenu.remove:(Ljavax/swing/JMenuItem;)V
8: .line 306
aload 2 /* mi */
ldc "JConsole.vmIF"
aconst_null
invokevirtual javax.swing.JMenuItem.putClientProperty:(Ljava/lang/Object;Ljava/lang/Object;)V
9: .line 307
aload 1 /* vmIF */
ldc "JConsole.menuItem"
aconst_null
invokevirtual sun.tools.jconsole.VMInternalFrame.putClientProperty:(Ljava/lang/Object;Ljava/lang/Object;)V
10: .line 309
aload 0 /* this */
getfield sun.tools.jconsole.JConsole$WindowMenu.separatorPosition:I
aload 0 /* this */
invokevirtual sun.tools.jconsole.JConsole$WindowMenu.getMenuComponentCount:()I
iconst_1
isub
if_icmpne 12
11: .line 310
aload 0 /* this */
aload 0 /* this */
aload 0 /* this */
invokevirtual sun.tools.jconsole.JConsole$WindowMenu.getMenuComponentCount:()I
iconst_1
isub
invokevirtual sun.tools.jconsole.JConsole$WindowMenu.getMenuComponent:(I)Ljava/awt/Component;
invokevirtual sun.tools.jconsole.JConsole$WindowMenu.remove:(Ljava/awt/Component;)V
12: .line 312
StackMap locals: sun.tools.jconsole.JConsole$WindowMenu sun.tools.jconsole.VMInternalFrame javax.swing.JMenuItem
StackMap stack:
return
end local 2 // javax.swing.JMenuItem mi
end local 1 // sun.tools.jconsole.VMInternalFrame vmIF
end local 0 // sun.tools.jconsole.JConsole$WindowMenu this
LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/tools/jconsole/JConsole$WindowMenu;
0 13 1 vmIF Lsun/tools/jconsole/VMInternalFrame;
1 6 2 i I
7 13 2 mi Ljavax/swing/JMenuItem;
MethodParameters:
Name Flags
vmIF
}
SourceFile: "JConsole.java"
NestHost: sun.tools.jconsole.JConsole
InnerClasses:
private WindowMenu = sun.tools.jconsole.JConsole$WindowMenu of sun.tools.jconsole.JConsole