41 |
import java.awt.Color; |
import java.awt.Color; |
42 |
import java.awt.Dimension; |
import java.awt.Dimension; |
43 |
import java.awt.Font; |
import java.awt.Font; |
44 |
|
import java.awt.event.InputEvent; |
45 |
import java.awt.event.KeyEvent; |
import java.awt.event.KeyEvent; |
46 |
import java.io.Serializable; |
import java.io.Serializable; |
47 |
import java.util.Enumeration; |
import java.util.Enumeration; |
248 |
"SPACE", "pressed", |
"SPACE", "pressed", |
249 |
"released SPACE", "released" |
"released SPACE", "released" |
250 |
}), |
}), |
251 |
|
"Button.focus", midPurple, |
252 |
"Button.font", new FontUIResource("Dialog", Font.PLAIN, 12), |
"Button.font", new FontUIResource("Dialog", Font.PLAIN, 12), |
253 |
"Button.foreground", new ColorUIResource(Color.black), |
"Button.foreground", new ColorUIResource(Color.black), |
254 |
"Button.highlight", new ColorUIResource(Color.white), |
"Button.highlight", new ColorUIResource(Color.white), |
823 |
"TextField.keyBindings", new JTextComponent.KeyBinding[] { |
"TextField.keyBindings", new JTextComponent.KeyBinding[] { |
824 |
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, |
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, |
825 |
0), |
0), |
826 |
"notify-field-accept")}, |
"notify-field-accept"), |
827 |
|
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, |
828 |
|
InputEvent.SHIFT_DOWN_MASK), |
829 |
|
"selection-backward"), |
830 |
|
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, |
831 |
|
InputEvent.SHIFT_DOWN_MASK), |
832 |
|
"selection-forward"), |
833 |
|
}, |
834 |
"TextField.margin", new InsetsUIResource(0, 0, 0, 0), |
"TextField.margin", new InsetsUIResource(0, 0, 0, 0), |
835 |
"TextField.selectionBackground", new ColorUIResource(lightPurple), |
"TextField.selectionBackground", new ColorUIResource(lightPurple), |
836 |
"TextField.selectionForeground", new ColorUIResource(Color.black), |
"TextField.selectionForeground", new ColorUIResource(Color.black), |