public class sun.awt.X11.XButtonPeer extends sun.awt.X11.XComponentPeer implements java.awt.peer.ButtonPeer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.awt.X11.XButtonPeer
super_class: sun.awt.X11.XComponentPeer
{
boolean pressed;
descriptor: Z
flags: (0x0000)
boolean armed;
descriptor: Z
flags: (0x0000)
private java.awt.Insets focusInsets;
descriptor: Ljava/awt/Insets;
flags: (0x0002) ACC_PRIVATE
private java.awt.Insets borderInsets;
descriptor: Ljava/awt/Insets;
flags: (0x0002) ACC_PRIVATE
private java.awt.Insets contentAreaInsets;
descriptor: Ljava/awt/Insets;
flags: (0x0002) ACC_PRIVATE
private static final java.lang.String propertyPrefix;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "Button."
protected java.awt.Color focusColor;
descriptor: Ljava/awt/Color;
flags: (0x0004) ACC_PROTECTED
private boolean disposed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
java.lang.String label;
descriptor: Ljava/lang/String;
flags: (0x0000)
protected java.lang.String getPropertyPrefix();
descriptor: ()Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "Button."
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/X11/XButtonPeer;
void preInit(sun.awt.X11.XCreateWindowParams);
descriptor: (Lsun/awt/X11/XCreateWindowParams;)V
flags: (0x0000)
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial sun.awt.X11.XComponentPeer.preInit:(Lsun/awt/X11/XCreateWindowParams;)V
1: aload 0
new java.awt.Insets
dup
iconst_2
iconst_2
iconst_2
iconst_2
invokespecial java.awt.Insets.<init>:(IIII)V
putfield sun.awt.X11.XButtonPeer.borderInsets:Ljava/awt/Insets;
2: aload 0
new java.awt.Insets
dup
iconst_0
iconst_0
iconst_0
iconst_0
invokespecial java.awt.Insets.<init>:(IIII)V
putfield sun.awt.X11.XButtonPeer.focusInsets:Ljava/awt/Insets;
3: aload 0
new java.awt.Insets
dup
iconst_3
iconst_3
iconst_3
iconst_3
invokespecial java.awt.Insets.<init>:(IIII)V
putfield sun.awt.X11.XButtonPeer.contentAreaInsets:Ljava/awt/Insets;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/awt/X11/XButtonPeer;
0 5 1 params Lsun/awt/X11/XCreateWindowParams;
MethodParameters:
Name Flags
params
public void <init>(java.awt.Button);
descriptor: (Ljava/awt/Button;)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 sun.awt.X11.XComponentPeer.<init>:(Ljava/awt/Component;)V
1: aload 0
getstatic java.awt.SystemColor.windowText:Ljava/awt/SystemColor;
putfield sun.awt.X11.XButtonPeer.focusColor:Ljava/awt/Color;
2: aload 0
iconst_0
putfield sun.awt.X11.XButtonPeer.disposed:Z
3: aload 0
iconst_0
putfield sun.awt.X11.XButtonPeer.pressed:Z
4: aload 0
iconst_0
putfield sun.awt.X11.XButtonPeer.armed:Z
5: aload 0
aload 1
invokevirtual java.awt.Button.getLabel:()Ljava/lang/String;
putfield sun.awt.X11.XButtonPeer.label:Ljava/lang/String;
6: aload 0
aload 0
invokevirtual sun.awt.X11.XButtonPeer.getPeerBackground:()Ljava/awt/Color;
invokevirtual sun.awt.X11.XButtonPeer.updateMotifColors:(Ljava/awt/Color;)V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/awt/X11/XButtonPeer;
0 8 1 target Ljava/awt/Button;
MethodParameters:
Name Flags
target
public void dispose();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.awt.X11.XButtonPeer.target:Ljava/awt/Component;
dup
astore 1
monitorenter
1: aload 0
iconst_1
putfield sun.awt.X11.XButtonPeer.disposed:Z
2: aload 1
monitorexit
3: goto 6
StackMap locals: sun.awt.X11.XButtonPeer java.awt.Component
StackMap stack: java.lang.Throwable
4: aload 1
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
aload 0
invokespecial sun.awt.X11.XComponentPeer.dispose:()V
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/awt/X11/XButtonPeer;
Exception table:
from to target type
1 3 4 any
4 5 4 any
public boolean isFocusable();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/X11/XButtonPeer;
public void setLabel(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: ldc ""
astore 1
2: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield sun.awt.X11.XButtonPeer.label:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
3: aload 0
aload 1
putfield sun.awt.X11.XButtonPeer.label:Ljava/lang/String;
4: aload 0
invokevirtual sun.awt.X11.XButtonPeer.repaint:()V
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/awt/X11/XButtonPeer;
0 6 1 label Ljava/lang/String;
MethodParameters:
Name Flags
label
public void paint(java.awt.Graphics);
descriptor: (Ljava/awt/Graphics;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 0
getfield sun.awt.X11.XButtonPeer.target:Ljava/awt/Component;
invokevirtual sun.awt.X11.XButtonPeer.paint:(Ljava/awt/Graphics;Ljava/awt/Component;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/X11/XButtonPeer;
0 2 1 g Ljava/awt/Graphics;
MethodParameters:
Name Flags
g
public void setBackground(java.awt.Color);
descriptor: (Ljava/awt/Color;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual sun.awt.X11.XButtonPeer.updateMotifColors:(Ljava/awt/Color;)V
1: aload 0
aload 1
invokespecial sun.awt.X11.XComponentPeer.setBackground:(Ljava/awt/Color;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/awt/X11/XButtonPeer;
0 3 1 c Ljava/awt/Color;
MethodParameters:
Name Flags
c
void handleJavaMouseEvent(java.awt.event.MouseEvent);
descriptor: (Ljava/awt/event/MouseEvent;)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial sun.awt.X11.XComponentPeer.handleJavaMouseEvent:(Ljava/awt/event/MouseEvent;)V
1: aload 1
invokevirtual java.awt.event.MouseEvent.getID:()I
istore 2
start local 2 2: iload 2
tableswitch { // 501 - 505
501: 3
502: 12
503: 23
504: 19
505: 22
default: 23
}
3: StackMap locals: int
StackMap stack:
aload 1
invokestatic sun.awt.X11.XToolkit.isLeftMouseButton:(Ljava/awt/event/MouseEvent;)Z
ifeq 23
4: aload 1
invokevirtual java.awt.event.MouseEvent.getSource:()Ljava/lang/Object;
checkcast java.awt.Button
astore 3
start local 3 5: aload 3
aload 1
invokevirtual java.awt.event.MouseEvent.getX:()I
aload 1
invokevirtual java.awt.event.MouseEvent.getY:()I
invokevirtual java.awt.Button.contains:(II)Z
ifeq 23
6: aload 0
invokevirtual sun.awt.X11.XButtonPeer.isEnabled:()Z
ifne 8
7: return
8: StackMap locals: java.awt.Button
StackMap stack:
aload 0
iconst_1
putfield sun.awt.X11.XButtonPeer.pressed:Z
9: aload 0
iconst_1
putfield sun.awt.X11.XButtonPeer.armed:Z
10: aload 0
invokevirtual sun.awt.X11.XButtonPeer.repaint:()V
end local 3 11: goto 23
12: StackMap locals:
StackMap stack:
aload 1
invokestatic sun.awt.X11.XToolkit.isLeftMouseButton:(Ljava/awt/event/MouseEvent;)Z
ifeq 23
13: aload 0
getfield sun.awt.X11.XButtonPeer.armed:Z
ifeq 15
14: aload 0
aload 1
invokevirtual java.awt.event.MouseEvent.getWhen:()J
aload 1
invokevirtual java.awt.event.MouseEvent.getModifiers:()I
invokevirtual sun.awt.X11.XButtonPeer.action:(JI)V
15: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield sun.awt.X11.XButtonPeer.pressed:Z
16: aload 0
iconst_0
putfield sun.awt.X11.XButtonPeer.armed:Z
17: aload 0
invokevirtual sun.awt.X11.XButtonPeer.repaint:()V
18: goto 23
19: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.X11.XButtonPeer.pressed:Z
ifeq 23
20: aload 0
iconst_1
putfield sun.awt.X11.XButtonPeer.armed:Z
21: goto 23
22: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield sun.awt.X11.XButtonPeer.armed:Z
23: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lsun/awt/X11/XButtonPeer;
0 24 1 e Ljava/awt/event/MouseEvent;
2 24 2 id I
5 11 3 b Ljava/awt/Button;
MethodParameters:
Name Flags
e
public void action(long, int);
descriptor: (JI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=4, args_size=3
start local 0 start local 1 start local 3 0: aload 0
new java.awt.event.ActionEvent
dup
aload 0
getfield sun.awt.X11.XButtonPeer.target:Ljava/awt/Component;
sipush 1001
1: aload 0
getfield sun.awt.X11.XButtonPeer.target:Ljava/awt/Component;
checkcast java.awt.Button
invokevirtual java.awt.Button.getActionCommand:()Ljava/lang/String;
2: lload 1
iload 3
invokespecial java.awt.event.ActionEvent.<init>:(Ljava/lang/Object;ILjava/lang/String;JI)V
3: invokevirtual sun.awt.X11.XButtonPeer.postEvent:(Ljava/awt/AWTEvent;)V
4: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/awt/X11/XButtonPeer;
0 5 1 when J
0 5 3 modifiers I
MethodParameters:
Name Flags
when final
modifiers final
public void focusGained(java.awt.event.FocusEvent);
descriptor: (Ljava/awt/event/FocusEvent;)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 sun.awt.X11.XComponentPeer.focusGained:(Ljava/awt/event/FocusEvent;)V
1: aload 0
invokevirtual sun.awt.X11.XButtonPeer.repaint:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/awt/X11/XButtonPeer;
0 3 1 e Ljava/awt/event/FocusEvent;
MethodParameters:
Name Flags
e
public void focusLost(java.awt.event.FocusEvent);
descriptor: (Ljava/awt/event/FocusEvent;)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 sun.awt.X11.XComponentPeer.focusLost:(Ljava/awt/event/FocusEvent;)V
1: aload 0
invokevirtual sun.awt.X11.XButtonPeer.repaint:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/awt/X11/XButtonPeer;
0 3 1 e Ljava/awt/event/FocusEvent;
MethodParameters:
Name Flags
e
void handleJavaKeyEvent(java.awt.event.KeyEvent);
descriptor: (Ljava/awt/event/KeyEvent;)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.awt.event.KeyEvent.getID:()I
istore 2
start local 2 1: iload 2
tableswitch { // 401 - 402
401: 2
402: 8
default: 12
}
2: StackMap locals: int
StackMap stack:
aload 1
invokevirtual java.awt.event.KeyEvent.getKeyCode:()I
bipush 32
if_icmpne 12
3: aload 0
iconst_1
putfield sun.awt.X11.XButtonPeer.pressed:Z
4: aload 0
iconst_1
putfield sun.awt.X11.XButtonPeer.armed:Z
5: aload 0
invokevirtual sun.awt.X11.XButtonPeer.repaint:()V
6: aload 0
aload 1
invokevirtual java.awt.event.KeyEvent.getWhen:()J
aload 1
invokevirtual java.awt.event.KeyEvent.getModifiers:()I
invokevirtual sun.awt.X11.XButtonPeer.action:(JI)V
7: goto 12
8: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.awt.event.KeyEvent.getKeyCode:()I
bipush 32
if_icmpne 12
9: aload 0
iconst_0
putfield sun.awt.X11.XButtonPeer.pressed:Z
10: aload 0
iconst_0
putfield sun.awt.X11.XButtonPeer.armed:Z
11: aload 0
invokevirtual sun.awt.X11.XButtonPeer.repaint:()V
12: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/awt/X11/XButtonPeer;
0 13 1 e Ljava/awt/event/KeyEvent;
1 13 2 id I
MethodParameters:
Name Flags
e
public java.awt.Dimension getMinimumSize();
descriptor: ()Ljava/awt/Dimension;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
aload 0
invokevirtual sun.awt.X11.XButtonPeer.getPeerFont:()Ljava/awt/Font;
invokevirtual sun.awt.X11.XButtonPeer.getFontMetrics:(Ljava/awt/Font;)Ljava/awt/FontMetrics;
astore 1
start local 1 1: aload 0
getfield sun.awt.X11.XButtonPeer.label:Ljava/lang/String;
ifnonnull 3
2: aload 0
ldc ""
putfield sun.awt.X11.XButtonPeer.label:Ljava/lang/String;
3: StackMap locals: java.awt.FontMetrics
StackMap stack:
new java.awt.Dimension
dup
aload 1
aload 0
getfield sun.awt.X11.XButtonPeer.label:Ljava/lang/String;
invokevirtual java.awt.FontMetrics.stringWidth:(Ljava/lang/String;)I
bipush 14
iadd
4: aload 1
invokevirtual java.awt.FontMetrics.getHeight:()I
bipush 8
iadd
5: invokespecial java.awt.Dimension.<init>:(II)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/awt/X11/XButtonPeer;
1 6 1 fm Ljava/awt/FontMetrics;
public java.awt.Dimension minimumSize();
descriptor: ()Ljava/awt/Dimension;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.awt.X11.XButtonPeer.getMinimumSize:()Ljava/awt/Dimension;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/awt/X11/XButtonPeer;
public void paint(java.awt.Graphics, java.awt.Component);
descriptor: (Ljava/awt/Graphics;Ljava/awt/Component;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=11, locals=11, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.awt.X11.XButtonPeer.disposed:Z
ifne 36
aload 1
ifnull 36
1: aload 0
invokevirtual sun.awt.X11.XButtonPeer.getPeerSize:()Ljava/awt/Dimension;
astore 3
start local 3 2: aload 1
aload 0
invokevirtual sun.awt.X11.XButtonPeer.getPeerBackground:()Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
3: aload 1
iconst_0
iconst_0
aload 3
getfield java.awt.Dimension.width:I
aload 3
getfield java.awt.Dimension.height:I
invokevirtual java.awt.Graphics.fillRect:(IIII)V
4: aload 0
aload 1
aload 0
getfield sun.awt.X11.XButtonPeer.borderInsets:Ljava/awt/Insets;
getfield java.awt.Insets.left:I
5: aload 0
getfield sun.awt.X11.XButtonPeer.borderInsets:Ljava/awt/Insets;
getfield java.awt.Insets.top:I
6: aload 3
getfield java.awt.Dimension.width:I
aload 0
getfield sun.awt.X11.XButtonPeer.borderInsets:Ljava/awt/Insets;
getfield java.awt.Insets.left:I
aload 0
getfield sun.awt.X11.XButtonPeer.borderInsets:Ljava/awt/Insets;
getfield java.awt.Insets.right:I
iadd
isub
7: aload 3
getfield java.awt.Dimension.height:I
aload 0
getfield sun.awt.X11.XButtonPeer.borderInsets:Ljava/awt/Insets;
getfield java.awt.Insets.top:I
aload 0
getfield sun.awt.X11.XButtonPeer.borderInsets:Ljava/awt/Insets;
getfield java.awt.Insets.bottom:I
iadd
isub
8: invokevirtual sun.awt.X11.XButtonPeer.paintBorder:(Ljava/awt/Graphics;IIII)V
9: aload 1
invokevirtual java.awt.Graphics.getFontMetrics:()Ljava/awt/FontMetrics;
astore 4
start local 4 10: new java.awt.Rectangle
dup
invokespecial java.awt.Rectangle.<init>:()V
astore 5
start local 5 11: new java.awt.Rectangle
dup
invokespecial java.awt.Rectangle.<init>:()V
astore 7
start local 7 12: new java.awt.Rectangle
dup
invokespecial java.awt.Rectangle.<init>:()V
astore 6
start local 6 13: aload 7
aload 3
getfield java.awt.Dimension.width:I
aload 0
getfield sun.awt.X11.XButtonPeer.contentAreaInsets:Ljava/awt/Insets;
getfield java.awt.Insets.left:I
aload 0
getfield sun.awt.X11.XButtonPeer.contentAreaInsets:Ljava/awt/Insets;
getfield java.awt.Insets.right:I
iadd
isub
putfield java.awt.Rectangle.width:I
14: aload 7
aload 3
getfield java.awt.Dimension.height:I
aload 0
getfield sun.awt.X11.XButtonPeer.contentAreaInsets:Ljava/awt/Insets;
getfield java.awt.Insets.top:I
aload 0
getfield sun.awt.X11.XButtonPeer.contentAreaInsets:Ljava/awt/Insets;
getfield java.awt.Insets.bottom:I
iadd
isub
putfield java.awt.Rectangle.height:I
15: aload 7
aload 0
getfield sun.awt.X11.XButtonPeer.contentAreaInsets:Ljava/awt/Insets;
getfield java.awt.Insets.left:I
putfield java.awt.Rectangle.x:I
16: aload 7
aload 0
getfield sun.awt.X11.XButtonPeer.contentAreaInsets:Ljava/awt/Insets;
getfield java.awt.Insets.right:I
putfield java.awt.Rectangle.y:I
17: aload 0
getfield sun.awt.X11.XButtonPeer.label:Ljava/lang/String;
ifnull 18
aload 0
getfield sun.awt.X11.XButtonPeer.label:Ljava/lang/String;
goto 19
StackMap locals: sun.awt.X11.XButtonPeer java.awt.Graphics java.awt.Component java.awt.Dimension java.awt.FontMetrics java.awt.Rectangle java.awt.Rectangle java.awt.Rectangle
StackMap stack:
18: ldc ""
StackMap locals:
StackMap stack: java.lang.String
19: astore 8
start local 8 20: aload 4
aload 8
aconst_null
21: iconst_0
iconst_0
22: iconst_0
iconst_0
23: aload 7
aload 6
aload 5
iconst_0
24: invokestatic javax.swing.SwingUtilities.layoutCompoundLabel:(Ljava/awt/FontMetrics;Ljava/lang/String;Ljavax/swing/Icon;IIIILjava/awt/Rectangle;Ljava/awt/Rectangle;Ljava/awt/Rectangle;I)Ljava/lang/String;
astore 9
start local 9 25: aload 0
invokevirtual sun.awt.X11.XButtonPeer.getPeerFont:()Ljava/awt/Font;
astore 10
start local 10 26: aload 1
aload 10
invokevirtual java.awt.Graphics.setFont:(Ljava/awt/Font;)V
27: aload 0
getfield sun.awt.X11.XButtonPeer.pressed:Z
ifeq 29
aload 0
getfield sun.awt.X11.XButtonPeer.armed:Z
ifeq 29
28: aload 0
aload 1
aload 0
getfield sun.awt.X11.XButtonPeer.target:Ljava/awt/Component;
invokevirtual sun.awt.X11.XButtonPeer.paintButtonPressed:(Ljava/awt/Graphics;Ljava/awt/Component;)V
29: StackMap locals: java.lang.String java.lang.String java.awt.Font
StackMap stack:
aload 0
aload 1
aload 0
getfield sun.awt.X11.XButtonPeer.target:Ljava/awt/Component;
aload 5
aload 9
invokevirtual sun.awt.X11.XButtonPeer.paintText:(Ljava/awt/Graphics;Ljava/awt/Component;Ljava/awt/Rectangle;Ljava/lang/String;)V
30: aload 0
invokevirtual sun.awt.X11.XButtonPeer.hasFocus:()Z
ifeq 36
31: aload 0
aload 1
aload 0
getfield sun.awt.X11.XButtonPeer.focusInsets:Ljava/awt/Insets;
getfield java.awt.Insets.left:I
32: aload 0
getfield sun.awt.X11.XButtonPeer.focusInsets:Ljava/awt/Insets;
getfield java.awt.Insets.top:I
33: aload 3
getfield java.awt.Dimension.width:I
aload 0
getfield sun.awt.X11.XButtonPeer.focusInsets:Ljava/awt/Insets;
getfield java.awt.Insets.left:I
aload 0
getfield sun.awt.X11.XButtonPeer.focusInsets:Ljava/awt/Insets;
getfield java.awt.Insets.right:I
iadd
isub
iconst_1
isub
34: aload 3
getfield java.awt.Dimension.height:I
aload 0
getfield sun.awt.X11.XButtonPeer.focusInsets:Ljava/awt/Insets;
getfield java.awt.Insets.top:I
aload 0
getfield sun.awt.X11.XButtonPeer.focusInsets:Ljava/awt/Insets;
getfield java.awt.Insets.bottom:I
iadd
isub
iconst_1
isub
35: invokevirtual sun.awt.X11.XButtonPeer.paintFocus:(Ljava/awt/Graphics;IIII)V
end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 36: StackMap locals: sun.awt.X11.XButtonPeer java.awt.Graphics java.awt.Component
StackMap stack:
aload 0
invokevirtual sun.awt.X11.XButtonPeer.flush:()V
37: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 38 0 this Lsun/awt/X11/XButtonPeer;
0 38 1 g Ljava/awt/Graphics;
0 38 2 c Ljava/awt/Component;
2 36 3 size Ljava/awt/Dimension;
10 36 4 fm Ljava/awt/FontMetrics;
11 36 5 textRect Ljava/awt/Rectangle;
13 36 6 iconRect Ljava/awt/Rectangle;
12 36 7 viewRect Ljava/awt/Rectangle;
20 36 8 llabel Ljava/lang/String;
25 36 9 text Ljava/lang/String;
26 36 10 f Ljava/awt/Font;
MethodParameters:
Name Flags
g
c
public void paintBorder(java.awt.Graphics, int, int, int, int);
descriptor: (Ljava/awt/Graphics;IIII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
iload 2
iload 3
iload 4
iconst_1
isub
iload 5
iconst_1
isub
aload 0
getfield sun.awt.X11.XButtonPeer.pressed:Z
invokevirtual sun.awt.X11.XButtonPeer.drawMotif3DRect:(Ljava/awt/Graphics;IIIIZ)V
1: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/X11/XButtonPeer;
0 2 1 g Ljava/awt/Graphics;
0 2 2 x I
0 2 3 y I
0 2 4 w I
0 2 5 h I
MethodParameters:
Name Flags
g
x
y
w
h
protected void paintFocus(java.awt.Graphics, int, int, int, int);
descriptor: (Ljava/awt/Graphics;IIII)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 1
aload 0
getfield sun.awt.X11.XButtonPeer.focusColor:Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
1: aload 1
iload 2
iload 3
iload 4
iload 5
invokevirtual java.awt.Graphics.drawRect:(IIII)V
2: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/awt/X11/XButtonPeer;
0 3 1 g Ljava/awt/Graphics;
0 3 2 x I
0 3 3 y I
0 3 4 w I
0 3 5 h I
MethodParameters:
Name Flags
g
x
y
w
h
protected void paintButtonPressed(java.awt.Graphics, java.awt.Component);
descriptor: (Ljava/awt/Graphics;Ljava/awt/Component;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual sun.awt.X11.XButtonPeer.getPeerSize:()Ljava/awt/Dimension;
astore 3
start local 3 1: aload 1
aload 0
getfield sun.awt.X11.XButtonPeer.selectColor:Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
2: aload 1
aload 0
getfield sun.awt.X11.XButtonPeer.contentAreaInsets:Ljava/awt/Insets;
getfield java.awt.Insets.left:I
3: aload 0
getfield sun.awt.X11.XButtonPeer.contentAreaInsets:Ljava/awt/Insets;
getfield java.awt.Insets.top:I
4: aload 3
getfield java.awt.Dimension.width:I
aload 0
getfield sun.awt.X11.XButtonPeer.contentAreaInsets:Ljava/awt/Insets;
getfield java.awt.Insets.left:I
aload 0
getfield sun.awt.X11.XButtonPeer.contentAreaInsets:Ljava/awt/Insets;
getfield java.awt.Insets.right:I
iadd
isub
5: aload 3
getfield java.awt.Dimension.height:I
aload 0
getfield sun.awt.X11.XButtonPeer.contentAreaInsets:Ljava/awt/Insets;
getfield java.awt.Insets.top:I
aload 0
getfield sun.awt.X11.XButtonPeer.contentAreaInsets:Ljava/awt/Insets;
getfield java.awt.Insets.bottom:I
iadd
isub
6: invokevirtual java.awt.Graphics.fillRect:(IIII)V
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/awt/X11/XButtonPeer;
0 8 1 g Ljava/awt/Graphics;
0 8 2 b Ljava/awt/Component;
1 8 3 size Ljava/awt/Dimension;
MethodParameters:
Name Flags
g
b
protected void paintText(java.awt.Graphics, java.awt.Component, java.awt.Rectangle, java.lang.String);
descriptor: (Ljava/awt/Graphics;Ljava/awt/Component;Ljava/awt/Rectangle;Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
invokevirtual java.awt.Graphics.getFontMetrics:()Ljava/awt/FontMetrics;
astore 5
start local 5 1: iconst_m1
istore 6
start local 6 2: aload 0
invokevirtual sun.awt.X11.XButtonPeer.isEnabled:()Z
ifeq 6
3: aload 1
aload 0
invokevirtual sun.awt.X11.XButtonPeer.getPeerForeground:()Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
4: aload 1
aload 4
iload 6
aload 3
getfield java.awt.Rectangle.x:I
aload 3
getfield java.awt.Rectangle.y:I
aload 5
invokevirtual java.awt.FontMetrics.getAscent:()I
iadd
invokestatic javax.swing.plaf.basic.BasicGraphicsUtils.drawStringUnderlineCharAt:(Ljava/awt/Graphics;Ljava/lang/String;III)V
5: goto 14
6: StackMap locals: java.awt.FontMetrics int
StackMap stack:
aload 1
aload 0
invokevirtual sun.awt.X11.XButtonPeer.getPeerBackground:()Ljava/awt/Color;
invokevirtual java.awt.Color.brighter:()Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
7: aload 1
aload 4
iload 6
8: aload 3
getfield java.awt.Rectangle.x:I
aload 3
getfield java.awt.Rectangle.y:I
aload 5
invokevirtual java.awt.FontMetrics.getAscent:()I
iadd
9: invokestatic javax.swing.plaf.basic.BasicGraphicsUtils.drawStringUnderlineCharAt:(Ljava/awt/Graphics;Ljava/lang/String;III)V
10: aload 1
aload 2
invokevirtual java.awt.Component.getBackground:()Ljava/awt/Color;
invokevirtual java.awt.Color.darker:()Ljava/awt/Color;
invokevirtual java.awt.Graphics.setColor:(Ljava/awt/Color;)V
11: aload 1
aload 4
iload 6
12: aload 3
getfield java.awt.Rectangle.x:I
iconst_1
isub
aload 3
getfield java.awt.Rectangle.y:I
aload 5
invokevirtual java.awt.FontMetrics.getAscent:()I
iadd
iconst_1
isub
13: invokestatic javax.swing.plaf.basic.BasicGraphicsUtils.drawStringUnderlineCharAt:(Ljava/awt/Graphics;Ljava/lang/String;III)V
14: StackMap locals:
StackMap stack:
return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/awt/X11/XButtonPeer;
0 15 1 g Ljava/awt/Graphics;
0 15 2 c Ljava/awt/Component;
0 15 3 textRect Ljava/awt/Rectangle;
0 15 4 text Ljava/lang/String;
1 15 5 fm Ljava/awt/FontMetrics;
2 15 6 mnemonicIndex I
MethodParameters:
Name Flags
g
c
textRect
text
}
SourceFile: "XButtonPeer.java"