< prev index next >

src/share/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java

Print this page
rev 1495 : 7024118: possible hardcoded mnemonic for JFileChooser metal and motif l&f
Reviewed-by: rupashka


 797             "FileChooser.listFont", IconFont,
 798             "FileChooser.listViewBackground", new XPColorValue(Part.LVP_LISTVIEW, null, Prop.FILLCOLOR,
 799                                                                WindowBackgroundColor),
 800             "FileChooser.listViewBorder", new XPBorderValue(Part.LVP_LISTVIEW,
 801                                                   new SwingLazyValue(
 802                                                         "javax.swing.plaf.BorderUIResource",
 803                                                         "getLoweredBevelBorderUIResource")),
 804             "FileChooser.listViewIcon",    new LazyWindowsIcon("fileChooserIcon ListView",
 805                                                                "icons/ListView.gif"),
 806             "FileChooser.listViewWindowsStyle", Boolean.TRUE,
 807             "FileChooser.detailsViewIcon", new LazyWindowsIcon("fileChooserIcon DetailsView",
 808                                                                "icons/DetailsView.gif"),
 809             "FileChooser.viewMenuIcon", new LazyWindowsIcon("fileChooserIcon ViewMenu",
 810                                                             "icons/ListView.gif"),
 811             "FileChooser.upFolderIcon",    new LazyWindowsIcon("fileChooserIcon UpFolder",
 812                                                                "icons/UpFolder.gif"),
 813             "FileChooser.newFolderIcon",   new LazyWindowsIcon("fileChooserIcon NewFolder",
 814                                                                "icons/NewFolder.gif"),
 815             "FileChooser.useSystemExtensionHiding", Boolean.TRUE,
 816 
 817             "FileChooser.lookInLabelMnemonic", new Integer(KeyEvent.VK_I),
 818             "FileChooser.fileNameLabelMnemonic", new Integer(KeyEvent.VK_N),
 819             "FileChooser.filesOfTypeLabelMnemonic", new Integer(KeyEvent.VK_T),
 820             "FileChooser.usesSingleFilePane", Boolean.TRUE,
 821             "FileChooser.noPlacesBar", new DesktopProperty("win.comdlg.noPlacesBar",
 822                                                            Boolean.FALSE, toolkit),
 823             "FileChooser.ancestorInputMap",
 824                new UIDefaults.LazyInputMap(new Object[] {
 825                      "ESCAPE", "cancelSelection",
 826                      "F2", "editFileName",
 827                      "F5", "refresh",
 828                      "BACK_SPACE", "Go Up",
 829                      "ENTER", "approveSelection",
 830                 "ctrl ENTER", "approveSelection"
 831                  }),
 832 
 833             "FileView.directoryIcon", SwingUtilities2.makeIcon(getClass(),
 834                                                                WindowsLookAndFeel.class,
 835                                                                "icons/Directory.gif"),
 836             "FileView.fileIcon", SwingUtilities2.makeIcon(getClass(),
 837                                                           WindowsLookAndFeel.class,
 838                                                           "icons/File.gif"),
 839             "FileView.computerIcon", SwingUtilities2.makeIcon(getClass(),




 797             "FileChooser.listFont", IconFont,
 798             "FileChooser.listViewBackground", new XPColorValue(Part.LVP_LISTVIEW, null, Prop.FILLCOLOR,
 799                                                                WindowBackgroundColor),
 800             "FileChooser.listViewBorder", new XPBorderValue(Part.LVP_LISTVIEW,
 801                                                   new SwingLazyValue(
 802                                                         "javax.swing.plaf.BorderUIResource",
 803                                                         "getLoweredBevelBorderUIResource")),
 804             "FileChooser.listViewIcon",    new LazyWindowsIcon("fileChooserIcon ListView",
 805                                                                "icons/ListView.gif"),
 806             "FileChooser.listViewWindowsStyle", Boolean.TRUE,
 807             "FileChooser.detailsViewIcon", new LazyWindowsIcon("fileChooserIcon DetailsView",
 808                                                                "icons/DetailsView.gif"),
 809             "FileChooser.viewMenuIcon", new LazyWindowsIcon("fileChooserIcon ViewMenu",
 810                                                             "icons/ListView.gif"),
 811             "FileChooser.upFolderIcon",    new LazyWindowsIcon("fileChooserIcon UpFolder",
 812                                                                "icons/UpFolder.gif"),
 813             "FileChooser.newFolderIcon",   new LazyWindowsIcon("fileChooserIcon NewFolder",
 814                                                                "icons/NewFolder.gif"),
 815             "FileChooser.useSystemExtensionHiding", Boolean.TRUE,
 816 



 817             "FileChooser.usesSingleFilePane", Boolean.TRUE,
 818             "FileChooser.noPlacesBar", new DesktopProperty("win.comdlg.noPlacesBar",
 819                                                            Boolean.FALSE, toolkit),
 820             "FileChooser.ancestorInputMap",
 821                new UIDefaults.LazyInputMap(new Object[] {
 822                      "ESCAPE", "cancelSelection",
 823                      "F2", "editFileName",
 824                      "F5", "refresh",
 825                      "BACK_SPACE", "Go Up",
 826                      "ENTER", "approveSelection",
 827                 "ctrl ENTER", "approveSelection"
 828                  }),
 829 
 830             "FileView.directoryIcon", SwingUtilities2.makeIcon(getClass(),
 831                                                                WindowsLookAndFeel.class,
 832                                                                "icons/Directory.gif"),
 833             "FileView.fileIcon", SwingUtilities2.makeIcon(getClass(),
 834                                                           WindowsLookAndFeel.class,
 835                                                           "icons/File.gif"),
 836             "FileView.computerIcon", SwingUtilities2.makeIcon(getClass(),


< prev index next >