jdk/src/share/classes/com/sun/java/swing/plaf/motif/MotifLookAndFeel.java
author xdono
Wed, 02 Jul 2008 12:55:45 -0700
changeset 715 f16baef3a20e
parent 680 eaff686e34f7
child 5506 202f599c92aa
permissions -rw-r--r--
6719955: Update copyright year Summary: Update copyright year for files that have been modified in 2008 Reviewed-by: ohair, tbell
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
715
f16baef3a20e 6719955: Update copyright year
xdono
parents: 680
diff changeset
     2
 * Copyright 1997-2008 Sun Microsystems, Inc.  All Rights Reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
 * have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package com.sun.java.swing.plaf.motif;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.awt.Color;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.awt.Font;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.awt.Insets;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.awt.event.KeyEvent;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
import java.awt.event.InputEvent;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import java.util.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
import javax.swing.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
import javax.swing.plaf.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
import javax.swing.border.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
import javax.swing.text.JTextComponent;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
import javax.swing.text.DefaultEditorKit;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
import javax.swing.plaf.basic.BasicLookAndFeel;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
import javax.swing.plaf.basic.BasicBorders;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
import javax.swing.plaf.basic.BasicComboBoxRenderer;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
import javax.swing.plaf.basic.BasicComboBoxEditor;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
import sun.swing.SwingUtilities2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
import sun.awt.OSInfo;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 * Implements the Motif Look and Feel.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 * UI classes not implemented specifically for Motif will
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 * default to those implemented in Basic.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 * <strong>Warning:</strong>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 * Serialized objects of this class will not be compatible with
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 * future Swing releases.  The current serialization support is appropriate
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
 * for short term storage or RMI between applications running the same
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
 * version of Swing.  A future release of Swing will provide support for
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
 * long term persistence.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
 * @author unattributed
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
public class MotifLookAndFeel extends BasicLookAndFeel
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
    public String getName() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
        return "CDE/Motif";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
    public String getID() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
        return "Motif";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
    public String getDescription() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
        return "The CDE/Motif Look and Feel";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    public boolean isNativeLookAndFeel() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
        return OSInfo.getOSType() == OSInfo.OSType.SOLARIS;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
    public boolean isSupportedLookAndFeel() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
        return true;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
     * Load the SystemColors into the defaults table.  The keys
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
     * for SystemColor defaults are the same as the names of
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     * the public fields in SystemColor.  If the table is being
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     * created on a native Motif platform we use the SystemColor
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
     * values, otherwise we create color objects whose values match
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
     * the default CDE/Motif colors.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
    protected void initSystemColorDefaults(UIDefaults table)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
    {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
        String[] defaultSystemColors = {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
                  "desktop", "#005C5C", /* Color of the desktop background */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
            "activeCaption", "#000080", /* Color for captions (title bars) when they are active. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
        "activeCaptionText", "#FFFFFF", /* Text color for text in captions (title bars). */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
      "activeCaptionBorder", "#B24D7A", /* Border color for caption (title bar) window borders. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
          "inactiveCaption", "#AEB2C3", /* Color for captions (title bars) when not active. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
      "inactiveCaptionText", "#000000", /* Text color for text in inactive captions (title bars). */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
    "inactiveCaptionBorder", "#AEB2C3", /* Border color for inactive caption (title bar) window borders. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
                   "window", "#AEB2C3", /* Default color for the interior of windows */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
             "windowBorder", "#AEB2C3", /* ??? */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
               "windowText", "#000000", /* ??? */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
                     "menu", "#AEB2C3", /* ??? */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
                 "menuText", "#000000", /* ??? */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
                     "text", "#FFF7E9", /* Text background color */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
                 "textText", "#000000", /* Text foreground color */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
            "textHighlight", "#000000", /* Text background color when selected */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
        "textHighlightText", "#FFF7E9", /* Text color when selected */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
         "textInactiveText", "#808080", /* Text color when disabled */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
                  "control", "#AEB2C3", /* Default color for controls (buttons, sliders, etc) */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
              "controlText", "#000000", /* Default color for text in controls */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
         "controlHighlight", "#DCDEE5", /* Highlight color for controls */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
       "controlLtHighlight", "#DCDEE5", /* Light highlight color for controls */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
            "controlShadow", "#63656F", /* Shadow color for controls */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
       "controlLightShadow", "#9397A5", /* Shadow color for controls */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
          "controlDkShadow", "#000000", /* Dark shadow color for controls */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
                "scrollbar", "#AEB2C3", /* Scrollbar ??? color. PENDING(jeff) foreground? background? ?*/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
                     "info", "#FFF7E9", /* ??? */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
                 "infoText", "#000000"  /* ??? */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
        };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
        loadSystemColors(table, defaultSystemColors, false);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
    protected void initClassDefaults(UIDefaults table)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
    {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
        super.initClassDefaults(table);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
        String motifPackageName = "com.sun.java.swing.plaf.motif.";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
        Object[] uiDefaults = {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
                   "ButtonUI", motifPackageName + "MotifButtonUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
                 "CheckBoxUI", motifPackageName + "MotifCheckBoxUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
            "DirectoryPaneUI", motifPackageName + "MotifDirectoryPaneUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
              "FileChooserUI", motifPackageName + "MotifFileChooserUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
                    "LabelUI", motifPackageName + "MotifLabelUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
                  "MenuBarUI", motifPackageName + "MotifMenuBarUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
                     "MenuUI", motifPackageName + "MotifMenuUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
                 "MenuItemUI", motifPackageName + "MotifMenuItemUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
         "CheckBoxMenuItemUI", motifPackageName + "MotifCheckBoxMenuItemUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
      "RadioButtonMenuItemUI", motifPackageName + "MotifRadioButtonMenuItemUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
              "RadioButtonUI", motifPackageName + "MotifRadioButtonUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
             "ToggleButtonUI", motifPackageName + "MotifToggleButtonUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
                "PopupMenuUI", motifPackageName + "MotifPopupMenuUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
              "ProgressBarUI", motifPackageName + "MotifProgressBarUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
                "ScrollBarUI", motifPackageName + "MotifScrollBarUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
               "ScrollPaneUI", motifPackageName + "MotifScrollPaneUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
                   "SliderUI", motifPackageName + "MotifSliderUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
                "SplitPaneUI", motifPackageName + "MotifSplitPaneUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
               "TabbedPaneUI", motifPackageName + "MotifTabbedPaneUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
                 "TextAreaUI", motifPackageName + "MotifTextAreaUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
                "TextFieldUI", motifPackageName + "MotifTextFieldUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
            "PasswordFieldUI", motifPackageName + "MotifPasswordFieldUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
                 "TextPaneUI", motifPackageName + "MotifTextPaneUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
               "EditorPaneUI", motifPackageName + "MotifEditorPaneUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
                     "TreeUI", motifPackageName + "MotifTreeUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
            "InternalFrameUI", motifPackageName + "MotifInternalFrameUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
              "DesktopPaneUI", motifPackageName + "MotifDesktopPaneUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
                "SeparatorUI", motifPackageName + "MotifSeparatorUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
       "PopupMenuSeparatorUI", motifPackageName + "MotifPopupMenuSeparatorUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
               "OptionPaneUI", motifPackageName + "MotifOptionPaneUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
                 "ComboBoxUI", motifPackageName + "MotifComboBoxUI",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
              "DesktopIconUI", motifPackageName + "MotifDesktopIconUI"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
        };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
        table.putDefaults(uiDefaults);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     * Initialize the defaults table with the name of the ResourceBundle
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
     * used for getting localized defaults.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
    private void initResourceBundle(UIDefaults table) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
        table.addResourceBundle( "com.sun.java.swing.plaf.motif.resources.motif" );
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
    protected void initComponentDefaults(UIDefaults table)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
    {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
        super.initComponentDefaults(table);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
        initResourceBundle(table);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
        FontUIResource dialogPlain12 = new FontUIResource(Font.DIALOG,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
                                                          Font.PLAIN, 12);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
        FontUIResource serifPlain12 = new FontUIResource(Font.SERIF,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
                                                          Font.PLAIN, 12);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
        FontUIResource sansSerifPlain12 = new FontUIResource(Font.SANS_SERIF,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
                                                          Font.PLAIN, 12);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
        FontUIResource monospacedPlain12 = new FontUIResource(Font.MONOSPACED,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
                                                          Font.PLAIN, 12);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
        ColorUIResource red = new ColorUIResource(Color.red);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
        ColorUIResource black = new ColorUIResource(Color.black);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
        ColorUIResource white = new ColorUIResource(Color.white);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
        ColorUIResource lightGray = new ColorUIResource(Color.lightGray);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
        ColorUIResource controlDarker = new ColorUIResource(147, 151, 165);  // slate blue
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
        ColorUIResource scrollBarTrack = controlDarker;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
        ColorUIResource menuItemPressedBackground = new ColorUIResource(165,165,165);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
        ColorUIResource menuItemPressedForeground = new ColorUIResource(0,0,0);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
        Border loweredBevelBorder = new MotifBorders.BevelBorder(false,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
                                           table.getColor("controlShadow"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
                                           table.getColor("controlLtHighlight"));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
        Border raisedBevelBorder = new MotifBorders.BevelBorder(true,                                                                  table.getColor("controlShadow"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
                                           table.getColor("controlLtHighlight"));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
        Border marginBorder = new BasicBorders.MarginBorder();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
        Border focusBorder = new MotifBorders.FocusBorder(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
                                           table.getColor("control"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
                                           table.getColor("activeCaptionBorder"));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
        Border focusBevelBorder = new BorderUIResource.CompoundBorderUIResource(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
                                          focusBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
                                          loweredBevelBorder);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
        Border comboBoxBorder = new BorderUIResource.CompoundBorderUIResource(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
                                          focusBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
                                          raisedBevelBorder);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
        Border buttonBorder = new BorderUIResource.CompoundBorderUIResource(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
                                      new MotifBorders.ButtonBorder(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
                                          table.getColor("Button.shadow"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
                                          table.getColor("Button.highlight"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
                                          table.getColor("Button.darkShadow"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
                                          table.getColor("activeCaptionBorder")),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
                                      marginBorder);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
        Border toggleButtonBorder = new BorderUIResource.CompoundBorderUIResource(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
                                      new MotifBorders.ToggleButtonBorder(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
                                          table.getColor("ToggleButton.shadow"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
                                          table.getColor("ToggleButton.highlight"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
                                          table.getColor("ToggleButton.darkShadow"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
                                          table.getColor("activeCaptionBorder")),                                                        marginBorder);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
        Border textFieldBorder = new BorderUIResource.CompoundBorderUIResource(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
                                      focusBevelBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
                                      marginBorder);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
        Border popupMenuBorder = new BorderUIResource.CompoundBorderUIResource(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
                                      raisedBevelBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
                                      new MotifBorders.MotifPopupMenuBorder(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
                                        table.getFont("PopupMenu.font"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
                                        table.getColor("PopupMenu.background"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
                                        table.getColor("PopupMenu.foreground"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
                                        table.getColor("controlShadow"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
                                        table.getColor("controlLtHighlight")
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
                                        ));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
        Object menuItemCheckIcon = new UIDefaults.LazyValue() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
            public Object createValue(UIDefaults table) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
                return MotifIconFactory.getMenuItemCheckIcon();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
        };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
        Object menuItemArrowIcon = new UIDefaults.LazyValue() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
            public Object createValue(UIDefaults table) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
                return MotifIconFactory.getMenuItemArrowIcon();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
        };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
        Object menuArrowIcon = new UIDefaults.LazyValue() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
            public Object createValue(UIDefaults table) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
                return MotifIconFactory.getMenuArrowIcon();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
        };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
        Object checkBoxIcon = new UIDefaults.LazyValue() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
            public Object createValue(UIDefaults table) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
                return MotifIconFactory.getCheckBoxIcon();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
        };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
        Object radioButtonIcon = new UIDefaults.LazyValue() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
            public Object createValue(UIDefaults table) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
                return MotifIconFactory.getRadioButtonIcon();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
        };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
        Object unselectedTabBackground = new UIDefaults.LazyValue() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
            public Object createValue(UIDefaults table) {
455
11d2fe22f245 6693507: There are unnecessary compilation warnings in the com.sun.java.swing.plaf.motif package
rupashka
parents: 2
diff changeset
   293
                Color c = table.getColor("control");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
                return new ColorUIResource(Math.max((int)(c.getRed()*.85),0),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
                                           Math.max((int)(c.getGreen()*.85),0),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
                                           Math.max((int)(c.getBlue()*.85),0));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
        };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
        Object unselectedTabForeground = new UIDefaults.LazyValue() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
            public Object createValue(UIDefaults table) {
455
11d2fe22f245 6693507: There are unnecessary compilation warnings in the com.sun.java.swing.plaf.motif package
rupashka
parents: 2
diff changeset
   302
                Color c = table.getColor("controlText");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
                return new ColorUIResource(Math.max((int)(c.getRed()*.85),0),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
                                           Math.max((int)(c.getGreen()*.85),0),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
                                           Math.max((int)(c.getBlue()*.85),0));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
        };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
        Object unselectedTabShadow = new UIDefaults.LazyValue() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
            public Object createValue(UIDefaults table) {
455
11d2fe22f245 6693507: There are unnecessary compilation warnings in the com.sun.java.swing.plaf.motif package
rupashka
parents: 2
diff changeset
   311
                Color c = table.getColor("control");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
                Color base = new Color(Math.max((int)(c.getRed()*.85),0),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
                                       Math.max((int)(c.getGreen()*.85),0),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
                                       Math.max((int)(c.getBlue()*.85),0));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
                return new ColorUIResource(base.darker());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
        };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
        Object unselectedTabHighlight = new UIDefaults.LazyValue() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
            public Object createValue(UIDefaults table) {
455
11d2fe22f245 6693507: There are unnecessary compilation warnings in the com.sun.java.swing.plaf.motif package
rupashka
parents: 2
diff changeset
   321
                Color c = table.getColor("control");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
                Color base = new Color(Math.max((int)(c.getRed()*.85),0),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
                                       Math.max((int)(c.getGreen()*.85),0),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
                                       Math.max((int)(c.getBlue()*.85),0));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
                return new ColorUIResource(base.brighter());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
        };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
        // *** Text
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
        Object fieldInputMap = new UIDefaults.LazyInputMap(new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
                           "COPY", DefaultEditorKit.copyAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
                          "PASTE", DefaultEditorKit.pasteAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
                            "CUT", DefaultEditorKit.cutAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
                 "control INSERT", DefaultEditorKit.copyAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
                   "shift INSERT", DefaultEditorKit.pasteAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
                   "shift DELETE", DefaultEditorKit.cutAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
                      "control F", DefaultEditorKit.forwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
                      "control B", DefaultEditorKit.backwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
                      "control D", DefaultEditorKit.deleteNextCharAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
                     "BACK_SPACE", DefaultEditorKit.deletePrevCharAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
               "shift BACK_SPACE", DefaultEditorKit.deletePrevCharAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
                         "ctrl H", DefaultEditorKit.deletePrevCharAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
                         "DELETE", DefaultEditorKit.deleteNextCharAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
                    "ctrl DELETE", DefaultEditorKit.deleteNextWordAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
                "ctrl BACK_SPACE", DefaultEditorKit.deletePrevWordAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
                          "RIGHT", DefaultEditorKit.forwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
                           "LEFT", DefaultEditorKit.backwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
                       "KP_RIGHT", DefaultEditorKit.forwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
                        "KP_LEFT", DefaultEditorKit.backwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
                     "shift LEFT", DefaultEditorKit.selectionBackwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
                    "shift RIGHT", DefaultEditorKit.selectionForwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
                   "control LEFT", DefaultEditorKit.previousWordAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
                  "control RIGHT", DefaultEditorKit.nextWordAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
             "control shift LEFT", DefaultEditorKit.selectionPreviousWordAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
            "control shift RIGHT", DefaultEditorKit.selectionNextWordAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
                  "control SLASH", DefaultEditorKit.selectAllAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
                           "HOME", DefaultEditorKit.beginLineAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
                            "END", DefaultEditorKit.endLineAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
                     "shift HOME", DefaultEditorKit.selectionBeginLineAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
                      "shift END", DefaultEditorKit.selectionEndLineAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
             "control BACK_SLASH", "unselect"/*DefaultEditorKit.unselectAction*/,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
                          "ENTER", JTextField.notifyAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
                "control shift O", "toggle-componentOrientation"/*DefaultEditorKit.toggleComponentOrientation*/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
        });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
        Object passwordInputMap = new UIDefaults.LazyInputMap(new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
                           "COPY", DefaultEditorKit.copyAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
                          "PASTE", DefaultEditorKit.pasteAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
                            "CUT", DefaultEditorKit.cutAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
                 "control INSERT", DefaultEditorKit.copyAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
                   "shift INSERT", DefaultEditorKit.pasteAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
                   "shift DELETE", DefaultEditorKit.cutAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
                      "control F", DefaultEditorKit.forwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
                      "control B", DefaultEditorKit.backwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
                      "control D", DefaultEditorKit.deleteNextCharAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
                     "BACK_SPACE", DefaultEditorKit.deletePrevCharAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
               "shift BACK_SPACE", DefaultEditorKit.deletePrevCharAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
                         "ctrl H", DefaultEditorKit.deletePrevCharAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
                         "DELETE", DefaultEditorKit.deleteNextCharAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
                          "RIGHT", DefaultEditorKit.forwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
                           "LEFT", DefaultEditorKit.backwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
                       "KP_RIGHT", DefaultEditorKit.forwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
                        "KP_LEFT", DefaultEditorKit.backwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
                     "shift LEFT", DefaultEditorKit.selectionBackwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
                    "shift RIGHT", DefaultEditorKit.selectionForwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
                   "control LEFT", DefaultEditorKit.beginLineAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
                  "control RIGHT", DefaultEditorKit.endLineAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
             "control shift LEFT", DefaultEditorKit.selectionBeginLineAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
            "control shift RIGHT", DefaultEditorKit.selectionEndLineAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
                  "control SLASH", DefaultEditorKit.selectAllAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
                           "HOME", DefaultEditorKit.beginLineAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
                            "END", DefaultEditorKit.endLineAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
                     "shift HOME", DefaultEditorKit.selectionBeginLineAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
                      "shift END", DefaultEditorKit.selectionEndLineAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
             "control BACK_SLASH", "unselect"/*DefaultEditorKit.unselectAction*/,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
                          "ENTER", JTextField.notifyAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
                "control shift O", "toggle-componentOrientation"/*DefaultEditorKit.toggleComponentOrientation*/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
        });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
        Object multilineInputMap = new UIDefaults.LazyInputMap(new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
                           "COPY", DefaultEditorKit.copyAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
                          "PASTE", DefaultEditorKit.pasteAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
                            "CUT", DefaultEditorKit.cutAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
                 "control INSERT", DefaultEditorKit.copyAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
                   "shift INSERT", DefaultEditorKit.pasteAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
                   "shift DELETE", DefaultEditorKit.cutAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
                      "control F", DefaultEditorKit.forwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
                      "control B", DefaultEditorKit.backwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
                      "control D", DefaultEditorKit.deleteNextCharAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
                     "BACK_SPACE", DefaultEditorKit.deletePrevCharAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
               "shift BACK_SPACE", DefaultEditorKit.deletePrevCharAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
                         "ctrl H", DefaultEditorKit.deletePrevCharAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
                         "DELETE", DefaultEditorKit.deleteNextCharAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
                    "ctrl DELETE", DefaultEditorKit.deleteNextWordAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
                "ctrl BACK_SPACE", DefaultEditorKit.deletePrevWordAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
                          "RIGHT", DefaultEditorKit.forwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
                           "LEFT", DefaultEditorKit.backwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
                       "KP_RIGHT", DefaultEditorKit.forwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
                        "KP_LEFT", DefaultEditorKit.backwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
                     "shift LEFT", DefaultEditorKit.selectionBackwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
                    "shift RIGHT", DefaultEditorKit.selectionForwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
                   "control LEFT", DefaultEditorKit.previousWordAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
                  "control RIGHT", DefaultEditorKit.nextWordAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
             "control shift LEFT", DefaultEditorKit.selectionPreviousWordAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
            "control shift RIGHT", DefaultEditorKit.selectionNextWordAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
                  "control SLASH", DefaultEditorKit.selectAllAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
                           "HOME", DefaultEditorKit.beginLineAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
                            "END", DefaultEditorKit.endLineAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
                     "shift HOME", DefaultEditorKit.selectionBeginLineAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
                      "shift END", DefaultEditorKit.selectionEndLineAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
                      "control N", DefaultEditorKit.downAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
                      "control P", DefaultEditorKit.upAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
                             "UP", DefaultEditorKit.upAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
                           "DOWN", DefaultEditorKit.downAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
                        "PAGE_UP", DefaultEditorKit.pageUpAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
                      "PAGE_DOWN", DefaultEditorKit.pageDownAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
                  "shift PAGE_UP", "selection-page-up",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
                "shift PAGE_DOWN", "selection-page-down",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
             "ctrl shift PAGE_UP", "selection-page-left",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
           "ctrl shift PAGE_DOWN", "selection-page-right",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
                       "shift UP", DefaultEditorKit.selectionUpAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
                     "shift DOWN", DefaultEditorKit.selectionDownAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
                          "ENTER", DefaultEditorKit.insertBreakAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
                            "TAB", DefaultEditorKit.insertTabAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
             "control BACK_SLASH", "unselect"/*DefaultEditorKit.unselectAction*/,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
                   "control HOME", DefaultEditorKit.beginAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
                    "control END", DefaultEditorKit.endAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
             "control shift HOME", DefaultEditorKit.selectionBeginAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
              "control shift END", DefaultEditorKit.selectionEndAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
                      "control T", "next-link-action",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
                "control shift T", "previous-link-action",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
                  "control SPACE", "activate-link-action",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
                "control shift O", "toggle-componentOrientation"/*DefaultEditorKit.toggleComponentOrientation*/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
        });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
        // *** Tree
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
        Object treeOpenIcon = SwingUtilities2.makeIcon(getClass(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
                                                       MotifLookAndFeel.class,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
                                                       "icons/TreeOpen.gif");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
        Object treeClosedIcon = SwingUtilities2.makeIcon(getClass(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
                                                         MotifLookAndFeel.class,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
                                                         "icons/TreeClosed.gif");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
        Object treeLeafIcon = new UIDefaults.LazyValue() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
            public Object createValue(UIDefaults table) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
                return MotifTreeCellRenderer.loadLeafIcon();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
        };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
        Object treeExpandedIcon = new UIDefaults.LazyValue() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
            public Object createValue(UIDefaults table) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
                return MotifTreeUI.MotifExpandedIcon.createExpandedIcon();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
        };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
        Object treeCollapsedIcon = new UIDefaults.LazyValue() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
            public Object createValue(UIDefaults table) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
                return MotifTreeUI.MotifCollapsedIcon.createCollapsedIcon();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
        };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
        Border menuBarBorder = new MotifBorders.MenuBarBorder(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
                                          table.getColor("MenuBar.shadow"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
                                          table.getColor("MenuBar.highlight"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
                                          table.getColor("MenuBar.darkShadow"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
                                          table.getColor("activeCaptionBorder"));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
        Border menuMarginBorder = new BorderUIResource.CompoundBorderUIResource(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
                                          loweredBevelBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
                                          marginBorder);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
        Border focusCellHighlightBorder = new BorderUIResource.LineBorderUIResource(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
                                                table.getColor("activeCaptionBorder"));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
        Object sliderFocusInsets = new InsetsUIResource( 0, 0, 0, 0 );
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
        // ** for tabbedpane
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
        Object tabbedPaneTabInsets = new InsetsUIResource(3, 4, 3, 4);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
        Object tabbedPaneTabPadInsets = new InsetsUIResource(3, 0, 1, 0);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
        Object tabbedPaneTabAreaInsets = new InsetsUIResource(4, 2, 0, 8);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
        Object tabbedPaneContentBorderInsets = new InsetsUIResource(2, 2, 2, 2);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
        // ** for optionpane
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
        Object optionPaneBorder = new BorderUIResource.EmptyBorderUIResource(10,0,0,0);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   517
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
        Object optionPaneButtonAreaBorder = new BorderUIResource.EmptyBorderUIResource(10,10,10,10);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
        Object optionPaneMessageAreaBorder = new BorderUIResource.EmptyBorderUIResource(10,10,12,10);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
        Object[] defaults = {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
            "Desktop.background", table.get("desktop"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
            "Desktop.ancestorInputMap",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   527
               new UIDefaults.LazyInputMap(new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   528
                 "ctrl F5", "restore",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   529
                 "ctrl F4", "close",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   530
                 "ctrl F7", "move",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   531
                 "ctrl F8", "resize",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   532
                   "RIGHT", "right",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
                "KP_RIGHT", "right",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
             "shift RIGHT", "shrinkRight",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
          "shift KP_RIGHT", "shrinkRight",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
                    "LEFT", "left",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   537
                 "KP_LEFT", "left",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
              "shift LEFT", "shrinkLeft",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
           "shift KP_LEFT", "shrinkLeft",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
                      "UP", "up",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
                   "KP_UP", "up",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
                "shift UP", "shrinkUp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
             "shift KP_UP", "shrinkUp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   544
                    "DOWN", "down",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
                 "KP_DOWN", "down",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   546
              "shift DOWN", "shrinkDown",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   547
           "shift KP_DOWN", "shrinkDown",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   548
                  "ESCAPE", "escape",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   549
                 "ctrl F9", "minimize",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
                "ctrl F10", "maximize",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
                 "ctrl F6", "selectNextFrame",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   552
                "ctrl TAB", "selectNextFrame",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
             "ctrl alt F6", "selectNextFrame",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   554
       "shift ctrl alt F6", "selectPreviousFrame",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   555
                "ctrl F12", "navigateNext",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   556
          "shift ctrl F12", "navigatePrevious"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   557
              }),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   558
90ce3da70b43 Initial load
duke
parents:
diff changeset
   559
            "Panel.background", table.get("control"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   560
            "Panel.foreground", table.get("textText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   561
            "Panel.font", dialogPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   562
90ce3da70b43 Initial load
duke
parents:
diff changeset
   563
            "ProgressBar.font", dialogPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   564
            "ProgressBar.foreground", controlDarker,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   565
            "ProgressBar.background", table.get("control"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   566
            "ProgressBar.selectionForeground", table.get("control"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   567
            "ProgressBar.selectionBackground", table.get("controlText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   568
            "ProgressBar.border", loweredBevelBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   569
            "ProgressBar.cellLength", new Integer(6),
438
2ae294e4518c 6613529: Avoid duplicate object creation within JDK packages
dav
parents: 2
diff changeset
   570
            "ProgressBar.cellSpacing", Integer.valueOf(0),
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   571
90ce3da70b43 Initial load
duke
parents:
diff changeset
   572
            // Buttons
90ce3da70b43 Initial load
duke
parents:
diff changeset
   573
            "Button.margin", new InsetsUIResource(2, 4, 2, 4),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   574
            "Button.border", buttonBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   575
            "Button.background", table.get("control"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   576
            "Button.foreground", table.get("controlText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   577
            "Button.select", table.get("controlLightShadow"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   578
            "Button.font", dialogPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   579
            "Button.focusInputMap", new UIDefaults.LazyInputMap(new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   580
                          "SPACE", "pressed",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   581
                 "released SPACE", "released"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   582
              }),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   583
90ce3da70b43 Initial load
duke
parents:
diff changeset
   584
            "CheckBox.textIconGap", new Integer(8),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   585
            "CheckBox.margin", new InsetsUIResource(4, 2, 4, 2),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   586
            "CheckBox.icon", checkBoxIcon,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   587
            "CheckBox.focus", table.get("activeCaptionBorder"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   588
            "CheckBox.focusInputMap",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   589
               new UIDefaults.LazyInputMap(new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   590
                            "SPACE", "pressed",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   591
                   "released SPACE", "released"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   592
                 }),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   593
90ce3da70b43 Initial load
duke
parents:
diff changeset
   594
            "RadioButton.margin", new InsetsUIResource(4, 2, 4, 2),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   595
            "RadioButton.textIconGap", new Integer(8),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   596
            "RadioButton.background", table.get("control"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   597
            "RadioButton.foreground", table.get("controlText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   598
            "RadioButton.icon", radioButtonIcon,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   599
            "RadioButton.focus", table.get("activeCaptionBorder"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   600
            "RadioButton.icon", radioButtonIcon,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   601
            "RadioButton.focusInputMap",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   602
               new UIDefaults.LazyInputMap(new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   603
                          "SPACE", "pressed",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   604
                 "released SPACE", "released"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   605
              }),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   606
90ce3da70b43 Initial load
duke
parents:
diff changeset
   607
            "ToggleButton.border", toggleButtonBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   608
            "ToggleButton.background", table.get("control"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   609
            "ToggleButton.foreground", table.get("controlText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   610
            "ToggleButton.focus", table.get("controlText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   611
            "ToggleButton.select", table.get("controlLightShadow"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   612
            "ToggleButton.focusInputMap",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   613
              new UIDefaults.LazyInputMap(new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   614
                            "SPACE", "pressed",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   615
                   "released SPACE", "released"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   616
                }),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   617
90ce3da70b43 Initial load
duke
parents:
diff changeset
   618
            // Menus
90ce3da70b43 Initial load
duke
parents:
diff changeset
   619
            "Menu.border", menuMarginBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   620
            "Menu.font", dialogPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   621
            "Menu.acceleratorFont", dialogPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   622
            "Menu.acceleratorSelectionForeground", menuItemPressedForeground,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   623
            "Menu.foreground", table.get("menuText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   624
            "Menu.background", table.get("menu"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   625
            "Menu.selectionForeground", menuItemPressedForeground,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   626
            "Menu.selectionBackground", menuItemPressedBackground,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   627
            "Menu.checkIcon", menuItemCheckIcon,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   628
            "Menu.arrowIcon", menuArrowIcon,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   629
            "Menu.menuPopupOffsetX", new Integer(0),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   630
            "Menu.menuPopupOffsetY", new Integer(0),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   631
            "Menu.submenuPopupOffsetX", new Integer(-2),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   632
            "Menu.submenuPopupOffsetY", new Integer(3),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   633
            "Menu.shortcutKeys", new int[] {KeyEvent.ALT_MASK,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   634
                                            KeyEvent.META_MASK},
90ce3da70b43 Initial load
duke
parents:
diff changeset
   635
            "Menu.cancelMode", "hideMenuTree",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   636
90ce3da70b43 Initial load
duke
parents:
diff changeset
   637
            "MenuBar.border", menuBarBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   638
            "MenuBar.background", table.get("menu"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   639
            "MenuBar.foreground", table.get("menuText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   640
            "MenuBar.font", dialogPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   641
            "MenuBar.windowBindings", new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   642
                "F10", "takeFocus" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   643
90ce3da70b43 Initial load
duke
parents:
diff changeset
   644
            "MenuItem.border", menuMarginBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   645
            "MenuItem.font", dialogPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   646
            "MenuItem.acceleratorFont", dialogPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   647
            "MenuItem.acceleratorSelectionForeground", menuItemPressedForeground,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   648
            "MenuItem.foreground", table.get("menuText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   649
            "MenuItem.background", table.get("menu"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   650
            "MenuItem.selectionForeground", menuItemPressedForeground,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   651
            "MenuItem.selectionBackground", menuItemPressedBackground,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   652
            "MenuItem.checkIcon", menuItemCheckIcon,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   653
            "MenuItem.arrowIcon", menuItemArrowIcon,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   654
90ce3da70b43 Initial load
duke
parents:
diff changeset
   655
            "RadioButtonMenuItem.border", menuMarginBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   656
            "RadioButtonMenuItem.font", dialogPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   657
            "RadioButtonMenuItem.acceleratorFont", dialogPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   658
            "RadioButtonMenuItem.acceleratorSelectionForeground", menuItemPressedForeground,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   659
            "RadioButtonMenuItem.foreground", table.get("menuText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   660
            "RadioButtonMenuItem.background", table.get("menu"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   661
            "RadioButtonMenuItem.selectionForeground", menuItemPressedForeground,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   662
            "RadioButtonMenuItem.selectionBackground", menuItemPressedBackground,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   663
            "RadioButtonMenuItem.checkIcon", radioButtonIcon,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   664
            "RadioButtonMenuItem.arrowIcon", menuItemArrowIcon,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   665
90ce3da70b43 Initial load
duke
parents:
diff changeset
   666
            "CheckBoxMenuItem.border", menuMarginBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   667
            "CheckBoxMenuItem.font", dialogPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   668
            "CheckBoxMenuItem.acceleratorFont", dialogPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   669
            "CheckBoxMenuItem.acceleratorSelectionForeground", menuItemPressedForeground,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   670
            "CheckBoxMenuItem.foreground", table.get("menuText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   671
            "CheckBoxMenuItem.background", table.get("menu"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   672
            "CheckBoxMenuItem.selectionForeground", menuItemPressedForeground,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   673
            "CheckBoxMenuItem.selectionBackground", menuItemPressedBackground,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   674
            "CheckBoxMenuItem.checkIcon", checkBoxIcon,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   675
            "CheckBoxMenuItem.arrowIcon", menuItemArrowIcon,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   676
90ce3da70b43 Initial load
duke
parents:
diff changeset
   677
            "PopupMenu.background", table.get("menu"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   678
            "PopupMenu.border", popupMenuBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   679
            "PopupMenu.foreground", table.get("menuText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   680
            "PopupMenu.font", dialogPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   681
            "PopupMenu.consumeEventOnClose", Boolean.TRUE,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   682
90ce3da70b43 Initial load
duke
parents:
diff changeset
   683
            "Label.font", dialogPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   684
            "Label.background", table.get("control"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   685
            "Label.foreground", table.get("controlText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   686
90ce3da70b43 Initial load
duke
parents:
diff changeset
   687
            "Separator.shadow", table.get("controlShadow"),          // DEPRECATED - DO NOT USE!
90ce3da70b43 Initial load
duke
parents:
diff changeset
   688
            "Separator.highlight", table.get("controlLtHighlight"),  // DEPRECATED - DO NOT USE!
90ce3da70b43 Initial load
duke
parents:
diff changeset
   689
90ce3da70b43 Initial load
duke
parents:
diff changeset
   690
            "Separator.background", table.get("controlLtHighlight"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   691
            "Separator.foreground", table.get("controlShadow"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   692
90ce3da70b43 Initial load
duke
parents:
diff changeset
   693
            "List.focusCellHighlightBorder", focusCellHighlightBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   694
            "List.focusInputMap",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   695
               new UIDefaults.LazyInputMap(new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   696
                             "COPY", "copy",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   697
                            "PASTE", "paste",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   698
                              "CUT", "cut",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   699
                   "control INSERT", "copy",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   700
                     "shift INSERT", "paste",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   701
                     "shift DELETE", "cut",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   702
                               "UP", "selectPreviousRow",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   703
                            "KP_UP", "selectPreviousRow",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   704
                         "shift UP", "selectPreviousRowExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   705
                      "shift KP_UP", "selectPreviousRowExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   706
                    "ctrl shift UP", "selectPreviousRowExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   707
                 "ctrl shift KP_UP", "selectPreviousRowExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   708
                          "ctrl UP", "selectPreviousRowChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   709
                       "ctrl KP_UP", "selectPreviousRowChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   710
                             "DOWN", "selectNextRow",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   711
                          "KP_DOWN", "selectNextRow",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   712
                       "shift DOWN", "selectNextRowExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   713
                    "shift KP_DOWN", "selectNextRowExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   714
                  "ctrl shift DOWN", "selectNextRowExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   715
               "ctrl shift KP_DOWN", "selectNextRowExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   716
                        "ctrl DOWN", "selectNextRowChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   717
                     "ctrl KP_DOWN", "selectNextRowChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   718
                             "LEFT", "selectPreviousColumn",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   719
                          "KP_LEFT", "selectPreviousColumn",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   720
                       "shift LEFT", "selectPreviousColumnExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   721
                    "shift KP_LEFT", "selectPreviousColumnExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   722
                  "ctrl shift LEFT", "selectPreviousColumnExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   723
               "ctrl shift KP_LEFT", "selectPreviousColumnExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   724
                        "ctrl LEFT", "selectPreviousColumnChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   725
                     "ctrl KP_LEFT", "selectPreviousColumnChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   726
                            "RIGHT", "selectNextColumn",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   727
                         "KP_RIGHT", "selectNextColumn",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   728
                      "shift RIGHT", "selectNextColumnExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   729
                   "shift KP_RIGHT", "selectNextColumnExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   730
                 "ctrl shift RIGHT", "selectNextColumnExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   731
              "ctrl shift KP_RIGHT", "selectNextColumnExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   732
                       "ctrl RIGHT", "selectNextColumnChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   733
                    "ctrl KP_RIGHT", "selectNextColumnChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   734
                             "HOME", "selectFirstRow",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   735
                       "shift HOME", "selectFirstRowExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   736
                  "ctrl shift HOME", "selectFirstRowExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   737
                        "ctrl HOME", "selectFirstRowChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   738
                              "END", "selectLastRow",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   739
                        "shift END", "selectLastRowExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   740
                   "ctrl shift END", "selectLastRowExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   741
                         "ctrl END", "selectLastRowChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   742
                          "PAGE_UP", "scrollUp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   743
                    "shift PAGE_UP", "scrollUpExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   744
               "ctrl shift PAGE_UP", "scrollUpExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   745
                     "ctrl PAGE_UP", "scrollUpChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   746
                        "PAGE_DOWN", "scrollDown",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   747
                  "shift PAGE_DOWN", "scrollDownExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   748
             "ctrl shift PAGE_DOWN", "scrollDownExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   749
                   "ctrl PAGE_DOWN", "scrollDownChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   750
                           "ctrl A", "selectAll",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   751
                       "ctrl SLASH", "selectAll",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   752
                  "ctrl BACK_SLASH", "clearSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   753
                            "SPACE", "addToSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   754
                       "ctrl SPACE", "toggleAndAnchor",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   755
                      "shift SPACE", "extendTo",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   756
                 "ctrl shift SPACE", "moveSelectionTo"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   757
                 }),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   758
90ce3da70b43 Initial load
duke
parents:
diff changeset
   759
            "DesktopIcon.icon", SwingUtilities2.makeIcon(getClass(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   760
                                                         MotifLookAndFeel.class,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   761
                                                         "icons/DesktopIcon.gif"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   762
            "DesktopIcon.border", null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   763
            // These are a little odd, MotifInternalFrameUI isntalls em!
90ce3da70b43 Initial load
duke
parents:
diff changeset
   764
            "DesktopIcon.windowBindings", new Object[]
90ce3da70b43 Initial load
duke
parents:
diff changeset
   765
              { "ESCAPE", "hideSystemMenu" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   766
90ce3da70b43 Initial load
duke
parents:
diff changeset
   767
            "InternalFrame.activeTitleBackground", table.get("activeCaptionBorder"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   768
            "InternalFrame.inactiveTitleBackground", table.get("inactiveCaptionBorder"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   769
            "InternalFrame.windowBindings", new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   770
                "shift ESCAPE", "showSystemMenu",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   771
                  "ctrl SPACE", "showSystemMenu",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   772
                      "ESCAPE", "hideSystemMenu"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   773
            },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   774
90ce3da70b43 Initial load
duke
parents:
diff changeset
   775
            "ScrollBar.background", scrollBarTrack,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   776
            "ScrollBar.foreground", table.get("control"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   777
            "ScrollBar.track", scrollBarTrack,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   778
            "ScrollBar.trackHighlight", table.get("controlDkShadow"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   779
            "ScrollBar.thumb", table.get("control"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   780
            "ScrollBar.thumbHighlight", table.get("controlHighlight"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   781
            "ScrollBar.thumbDarkShadow", table.get("controlDkShadow"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   782
            "ScrollBar.thumbShadow", table.get("controlShadow"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   783
            "ScrollBar.border", loweredBevelBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   784
            "ScrollBar.allowsAbsolutePositioning", Boolean.TRUE,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   785
            "ScrollBar.ancestorInputMap",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   786
               new UIDefaults.LazyInputMap(new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   787
                       "RIGHT", "positiveUnitIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   788
                    "KP_RIGHT", "positiveUnitIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   789
                        "DOWN", "positiveUnitIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   790
                     "KP_DOWN", "positiveUnitIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   791
                   "PAGE_DOWN", "positiveBlockIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   792
              "ctrl PAGE_DOWN", "positiveBlockIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   793
                        "LEFT", "negativeUnitIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   794
                     "KP_LEFT", "negativeUnitIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   795
                          "UP", "negativeUnitIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   796
                       "KP_UP", "negativeUnitIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   797
                     "PAGE_UP", "negativeBlockIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   798
                "ctrl PAGE_UP", "negativeBlockIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   799
                        "HOME", "minScroll",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   800
                         "END", "maxScroll"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   801
                 }),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   802
90ce3da70b43 Initial load
duke
parents:
diff changeset
   803
            "ScrollPane.font", dialogPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   804
            "ScrollPane.background", table.get("control"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   805
            "ScrollPane.foreground", table.get("controlText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   806
            "ScrollPane.border", null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   807
            "ScrollPane.viewportBorder", loweredBevelBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   808
            "ScrollPane.ancestorInputMap",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   809
               new UIDefaults.LazyInputMap(new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   810
                           "RIGHT", "unitScrollRight",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   811
                        "KP_RIGHT", "unitScrollRight",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   812
                            "DOWN", "unitScrollDown",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   813
                         "KP_DOWN", "unitScrollDown",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   814
                            "LEFT", "unitScrollLeft",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   815
                         "KP_LEFT", "unitScrollLeft",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   816
                              "UP", "unitScrollUp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   817
                           "KP_UP", "unitScrollUp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   818
                         "PAGE_UP", "scrollUp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   819
                       "PAGE_DOWN", "scrollDown",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   820
                    "ctrl PAGE_UP", "scrollLeft",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   821
                  "ctrl PAGE_DOWN", "scrollRight",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   822
                       "ctrl HOME", "scrollHome",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   823
                        "ctrl END", "scrollEnd"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   824
                 }),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   825
90ce3da70b43 Initial load
duke
parents:
diff changeset
   826
            "Slider.font", dialogPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   827
            "Slider.border", focusBevelBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   828
            "Slider.foreground", table.get("control"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   829
            "Slider.background", controlDarker,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   830
            "Slider.highlight", table.get("controlHighlight"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   831
            "Slider.shadow", table.get("controlShadow"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   832
            "Slider.focus", table.get("controlDkShadow"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   833
            "Slider.focusInsets", sliderFocusInsets,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   834
            "Slider.focusInputMap", new UIDefaults.LazyInputMap(new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   835
                         "RIGHT", "positiveUnitIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   836
                      "KP_RIGHT", "positiveUnitIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   837
                          "DOWN", "negativeUnitIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   838
                       "KP_DOWN", "negativeUnitIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   839
                "ctrl PAGE_DOWN", "negativeBlockIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   840
                          "LEFT", "negativeUnitIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   841
                       "KP_LEFT", "negativeUnitIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   842
                            "UP", "positiveUnitIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   843
                         "KP_UP", "positiveUnitIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   844
                  "ctrl PAGE_UP", "positiveBlockIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   845
                          "HOME", "minScroll",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   846
                           "END", "maxScroll"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   847
            }),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   848
90ce3da70b43 Initial load
duke
parents:
diff changeset
   849
            // Spinner
90ce3da70b43 Initial load
duke
parents:
diff changeset
   850
            "Spinner.ancestorInputMap",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   851
               new UIDefaults.LazyInputMap(new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   852
                               "UP", "increment",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   853
                            "KP_UP", "increment",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   854
                             "DOWN", "decrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   855
                          "KP_DOWN", "decrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   856
               }),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   857
            "Spinner.border", textFieldBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   858
90ce3da70b43 Initial load
duke
parents:
diff changeset
   859
            "SplitPane.background", table.get("control"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   860
            "SplitPane.highlight", table.get("controlHighlight"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   861
            "SplitPane.shadow", table.get("controlShadow"),
438
2ae294e4518c 6613529: Avoid duplicate object creation within JDK packages
dav
parents: 2
diff changeset
   862
            "SplitPane.dividerSize", Integer.valueOf(20),
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   863
            "SplitPane.activeThumb", table.get("activeCaptionBorder"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   864
            "SplitPane.ancestorInputMap",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   865
               new UIDefaults.LazyInputMap(new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   866
                        "UP", "negativeIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   867
                      "DOWN", "positiveIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   868
                      "LEFT", "negativeIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   869
                     "RIGHT", "positiveIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   870
                     "KP_UP", "negativeIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   871
                   "KP_DOWN", "positiveIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   872
                   "KP_LEFT", "negativeIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   873
                  "KP_RIGHT", "positiveIncrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   874
                      "HOME", "selectMin",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   875
                       "END", "selectMax",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   876
                        "F8", "startResize",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   877
                        "F6", "toggleFocus",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   878
                  "ctrl TAB", "focusOutForward",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   879
            "ctrl shift TAB", "focusOutBackward"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   880
               }),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   881
90ce3da70b43 Initial load
duke
parents:
diff changeset
   882
            "TabbedPane.font", dialogPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   883
            "TabbedPane.background", table.get("control"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   884
            "TabbedPane.foreground", table.get("controlText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   885
            "TabbedPane.light", table.get("controlHighlight"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   886
            "TabbedPane.highlight", table.get("controlLtHighlight"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   887
            "TabbedPane.shadow", table.get("controlShadow"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   888
            "TabbedPane.darkShadow", table.get("controlShadow"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   889
            "TabbedPane.unselectedTabBackground", unselectedTabBackground,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   890
            "TabbedPane.unselectedTabForeground", unselectedTabForeground,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   891
            "TabbedPane.unselectedTabHighlight", unselectedTabHighlight,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   892
            "TabbedPane.unselectedTabShadow", unselectedTabShadow,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   893
            "TabbedPane.focus", table.get("activeCaptionBorder"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   894
            "TabbedPane.tabInsets", tabbedPaneTabInsets,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   895
            "TabbedPane.selectedTabPadInsets", tabbedPaneTabPadInsets,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   896
            "TabbedPane.tabAreaInsets", tabbedPaneTabAreaInsets,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   897
            "TabbedPane.contentBorderInsets", tabbedPaneContentBorderInsets,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   898
            "TabbedPane.focusInputMap",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   899
              new UIDefaults.LazyInputMap(new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   900
                         "RIGHT", "navigateRight",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   901
                      "KP_RIGHT", "navigateRight",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   902
                          "LEFT", "navigateLeft",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   903
                       "KP_LEFT", "navigateLeft",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   904
                            "UP", "navigateUp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   905
                         "KP_UP", "navigateUp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   906
                          "DOWN", "navigateDown",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   907
                       "KP_DOWN", "navigateDown",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   908
                     "ctrl DOWN", "requestFocusForVisibleComponent",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   909
                  "ctrl KP_DOWN", "requestFocusForVisibleComponent",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   910
                }),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   911
            "TabbedPane.ancestorInputMap",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   912
               new UIDefaults.LazyInputMap(new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   913
                   "ctrl PAGE_DOWN", "navigatePageDown",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   914
                     "ctrl PAGE_UP", "navigatePageUp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   915
                          "ctrl UP", "requestFocus",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   916
                       "ctrl KP_UP", "requestFocus",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   917
                 }),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   918
90ce3da70b43 Initial load
duke
parents:
diff changeset
   919
90ce3da70b43 Initial load
duke
parents:
diff changeset
   920
            "Tree.background", controlDarker,                              // default: dark slate blue
90ce3da70b43 Initial load
duke
parents:
diff changeset
   921
            "Tree.hash", table.get("controlDkShadow"),                     // default: black
90ce3da70b43 Initial load
duke
parents:
diff changeset
   922
            "Tree.iconShadow", table.get("controlShadow"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   923
            "Tree.iconHighlight", table.get("controlHighlight"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   924
            "Tree.iconBackground", table.get("control"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   925
            "Tree.iconForeground", table.get("controlShadow"),             // default: black
90ce3da70b43 Initial load
duke
parents:
diff changeset
   926
            "Tree.textBackground", controlDarker,             // default: dark slate blue
90ce3da70b43 Initial load
duke
parents:
diff changeset
   927
            "Tree.textForeground", table.get("textText"),           // default: black
90ce3da70b43 Initial load
duke
parents:
diff changeset
   928
            "Tree.selectionBackground", table.get("text"),            // default: white
90ce3da70b43 Initial load
duke
parents:
diff changeset
   929
            "Tree.selectionForeground", table.get("textText"),              // default: black
90ce3da70b43 Initial load
duke
parents:
diff changeset
   930
            "Tree.selectionBorderColor", table.get("activeCaptionBorder"), // default: maroon
90ce3da70b43 Initial load
duke
parents:
diff changeset
   931
            "Tree.openIcon", treeOpenIcon,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   932
            "Tree.closedIcon", treeClosedIcon,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   933
            "Tree.leafIcon", treeLeafIcon,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   934
            "Tree.expandedIcon", treeExpandedIcon,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   935
            "Tree.collapsedIcon", treeCollapsedIcon,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   936
            "Tree.editorBorder", focusBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   937
            "Tree.editorBorderSelectionColor", table.get("activeCaptionBorder"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   938
            "Tree.rowHeight", new Integer(18),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   939
            "Tree.drawsFocusBorderAroundIcon", Boolean.TRUE,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   940
            "Tree.focusInputMap", new UIDefaults.LazyInputMap(new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   941
                                "COPY", "copy",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   942
                               "PASTE", "paste",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   943
                                 "CUT", "cut",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   944
                      "control INSERT", "copy",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   945
                        "shift INSERT", "paste",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   946
                        "shift DELETE", "cut",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   947
                                  "UP", "selectPrevious",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   948
                               "KP_UP", "selectPrevious",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   949
                            "shift UP", "selectPreviousExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   950
                         "shift KP_UP", "selectPreviousExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   951
                       "ctrl shift UP", "selectPreviousExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   952
                    "ctrl shift KP_UP", "selectPreviousExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   953
                             "ctrl UP", "selectPreviousChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   954
                          "ctrl KP_UP", "selectPreviousChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   955
                                "DOWN", "selectNext",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   956
                             "KP_DOWN", "selectNext",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   957
                          "shift DOWN", "selectNextExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   958
                       "shift KP_DOWN", "selectNextExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   959
                     "ctrl shift DOWN", "selectNextExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   960
                  "ctrl shift KP_DOWN", "selectNextExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   961
                           "ctrl DOWN", "selectNextChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   962
                        "ctrl KP_DOWN", "selectNextChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   963
                               "RIGHT", "selectChild",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   964
                            "KP_RIGHT", "selectChild",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   965
                                "LEFT", "selectParent",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   966
                             "KP_LEFT", "selectParent",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   967
                             "PAGE_UP", "scrollUpChangeSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   968
                       "shift PAGE_UP", "scrollUpExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   969
                  "ctrl shift PAGE_UP", "scrollUpExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   970
                        "ctrl PAGE_UP", "scrollUpChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   971
                           "PAGE_DOWN", "scrollDownChangeSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   972
                     "shift PAGE_DOWN", "scrollDownExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   973
                "ctrl shift PAGE_DOWN", "scrollDownExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   974
                      "ctrl PAGE_DOWN", "scrollDownChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   975
                                "HOME", "selectFirst",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   976
                          "shift HOME", "selectFirstExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   977
                     "ctrl shift HOME", "selectFirstExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   978
                           "ctrl HOME", "selectFirstChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   979
                                 "END", "selectLast",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   980
                           "shift END", "selectLastExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   981
                      "ctrl shift END", "selectLastExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   982
                            "ctrl END", "selectLastChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   983
                                  "F2", "startEditing",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   984
                              "ctrl A", "selectAll",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   985
                          "ctrl SLASH", "selectAll",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   986
                     "ctrl BACK_SLASH", "clearSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   987
                           "ctrl LEFT", "scrollLeft",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   988
                        "ctrl KP_LEFT", "scrollLeft",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   989
                          "ctrl RIGHT", "scrollRight",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   990
                       "ctrl KP_RIGHT", "scrollRight",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   991
                               "SPACE", "addToSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   992
                          "ctrl SPACE", "toggleAndAnchor",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   993
                         "shift SPACE", "extendTo",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   994
                    "ctrl shift SPACE", "moveSelectionTo"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   995
              }),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   996
            "Tree.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   997
                "ESCAPE", "cancel" }),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   998
90ce3da70b43 Initial load
duke
parents:
diff changeset
   999
            "Table.focusCellHighlightBorder", focusCellHighlightBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1000
            "Table.scrollPaneBorder", null,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1001
            "Table.dropLineShortColor", table.get("activeCaptionBorder"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1002
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1003
            //      "Table.background", white,  // cell background color
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1004
            "Table.ancestorInputMap",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1005
               new UIDefaults.LazyInputMap(new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1006
                                 "COPY", "copy",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1007
                                "PASTE", "paste",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1008
                                  "CUT", "cut",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1009
                       "control INSERT", "copy",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1010
                         "shift INSERT", "paste",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1011
                         "shift DELETE", "cut",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1012
                                "RIGHT", "selectNextColumn",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1013
                             "KP_RIGHT", "selectNextColumn",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1014
                          "shift RIGHT", "selectNextColumnExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1015
                       "shift KP_RIGHT", "selectNextColumnExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1016
                     "ctrl shift RIGHT", "selectNextColumnExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1017
                  "ctrl shift KP_RIGHT", "selectNextColumnExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1018
                           "ctrl RIGHT", "selectNextColumnChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1019
                        "ctrl KP_RIGHT", "selectNextColumnChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1020
                                 "LEFT", "selectPreviousColumn",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1021
                              "KP_LEFT", "selectPreviousColumn",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1022
                           "shift LEFT", "selectPreviousColumnExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1023
                        "shift KP_LEFT", "selectPreviousColumnExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1024
                      "ctrl shift LEFT", "selectPreviousColumnExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1025
                   "ctrl shift KP_LEFT", "selectPreviousColumnExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1026
                            "ctrl LEFT", "selectPreviousColumnChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1027
                         "ctrl KP_LEFT", "selectPreviousColumnChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1028
                                 "DOWN", "selectNextRow",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1029
                              "KP_DOWN", "selectNextRow",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1030
                           "shift DOWN", "selectNextRowExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1031
                        "shift KP_DOWN", "selectNextRowExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1032
                      "ctrl shift DOWN", "selectNextRowExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1033
                   "ctrl shift KP_DOWN", "selectNextRowExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1034
                            "ctrl DOWN", "selectNextRowChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1035
                         "ctrl KP_DOWN", "selectNextRowChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1036
                                   "UP", "selectPreviousRow",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1037
                                "KP_UP", "selectPreviousRow",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1038
                             "shift UP", "selectPreviousRowExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1039
                          "shift KP_UP", "selectPreviousRowExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1040
                        "ctrl shift UP", "selectPreviousRowExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1041
                     "ctrl shift KP_UP", "selectPreviousRowExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1042
                              "ctrl UP", "selectPreviousRowChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1043
                           "ctrl KP_UP", "selectPreviousRowChangeLead",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1044
                                 "HOME", "selectFirstColumn",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1045
                           "shift HOME", "selectFirstColumnExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1046
                      "ctrl shift HOME", "selectFirstRowExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1047
                            "ctrl HOME", "selectFirstRow",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1048
                                  "END", "selectLastColumn",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1049
                            "shift END", "selectLastColumnExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1050
                       "ctrl shift END", "selectLastRowExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1051
                             "ctrl END", "selectLastRow",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1052
                              "PAGE_UP", "scrollUpChangeSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1053
                        "shift PAGE_UP", "scrollUpExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1054
                   "ctrl shift PAGE_UP", "scrollLeftExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1055
                         "ctrl PAGE_UP", "scrollLeftChangeSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1056
                            "PAGE_DOWN", "scrollDownChangeSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1057
                      "shift PAGE_DOWN", "scrollDownExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1058
                 "ctrl shift PAGE_DOWN", "scrollRightExtendSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1059
                       "ctrl PAGE_DOWN", "scrollRightChangeSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1060
                                  "TAB", "selectNextColumnCell",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1061
                            "shift TAB", "selectPreviousColumnCell",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1062
                                "ENTER", "selectNextRowCell",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1063
                          "shift ENTER", "selectPreviousRowCell",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1064
                               "ctrl A", "selectAll",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1065
                           "ctrl SLASH", "selectAll",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1066
                      "ctrl BACK_SLASH", "clearSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1067
                               "ESCAPE", "cancel",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1068
                                   "F2", "startEditing",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1069
                                "SPACE", "addToSelection",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1070
                           "ctrl SPACE", "toggleAndAnchor",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1071
                          "shift SPACE", "extendTo",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1072
                     "ctrl shift SPACE", "moveSelectionTo",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1073
                                   "F8", "focusHeader"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1074
                 }),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1075
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1076
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1077
            "FormattedTextField.focusInputMap",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1078
              new UIDefaults.LazyInputMap(new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1079
                           "ctrl C", DefaultEditorKit.copyAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1080
                           "ctrl V", DefaultEditorKit.pasteAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1081
                           "ctrl X", DefaultEditorKit.cutAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1082
                             "COPY", DefaultEditorKit.copyAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1083
                            "PASTE", DefaultEditorKit.pasteAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1084
                              "CUT", DefaultEditorKit.cutAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1085
                       "shift LEFT", DefaultEditorKit.selectionBackwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1086
                    "shift KP_LEFT", DefaultEditorKit.selectionBackwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1087
                      "shift RIGHT", DefaultEditorKit.selectionForwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1088
                   "shift KP_RIGHT", DefaultEditorKit.selectionForwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1089
                        "ctrl LEFT", DefaultEditorKit.previousWordAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1090
                     "ctrl KP_LEFT", DefaultEditorKit.previousWordAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1091
                       "ctrl RIGHT", DefaultEditorKit.nextWordAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1092
                    "ctrl KP_RIGHT", DefaultEditorKit.nextWordAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1093
                  "ctrl shift LEFT", DefaultEditorKit.selectionPreviousWordAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1094
               "ctrl shift KP_LEFT", DefaultEditorKit.selectionPreviousWordAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1095
                 "ctrl shift RIGHT", DefaultEditorKit.selectionNextWordAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1096
              "ctrl shift KP_RIGHT", DefaultEditorKit.selectionNextWordAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1097
                           "ctrl A", DefaultEditorKit.selectAllAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1098
                             "HOME", DefaultEditorKit.beginLineAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1099
                              "END", DefaultEditorKit.endLineAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1100
                       "shift HOME", DefaultEditorKit.selectionBeginLineAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1101
                        "shift END", DefaultEditorKit.selectionEndLineAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1102
                       "BACK_SPACE", DefaultEditorKit.deletePrevCharAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1103
                 "shift BACK_SPACE", DefaultEditorKit.deletePrevCharAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1104
                           "ctrl H", DefaultEditorKit.deletePrevCharAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1105
                           "DELETE", DefaultEditorKit.deleteNextCharAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1106
                      "ctrl DELETE", DefaultEditorKit.deleteNextWordAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1107
                  "ctrl BACK_SPACE", DefaultEditorKit.deletePrevWordAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1108
                            "RIGHT", DefaultEditorKit.forwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1109
                             "LEFT", DefaultEditorKit.backwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1110
                         "KP_RIGHT", DefaultEditorKit.forwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1111
                          "KP_LEFT", DefaultEditorKit.backwardAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1112
                            "ENTER", JTextField.notifyAction,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1113
                  "ctrl BACK_SLASH", "unselect",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1114
                   "control shift O", "toggle-componentOrientation",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1115
                           "ESCAPE", "reset-field-edit",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1116
                               "UP", "increment",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1117
                            "KP_UP", "increment",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1118
                             "DOWN", "decrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1119
                          "KP_DOWN", "decrement",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1120
              }),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1121
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1122
            // ToolBar.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1123
            "ToolBar.ancestorInputMap",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1124
               new UIDefaults.LazyInputMap(new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1125
                        "UP", "navigateUp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1126
                     "KP_UP", "navigateUp",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1127
                      "DOWN", "navigateDown",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1128
                   "KP_DOWN", "navigateDown",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1129
                      "LEFT", "navigateLeft",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1130
                   "KP_LEFT", "navigateLeft",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1131
                     "RIGHT", "navigateRight",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1132
                  "KP_RIGHT", "navigateRight"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1133
                 }),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1134
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1135
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1136
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1137
            "ComboBox.control", table.get("control"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1138
            "ComboBox.controlForeground", black,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1139
            "ComboBox.background", table.get("window"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1140
            "ComboBox.foreground", black,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1141
            "ComboBox.border", comboBoxBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1142
            "ComboBox.selectionBackground", black,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1143
            "ComboBox.selectionForeground", table.get("text"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1144
            "ComboBox.disabledBackground", table.get("control"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1145
            "ComboBox.disabledForeground", table.get("textInactiveText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1146
            "ComboBox.font", dialogPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1147
            "ComboBox.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1148
                   "ESCAPE", "hidePopup",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1149
                  "PAGE_UP", "pageUpPassThrough",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1150
                "PAGE_DOWN", "pageDownPassThrough",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1151
                     "HOME", "homePassThrough",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1152
                      "END", "endPassThrough",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1153
                     "DOWN", "selectNext",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1154
                  "KP_DOWN", "selectNext",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1155
                       "UP", "selectPrevious",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1156
                    "KP_UP", "selectPrevious",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1157
                    "SPACE", "spacePopup",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1158
                    "ENTER", "enterPressed"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1159
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1160
              }),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1161
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1162
            "TextField.caretForeground", black,
438
2ae294e4518c 6613529: Avoid duplicate object creation within JDK packages
dav
parents: 2
diff changeset
  1163
            "TextField.caretBlinkRate", Integer.valueOf(500),
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1164
            "TextField.inactiveForeground", table.get("textInactiveText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1165
            "TextField.selectionBackground", table.get("textHighlight"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1166
            "TextField.selectionForeground", table.get("textHighlightText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1167
            "TextField.background", table.get("window"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1168
            "TextField.foreground", table.get("textText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1169
            "TextField.font", sansSerifPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1170
            "TextField.border", textFieldBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1171
            "TextField.focusInputMap", fieldInputMap,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1172
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1173
            "PasswordField.caretForeground", black,
438
2ae294e4518c 6613529: Avoid duplicate object creation within JDK packages
dav
parents: 2
diff changeset
  1174
            "PasswordField.caretBlinkRate", Integer.valueOf(500),
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1175
            "PasswordField.inactiveForeground", table.get("textInactiveText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1176
            "PasswordField.selectionBackground", table.get("textHighlight"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1177
            "PasswordField.selectionForeground", table.get("textHighlightText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1178
            "PasswordField.background", table.get("window"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1179
            "PasswordField.foreground", table.get("textText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1180
            "PasswordField.font", monospacedPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1181
            "PasswordField.border", textFieldBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1182
            "PasswordField.focusInputMap", passwordInputMap,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1183
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1184
            "TextArea.caretForeground", black,
438
2ae294e4518c 6613529: Avoid duplicate object creation within JDK packages
dav
parents: 2
diff changeset
  1185
            "TextArea.caretBlinkRate", Integer.valueOf(500),
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1186
            "TextArea.inactiveForeground", table.get("textInactiveText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1187
            "TextArea.selectionBackground", table.get("textHighlight"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1188
            "TextArea.selectionForeground", table.get("textHighlightText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1189
            "TextArea.background", table.get("window"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1190
            "TextArea.foreground", table.get("textText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1191
            "TextArea.font", monospacedPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1192
            "TextArea.border", marginBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1193
            "TextArea.focusInputMap", multilineInputMap,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1194
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1195
            "TextPane.caretForeground", black,
438
2ae294e4518c 6613529: Avoid duplicate object creation within JDK packages
dav
parents: 2
diff changeset
  1196
            "TextPane.caretBlinkRate", Integer.valueOf(500),
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1197
            "TextPane.inactiveForeground", table.get("textInactiveText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1198
            "TextPane.selectionBackground", lightGray,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1199
            "TextPane.selectionForeground", table.get("textHighlightText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1200
            "TextPane.background", white,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1201
            "TextPane.foreground", table.get("textText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1202
            "TextPane.font", serifPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1203
            "TextPane.border", marginBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1204
            "TextPane.focusInputMap", multilineInputMap,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1205
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1206
            "EditorPane.caretForeground", red,
438
2ae294e4518c 6613529: Avoid duplicate object creation within JDK packages
dav
parents: 2
diff changeset
  1207
            "EditorPane.caretBlinkRate", Integer.valueOf(500),
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1208
            "EditorPane.inactiveForeground", table.get("textInactiveText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1209
            "EditorPane.selectionBackground", lightGray,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1210
            "EditorPane.selectionForeground", table.get("textHighlightText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1211
            "EditorPane.background", white,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1212
            "EditorPane.foreground", table.get("textText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1213
            "EditorPane.font", serifPlain12,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1214
            "EditorPane.border", marginBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1215
            "EditorPane.focusInputMap", multilineInputMap,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1216
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1217
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1218
            "FileChooser.pathLabelMnemonic", new Integer(KeyEvent.VK_P), // 'p'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1219
            "FileChooser.filterLabelMnemonic", new Integer (KeyEvent.VK_R), // 'r'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1220
            "FileChooser.foldersLabelMnemonic", new Integer (KeyEvent.VK_L), // 'l'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1221
            "FileChooser.filesLabelMnemonic", new Integer (KeyEvent.VK_I), // 'i'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1222
            "FileChooser.enterFileNameLabelMnemonic", new Integer (KeyEvent.VK_N), // 'n'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1223
            "FileChooser.ancestorInputMap",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1224
               new UIDefaults.LazyInputMap(new Object[] {
680
eaff686e34f7 5035693: "Open" button should be a default one in JFileChooser under Windows XP LAF
rupashka
parents: 467
diff changeset
  1225
                     "ESCAPE", "cancelSelection"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1226
                 }),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1227
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1228
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1229
            "ToolTip.border", raisedBevelBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1230
            "ToolTip.background", table.get("info"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1231
            "ToolTip.foreground", table.get("infoText"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1232
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1233
            // These window InputMap bindings are used when the Menu is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1234
            // selected.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1235
            "PopupMenu.selectedWindowInputMapBindings", new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1236
                  "ESCAPE", "cancel",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1237
                     "TAB", "cancel",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1238
               "shift TAB", "cancel",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1239
                    "DOWN", "selectNext",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1240
                 "KP_DOWN", "selectNext",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1241
                      "UP", "selectPrevious",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1242
                   "KP_UP", "selectPrevious",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1243
                    "LEFT", "selectParent",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1244
                 "KP_LEFT", "selectParent",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1245
                   "RIGHT", "selectChild",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1246
                "KP_RIGHT", "selectChild",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1247
                   "ENTER", "return",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1248
                   "SPACE", "return"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1249
            },
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1250
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1251
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1252
            "OptionPane.border", optionPaneBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1253
            "OptionPane.messageAreaBorder", optionPaneMessageAreaBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1254
            "OptionPane.buttonAreaBorder", optionPaneButtonAreaBorder,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1255
            "OptionPane.errorIcon", SwingUtilities2.makeIcon(getClass(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1256
                                                             MotifLookAndFeel.class,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1257
                                                             "icons/Error.gif"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1258
            "OptionPane.informationIcon", SwingUtilities2.makeIcon(getClass(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1259
                                                                   MotifLookAndFeel.class,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1260
                                                                   "icons/Inform.gif"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1261
            "OptionPane.warningIcon", SwingUtilities2.makeIcon(getClass(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1262
                                                               MotifLookAndFeel.class,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1263
                                                               "icons/Warn.gif"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1264
            "OptionPane.questionIcon", SwingUtilities2.makeIcon(getClass(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1265
                                                                MotifLookAndFeel.class,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1266
                                                                "icons/Question.gif"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1267
            "OptionPane.windowBindings", new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1268
                "ESCAPE", "close" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1269
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1270
            // These bindings are only enabled when there is a default
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1271
            // button set on the rootpane.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1272
            "RootPane.defaultButtonWindowKeyBindings", new Object[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1273
                             "ENTER", "press",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1274
                    "released ENTER", "release",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1275
                        "ctrl ENTER", "press",
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1276
               "ctrl released ENTER", "release"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1277
              },
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1278
        };
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1279
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1280
        table.putDefaults(defaults);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1281
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1282
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1283
}