public class javax.swing.text.StyledEditorKit$ForegroundAction extends javax.swing.text.StyledEditorKit$StyledTextAction
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.swing.text.StyledEditorKit$ForegroundAction
super_class: javax.swing.text.StyledEditorKit$StyledTextAction
{
private java.awt.Color fg;
descriptor: Ljava/awt/Color;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.String, java.awt.Color);
descriptor: (Ljava/lang/String;Ljava/awt/Color;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 // javax.swing.text.StyledEditorKit$ForegroundAction this
start local 1 // java.lang.String nm
start local 2 // java.awt.Color fg
0: .line 638
aload 0 /* this */
aload 1 /* nm */
invokespecial javax.swing.text.StyledEditorKit$StyledTextAction.<init>:(Ljava/lang/String;)V
1: .line 639
aload 0 /* this */
aload 2 /* fg */
putfield javax.swing.text.StyledEditorKit$ForegroundAction.fg:Ljava/awt/Color;
2: .line 640
return
end local 2 // java.awt.Color fg
end local 1 // java.lang.String nm
end local 0 // javax.swing.text.StyledEditorKit$ForegroundAction this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/text/StyledEditorKit$ForegroundAction;
0 3 1 nm Ljava/lang/String;
0 3 2 fg Ljava/awt/Color;
MethodParameters:
Name Flags
nm
fg
public void actionPerformed(java.awt.event.ActionEvent);
descriptor: (Ljava/awt/event/ActionEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 // javax.swing.text.StyledEditorKit$ForegroundAction this
start local 1 // java.awt.event.ActionEvent e
0: .line 648
aload 0 /* this */
aload 1 /* e */
invokevirtual javax.swing.text.StyledEditorKit$ForegroundAction.getEditor:(Ljava/awt/event/ActionEvent;)Ljavax/swing/JEditorPane;
astore 2 /* editor */
start local 2 // javax.swing.JEditorPane editor
1: .line 649
aload 2 /* editor */
ifnull 14
2: .line 650
aload 0 /* this */
getfield javax.swing.text.StyledEditorKit$ForegroundAction.fg:Ljava/awt/Color;
astore 3 /* fg */
start local 3 // java.awt.Color fg
3: .line 651
aload 1 /* e */
ifnull 8
aload 1 /* e */
invokevirtual java.awt.event.ActionEvent.getSource:()Ljava/lang/Object;
aload 2 /* editor */
if_acmpne 8
4: .line 652
aload 1 /* e */
invokevirtual java.awt.event.ActionEvent.getActionCommand:()Ljava/lang/String;
astore 4 /* s */
start local 4 // java.lang.String s
5: .line 654
aload 4 /* s */
invokestatic java.awt.Color.decode:(Ljava/lang/String;)Ljava/awt/Color;
astore 3 /* fg */
6: .line 655
goto 8
StackMap locals: javax.swing.text.StyledEditorKit$ForegroundAction java.awt.event.ActionEvent javax.swing.JEditorPane java.awt.Color java.lang.String
StackMap stack: java.lang.NumberFormatException
7: pop
end local 4 // java.lang.String s
8: .line 658
StackMap locals:
StackMap stack:
aload 3 /* fg */
ifnull 13
9: .line 659
new javax.swing.text.SimpleAttributeSet
dup
invokespecial javax.swing.text.SimpleAttributeSet.<init>:()V
astore 4 /* attr */
start local 4 // javax.swing.text.MutableAttributeSet attr
10: .line 660
aload 4 /* attr */
aload 3 /* fg */
invokestatic javax.swing.text.StyleConstants.setForeground:(Ljavax/swing/text/MutableAttributeSet;Ljava/awt/Color;)V
11: .line 661
aload 0 /* this */
aload 2 /* editor */
aload 4 /* attr */
iconst_0
invokevirtual javax.swing.text.StyledEditorKit$ForegroundAction.setCharacterAttributes:(Ljavax/swing/JEditorPane;Ljavax/swing/text/AttributeSet;Z)V
end local 4 // javax.swing.text.MutableAttributeSet attr
12: .line 662
goto 14
13: .line 663
StackMap locals:
StackMap stack:
invokestatic javax.swing.UIManager.getLookAndFeel:()Ljavax/swing/LookAndFeel;
aload 2 /* editor */
invokevirtual javax.swing.LookAndFeel.provideErrorFeedback:(Ljava/awt/Component;)V
end local 3 // java.awt.Color fg
14: .line 666
StackMap locals:
StackMap stack:
return
end local 2 // javax.swing.JEditorPane editor
end local 1 // java.awt.event.ActionEvent e
end local 0 // javax.swing.text.StyledEditorKit$ForegroundAction this
LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljavax/swing/text/StyledEditorKit$ForegroundAction;
0 15 1 e Ljava/awt/event/ActionEvent;
1 15 2 editor Ljavax/swing/JEditorPane;
3 14 3 fg Ljava/awt/Color;
5 8 4 s Ljava/lang/String;
10 12 4 attr Ljavax/swing/text/MutableAttributeSet;
Exception table:
from to target type
5 6 7 Class java.lang.NumberFormatException
MethodParameters:
Name Flags
e
}
SourceFile: "StyledEditorKit.java"
NestHost: javax.swing.text.StyledEditorKit
InnerClasses:
public ForegroundAction = javax.swing.text.StyledEditorKit$ForegroundAction of javax.swing.text.StyledEditorKit
public abstract StyledTextAction = javax.swing.text.StyledEditorKit$StyledTextAction of javax.swing.text.StyledEditorKit