public class javax.swing.plaf.metal.MetalToolBarUI extends javax.swing.plaf.basic.BasicToolBarUI
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.plaf.metal.MetalToolBarUI
super_class: javax.swing.plaf.basic.BasicToolBarUI
{
private static java.util.List<java.lang.ref.WeakReference<javax.swing.JComponent>> components;
descriptor: Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/List<Ljava/lang/ref/WeakReference<Ljavax/swing/JComponent;>;>;
protected java.awt.event.ContainerListener contListener;
descriptor: Ljava/awt/event/ContainerListener;
flags: (0x0004) ACC_PROTECTED
protected java.beans.PropertyChangeListener rolloverListener;
descriptor: Ljava/beans/PropertyChangeListener;
flags: (0x0004) ACC_PROTECTED
private static javax.swing.border.Border nonRolloverBorder;
descriptor: Ljavax/swing/border/Border;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private javax.swing.JMenuBar ;
descriptor: Ljavax/swing/JMenuBar;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putstatic javax.swing.plaf.metal.MetalToolBarUI.components:Ljava/util/List;
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.swing.plaf.basic.BasicToolBarUI.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/metal/MetalToolBarUI;
static synchronized void register(javax.swing.JComponent);
descriptor: (Ljavax/swing/JComponent;)V
flags: (0x0028) ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "JComponent must be non-null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
getstatic javax.swing.plaf.metal.MetalToolBarUI.components:Ljava/util/List;
new java.lang.ref.WeakReference
dup
aload 0
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 c Ljavax/swing/JComponent;
MethodParameters:
Name Flags
c
static synchronized void unregister(javax.swing.JComponent);
descriptor: (Ljavax/swing/JComponent;)V
flags: (0x0028) ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=3, args_size=1
start local 0 0: getstatic javax.swing.plaf.metal.MetalToolBarUI.components:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
isub
istore 1
start local 1 1: goto 6
2: StackMap locals: int
StackMap stack:
getstatic javax.swing.plaf.metal.MetalToolBarUI.components:Ljava/util/List;
iload 1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.ref.WeakReference
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
checkcast javax.swing.JComponent
astore 2
start local 2 3: aload 2
aload 0
if_acmpeq 4
aload 2
ifnonnull 5
4: StackMap locals: javax.swing.JComponent
StackMap stack:
getstatic javax.swing.plaf.metal.MetalToolBarUI.components:Ljava/util/List;
iload 1
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
pop
end local 2 5: StackMap locals:
StackMap stack:
iinc 1 -1
StackMap locals:
StackMap stack:
6: iload 1
ifge 2
end local 1 7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 c Ljavax/swing/JComponent;
1 7 1 counter I
3 5 2 target Ljavax/swing/JComponent;
MethodParameters:
Name Flags
c
static synchronized java.lang.Object findRegisteredComponentOfType(javax.swing.JComponent, java.lang.Class);
descriptor: (Ljavax/swing/JComponent;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0028) ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokestatic javax.swing.SwingUtilities.getRootPane:(Ljava/awt/Component;)Ljavax/swing/JRootPane;
astore 2
start local 2 1: aload 2
ifnull 16
2: getstatic javax.swing.plaf.metal.MetalToolBarUI.components:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
isub
istore 3
start local 3 3: goto 15
4: StackMap locals: javax.swing.JRootPane int
StackMap stack:
getstatic javax.swing.plaf.metal.MetalToolBarUI.components:Ljava/util/List;
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.ref.WeakReference
5: invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
6: astore 4
start local 4 7: aload 4
ifnonnull 10
8: getstatic javax.swing.plaf.metal.MetalToolBarUI.components:Ljava/util/List;
iload 3
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
pop
9: goto 14
10: StackMap locals: java.lang.Object
StackMap stack:
aload 1
aload 4
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 14
11: aload 4
checkcast java.awt.Component
invokestatic javax.swing.SwingUtilities.getRootPane:(Ljava/awt/Component;)Ljavax/swing/JRootPane;
aload 2
12: if_acmpne 14
13: aload 4
areturn
end local 4 14: StackMap locals:
StackMap stack:
iinc 3 -1
StackMap locals:
StackMap stack:
15: iload 3
ifge 4
end local 3 16: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 from Ljavax/swing/JComponent;
0 17 1 target Ljava/lang/Class;
1 17 2 rp Ljavax/swing/JRootPane;
3 16 3 counter I
7 14 4 component Ljava/lang/Object;
MethodParameters:
Name Flags
from
target
static boolean (javax.swing.JMenuBar);
descriptor: (Ljavax/swing/JMenuBar;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
ldc Ljavax/swing/JToolBar;
invokestatic javax.swing.plaf.metal.MetalToolBarUI.findRegisteredComponentOfType:(Ljavax/swing/JComponent;Ljava/lang/Class;)Ljava/lang/Object;
1: checkcast javax.swing.JToolBar
astore 1
start local 1 2: aload 1
ifnull 14
aload 1
invokevirtual javax.swing.JToolBar.getOrientation:()I
ifne 14
3: aload 0
invokestatic javax.swing.SwingUtilities.getRootPane:(Ljava/awt/Component;)Ljavax/swing/JRootPane;
astore 2
start local 2 4: new java.awt.Point
dup
iconst_0
iconst_0
invokespecial java.awt.Point.<init>:(II)V
astore 3
start local 3 5: aload 0
aload 3
aload 2
invokestatic javax.swing.SwingUtilities.convertPoint:(Ljava/awt/Component;Ljava/awt/Point;Ljava/awt/Component;)Ljava/awt/Point;
astore 3
6: aload 3
getfield java.awt.Point.x:I
istore 4
start local 4 7: aload 3
getfield java.awt.Point.y:I
istore 5
start local 5 8: aload 3
aload 3
iconst_0
dup_x1
putfield java.awt.Point.y:I
putfield java.awt.Point.x:I
9: aload 1
aload 3
aload 2
invokestatic javax.swing.SwingUtilities.convertPoint:(Ljava/awt/Component;Ljava/awt/Point;Ljava/awt/Component;)Ljava/awt/Point;
astore 3
10: aload 3
getfield java.awt.Point.x:I
iload 4
if_icmpne 13
iload 5
aload 0
invokevirtual javax.swing.JMenuBar.getHeight:()I
iadd
aload 3
getfield java.awt.Point.y:I
if_icmpne 13
11: aload 0
invokevirtual javax.swing.JMenuBar.getWidth:()I
aload 1
invokevirtual javax.swing.JToolBar.getWidth:()I
if_icmpne 13
12: iconst_1
ireturn
StackMap locals: javax.swing.JMenuBar javax.swing.JToolBar javax.swing.JRootPane java.awt.Point int int
StackMap stack:
13: iconst_0
ireturn
end local 5 end local 4 end local 3 end local 2 14: StackMap locals: javax.swing.JMenuBar javax.swing.JToolBar
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 c Ljavax/swing/JMenuBar;
2 15 1 tb Ljavax/swing/JToolBar;
4 14 2 rp Ljavax/swing/JRootPane;
5 14 3 point Ljava/awt/Point;
7 14 4 menuX I
8 14 5 menuY I
MethodParameters:
Name Flags
c
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent);
descriptor: (Ljavax/swing/JComponent;)Ljavax/swing/plaf/ComponentUI;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new javax.swing.plaf.metal.MetalToolBarUI
dup
invokespecial javax.swing.plaf.metal.MetalToolBarUI.<init>:()V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 c Ljavax/swing/JComponent;
MethodParameters:
Name Flags
c
public void installUI(javax.swing.JComponent);
descriptor: (Ljavax/swing/JComponent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial javax.swing.plaf.basic.BasicToolBarUI.installUI:(Ljavax/swing/JComponent;)V
1: aload 1
invokestatic javax.swing.plaf.metal.MetalToolBarUI.register:(Ljavax/swing/JComponent;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/plaf/metal/MetalToolBarUI;
0 3 1 c Ljavax/swing/JComponent;
MethodParameters:
Name Flags
c
public void uninstallUI(javax.swing.JComponent);
descriptor: (Ljavax/swing/JComponent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial javax.swing.plaf.basic.BasicToolBarUI.uninstallUI:(Ljavax/swing/JComponent;)V
1: aconst_null
putstatic javax.swing.plaf.metal.MetalToolBarUI.nonRolloverBorder:Ljavax/swing/border/Border;
2: aload 1
invokestatic javax.swing.plaf.metal.MetalToolBarUI.unregister:(Ljavax/swing/JComponent;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/plaf/metal/MetalToolBarUI;
0 4 1 c Ljavax/swing/JComponent;
MethodParameters:
Name Flags
c
protected void installListeners();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.swing.plaf.basic.BasicToolBarUI.installListeners:()V
1: aload 0
aload 0
invokevirtual javax.swing.plaf.metal.MetalToolBarUI.createContainerListener:()Ljava/awt/event/ContainerListener;
putfield javax.swing.plaf.metal.MetalToolBarUI.contListener:Ljava/awt/event/ContainerListener;
2: aload 0
getfield javax.swing.plaf.metal.MetalToolBarUI.contListener:Ljava/awt/event/ContainerListener;
ifnull 4
3: aload 0
getfield javax.swing.plaf.metal.MetalToolBarUI.toolBar:Ljavax/swing/JToolBar;
aload 0
getfield javax.swing.plaf.metal.MetalToolBarUI.contListener:Ljava/awt/event/ContainerListener;
invokevirtual javax.swing.JToolBar.addContainerListener:(Ljava/awt/event/ContainerListener;)V
4: StackMap locals:
StackMap stack:
aload 0
aload 0
invokevirtual javax.swing.plaf.metal.MetalToolBarUI.createRolloverListener:()Ljava/beans/PropertyChangeListener;
putfield javax.swing.plaf.metal.MetalToolBarUI.rolloverListener:Ljava/beans/PropertyChangeListener;
5: aload 0
getfield javax.swing.plaf.metal.MetalToolBarUI.rolloverListener:Ljava/beans/PropertyChangeListener;
ifnull 7
6: aload 0
getfield javax.swing.plaf.metal.MetalToolBarUI.toolBar:Ljavax/swing/JToolBar;
aload 0
getfield javax.swing.plaf.metal.MetalToolBarUI.rolloverListener:Ljava/beans/PropertyChangeListener;
invokevirtual javax.swing.JToolBar.addPropertyChangeListener:(Ljava/beans/PropertyChangeListener;)V
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/swing/plaf/metal/MetalToolBarUI;
protected void uninstallListeners();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.swing.plaf.basic.BasicToolBarUI.uninstallListeners:()V
1: aload 0
getfield javax.swing.plaf.metal.MetalToolBarUI.contListener:Ljava/awt/event/ContainerListener;
ifnull 3
2: aload 0
getfield javax.swing.plaf.metal.MetalToolBarUI.toolBar:Ljavax/swing/JToolBar;
aload 0
getfield javax.swing.plaf.metal.MetalToolBarUI.contListener:Ljava/awt/event/ContainerListener;
invokevirtual javax.swing.JToolBar.removeContainerListener:(Ljava/awt/event/ContainerListener;)V
3: StackMap locals:
StackMap stack:
aload 0
aload 0
invokevirtual javax.swing.plaf.metal.MetalToolBarUI.createRolloverListener:()Ljava/beans/PropertyChangeListener;
putfield javax.swing.plaf.metal.MetalToolBarUI.rolloverListener:Ljava/beans/PropertyChangeListener;
4: aload 0
getfield javax.swing.plaf.metal.MetalToolBarUI.rolloverListener:Ljava/beans/PropertyChangeListener;
ifnull 6
5: aload 0
getfield javax.swing.plaf.metal.MetalToolBarUI.toolBar:Ljavax/swing/JToolBar;
aload 0
getfield javax.swing.plaf.metal.MetalToolBarUI.rolloverListener:Ljava/beans/PropertyChangeListener;
invokevirtual javax.swing.JToolBar.removePropertyChangeListener:(Ljava/beans/PropertyChangeListener;)V
6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/swing/plaf/metal/MetalToolBarUI;
protected javax.swing.border.Border createRolloverBorder();
descriptor: ()Ljavax/swing/border/Border;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.swing.plaf.basic.BasicToolBarUI.createRolloverBorder:()Ljavax/swing/border/Border;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/metal/MetalToolBarUI;
protected javax.swing.border.Border createNonRolloverBorder();
descriptor: ()Ljavax/swing/border/Border;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.swing.plaf.basic.BasicToolBarUI.createNonRolloverBorder:()Ljavax/swing/border/Border;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/metal/MetalToolBarUI;
private javax.swing.border.Border createNonRolloverToggleBorder();
descriptor: ()Ljavax/swing/border/Border;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual javax.swing.plaf.metal.MetalToolBarUI.createNonRolloverBorder:()Ljavax/swing/border/Border;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/metal/MetalToolBarUI;
protected void setBorderToNonRollover(java.awt.Component);
descriptor: (Ljava/awt/Component;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof javax.swing.JToggleButton
ifeq 9
aload 1
instanceof javax.swing.JCheckBox
ifne 9
1: aload 1
checkcast javax.swing.JToggleButton
astore 2
start local 2 2: aload 2
invokevirtual javax.swing.JToggleButton.getBorder:()Ljavax/swing/border/Border;
astore 3
start local 3 3: aload 0
aload 1
invokespecial javax.swing.plaf.basic.BasicToolBarUI.setBorderToNonRollover:(Ljava/awt/Component;)V
4: aload 3
instanceof javax.swing.plaf.UIResource
ifeq 10
5: getstatic javax.swing.plaf.metal.MetalToolBarUI.nonRolloverBorder:Ljavax/swing/border/Border;
ifnonnull 7
6: aload 0
invokevirtual javax.swing.plaf.metal.MetalToolBarUI.createNonRolloverToggleBorder:()Ljavax/swing/border/Border;
putstatic javax.swing.plaf.metal.MetalToolBarUI.nonRolloverBorder:Ljavax/swing/border/Border;
7: StackMap locals: javax.swing.JToggleButton javax.swing.border.Border
StackMap stack:
aload 2
getstatic javax.swing.plaf.metal.MetalToolBarUI.nonRolloverBorder:Ljavax/swing/border/Border;
invokevirtual javax.swing.JToggleButton.setBorder:(Ljavax/swing/border/Border;)V
end local 3 end local 2 8: goto 10
9: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial javax.swing.plaf.basic.BasicToolBarUI.setBorderToNonRollover:(Ljava/awt/Component;)V
10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljavax/swing/plaf/metal/MetalToolBarUI;
0 11 1 c Ljava/awt/Component;
2 8 2 b Ljavax/swing/JToggleButton;
3 8 3 border Ljavax/swing/border/Border;
MethodParameters:
Name Flags
c
protected java.awt.event.ContainerListener createContainerListener();
descriptor: ()Ljava/awt/event/ContainerListener;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/metal/MetalToolBarUI;
protected java.beans.PropertyChangeListener createRolloverListener();
descriptor: ()Ljava/beans/PropertyChangeListener;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/metal/MetalToolBarUI;
protected javax.swing.event.MouseInputListener createDockingListener();
descriptor: ()Ljavax/swing/event/MouseInputListener;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=1, args_size=1
start local 0 0: new javax.swing.plaf.metal.MetalToolBarUI$MetalDockingListener
dup
aload 0
aload 0
getfield javax.swing.plaf.metal.MetalToolBarUI.toolBar:Ljavax/swing/JToolBar;
invokespecial javax.swing.plaf.metal.MetalToolBarUI$MetalDockingListener.<init>:(Ljavax/swing/plaf/metal/MetalToolBarUI;Ljavax/swing/JToolBar;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/plaf/metal/MetalToolBarUI;
protected void setDragOffset(java.awt.Point);
descriptor: (Ljava/awt/Point;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: invokestatic java.awt.GraphicsEnvironment.isHeadless:()Z
ifne 4
1: aload 0
getfield javax.swing.plaf.metal.MetalToolBarUI.dragWindow:Ljavax/swing/plaf/basic/BasicToolBarUI$DragWindow;
ifnonnull 3
2: aload 0
aload 0
aload 0
getfield javax.swing.plaf.metal.MetalToolBarUI.toolBar:Ljavax/swing/JToolBar;
invokevirtual javax.swing.plaf.metal.MetalToolBarUI.createDragWindow:(Ljavax/swing/JToolBar;)Ljavax/swing/plaf/basic/BasicToolBarUI$DragWindow;
putfield javax.swing.plaf.metal.MetalToolBarUI.dragWindow:Ljavax/swing/plaf/basic/BasicToolBarUI$DragWindow;
3: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.plaf.metal.MetalToolBarUI.dragWindow:Ljavax/swing/plaf/basic/BasicToolBarUI$DragWindow;
aload 1
invokevirtual javax.swing.plaf.basic.BasicToolBarUI$DragWindow.setOffset:(Ljava/awt/Point;)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/swing/plaf/metal/MetalToolBarUI;
0 5 1 p Ljava/awt/Point;
MethodParameters:
Name Flags
p
public void update(java.awt.Graphics, javax.swing.JComponent);
descriptor: (Ljava/awt/Graphics;Ljavax/swing/JComponent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "graphics must be non-null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 2
invokevirtual javax.swing.JComponent.isOpaque:()Z
ifeq 34
aload 2
invokevirtual javax.swing.JComponent.getBackground:()Ljava/awt/Color;
instanceof javax.swing.plaf.UIResource
ifeq 34
3: aload 2
checkcast javax.swing.JToolBar
invokevirtual javax.swing.JToolBar.getOrientation:()I
ifne 34
4: ldc "MenuBar.gradient"
5: invokestatic javax.swing.UIManager.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 34
6: aload 2
invokestatic javax.swing.SwingUtilities.getRootPane:(Ljava/awt/Component;)Ljavax/swing/JRootPane;
astore 3
start local 3 7: aload 2
ldc Ljavax/swing/JMenuBar;
8: invokestatic javax.swing.plaf.metal.MetalToolBarUI.findRegisteredComponentOfType:(Ljavax/swing/JComponent;Ljava/lang/Class;)Ljava/lang/Object;
checkcast javax.swing.JMenuBar
astore 4
start local 4 9: aload 4
ifnull 27
aload 4
invokevirtual javax.swing.JMenuBar.isOpaque:()Z
ifeq 27
10: aload 4
invokevirtual javax.swing.JMenuBar.getBackground:()Ljava/awt/Color;
instanceof javax.swing.plaf.UIResource
ifeq 27
11: new java.awt.Point
dup
iconst_0
iconst_0
invokespecial java.awt.Point.<init>:(II)V
astore 5
start local 5 12: aload 2
aload 5
aload 3
invokestatic javax.swing.SwingUtilities.convertPoint:(Ljava/awt/Component;Ljava/awt/Point;Ljava/awt/Component;)Ljava/awt/Point;
astore 5
13: aload 5
getfield java.awt.Point.x:I
istore 6
start local 6 14: aload 5
getfield java.awt.Point.y:I
istore 7
start local 7 15: aload 5
aload 5
iconst_0
dup_x1
putfield java.awt.Point.y:I
putfield java.awt.Point.x:I
16: aload 4
aload 5
aload 3
invokestatic javax.swing.SwingUtilities.convertPoint:(Ljava/awt/Component;Ljava/awt/Point;Ljava/awt/Component;)Ljava/awt/Point;
astore 5
17: aload 5
getfield java.awt.Point.x:I
iload 6
if_icmpne 27
iload 7
aload 5
getfield java.awt.Point.y:I
aload 4
invokevirtual javax.swing.JMenuBar.getHeight:()I
iadd
if_icmpne 27
18: aload 4
invokevirtual javax.swing.JMenuBar.getWidth:()I
aload 2
invokevirtual javax.swing.JComponent.getWidth:()I
if_icmpne 27
19: aload 2
aload 1
ldc "MenuBar.gradient"
20: iconst_0
aload 4
invokevirtual javax.swing.JMenuBar.getHeight:()I
ineg
aload 2
invokevirtual javax.swing.JComponent.getWidth:()I
aload 2
invokevirtual javax.swing.JComponent.getHeight:()I
21: aload 4
invokevirtual javax.swing.JMenuBar.getHeight:()I
iadd
iconst_1
22: invokestatic javax.swing.plaf.metal.MetalUtils.drawGradient:(Ljava/awt/Component;Ljava/awt/Graphics;Ljava/lang/String;IIIIZ)Z
23: ifeq 27
24: aload 0
aload 4
invokevirtual javax.swing.plaf.metal.MetalToolBarUI.setLastMenuBar:(Ljavax/swing/JMenuBar;)V
25: aload 0
aload 1
aload 2
invokevirtual javax.swing.plaf.metal.MetalToolBarUI.paint:(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V
26: return
end local 7 end local 6 end local 5 27: StackMap locals: javax.swing.JRootPane javax.swing.JMenuBar
StackMap stack:
aload 2
aload 1
ldc "MenuBar.gradient"
28: iconst_0
iconst_0
aload 2
invokevirtual javax.swing.JComponent.getWidth:()I
aload 2
invokevirtual javax.swing.JComponent.getHeight:()I
iconst_1
29: invokestatic javax.swing.plaf.metal.MetalUtils.drawGradient:(Ljava/awt/Component;Ljava/awt/Graphics;Ljava/lang/String;IIIIZ)Z
30: ifeq 34
31: aload 0
aconst_null
invokevirtual javax.swing.plaf.metal.MetalToolBarUI.setLastMenuBar:(Ljavax/swing/JMenuBar;)V
32: aload 0
aload 1
aload 2
invokevirtual javax.swing.plaf.metal.MetalToolBarUI.paint:(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V
33: return
end local 4 end local 3 34: StackMap locals:
StackMap stack:
aload 0
aconst_null
invokevirtual javax.swing.plaf.metal.MetalToolBarUI.setLastMenuBar:(Ljavax/swing/JMenuBar;)V
35: aload 0
aload 1
aload 2
invokespecial javax.swing.plaf.basic.BasicToolBarUI.update:(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V
36: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 this Ljavax/swing/plaf/metal/MetalToolBarUI;
0 37 1 g Ljava/awt/Graphics;
0 37 2 c Ljavax/swing/JComponent;
7 34 3 rp Ljavax/swing/JRootPane;
9 34 4 mb Ljavax/swing/JMenuBar;
12 27 5 point Ljava/awt/Point;
14 27 6 x I
15 27 7 y I
MethodParameters:
Name Flags
g
c
private void (javax.swing.JMenuBar);
descriptor: (Ljavax/swing/JMenuBar;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: invokestatic javax.swing.plaf.metal.MetalLookAndFeel.usingOcean:()Z
ifeq 7
1: aload 0
getfield javax.swing.plaf.metal.MetalToolBarUI.lastMenuBar:Ljavax/swing/JMenuBar;
aload 1
if_acmpeq 7
2: aload 0
getfield javax.swing.plaf.metal.MetalToolBarUI.lastMenuBar:Ljavax/swing/JMenuBar;
ifnull 4
3: aload 0
getfield javax.swing.plaf.metal.MetalToolBarUI.lastMenuBar:Ljavax/swing/JMenuBar;
invokevirtual javax.swing.JMenuBar.repaint:()V
4: StackMap locals:
StackMap stack:
aload 1
ifnull 6
5: aload 1
invokevirtual javax.swing.JMenuBar.repaint:()V
6: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield javax.swing.plaf.metal.MetalToolBarUI.lastMenuBar:Ljavax/swing/JMenuBar;
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/swing/plaf/metal/MetalToolBarUI;
0 8 1 lastMenuBar Ljavax/swing/JMenuBar;
MethodParameters:
Name Flags
lastMenuBar
}
SourceFile: "MetalToolBarUI.java"
NestMembers:
javax.swing.plaf.metal.MetalToolBarUI$MetalContainerListener javax.swing.plaf.metal.MetalToolBarUI$MetalDockingListener javax.swing.plaf.metal.MetalToolBarUI$MetalRolloverListener
InnerClasses:
protected DragWindow = javax.swing.plaf.basic.BasicToolBarUI$DragWindow of javax.swing.plaf.basic.BasicToolBarUI
protected MetalContainerListener = javax.swing.plaf.metal.MetalToolBarUI$MetalContainerListener of javax.swing.plaf.metal.MetalToolBarUI
protected MetalDockingListener = javax.swing.plaf.metal.MetalToolBarUI$MetalDockingListener of javax.swing.plaf.metal.MetalToolBarUI
protected MetalRolloverListener = javax.swing.plaf.metal.MetalToolBarUI$MetalRolloverListener of javax.swing.plaf.metal.MetalToolBarUI