/openjdk7/jdk/test/javax/swing/JColorChooser/ |
H A D | Test4222508.java | 27 * @summary Tests the color chooser disabling 42 private JColorChooser chooser; field in class:Test4222508 46 this.chooser = new JColorChooser(); 47 this.checkbox = new JCheckBox("Enable the color chooser below", true); 50 add(BorderLayout.CENTER, this.chooser); 54 this.chooser.setEnabled(this.checkbox.isSelected());
|
H A D | Test6348456.java | 46 private JColorChooser chooser; field in class:Test6348456 53 this.chooser = new JColorChooser(Color.RED); 54 this.chooser.setSelectionModel(WHITE); 57 add(BorderLayout.CENTER, this.chooser); 61 this.chooser.setSelectionModel(this.chooser.getSelectionModel() == BLACK ? WHITE : BLACK);
|
H A D | Test4165217.java | 42 JColorChooser chooser = new JColorChooser(); 43 chooser.setColor(new Color(new Random().nextInt())); 45 Color before = chooser.getColor(); 46 Color after = copy(chooser).getColor(); 53 private static JColorChooser copy(JColorChooser chooser) { argument 55 return (JColorChooser) deserialize(serialize(chooser));
|
H A D | Test4177735.java | 41 JColorChooser chooser = new JColorChooser(); 42 AbstractColorChooserPanel[] panels = chooser.getChooserPanels(); 43 chooser.setChooserPanels(new AbstractColorChooserPanel[] { panels[1] }); 45 JDialog dialog = show(chooser); 58 static JDialog show(JColorChooser chooser) { argument 59 JDialog dialog = JColorChooser.createDialog(null, null, false, chooser, null, null);
|
H A D | Test6199676.java | 79 private JColorChooser chooser; field in class:Test6199676 82 if (this.chooser == null) { 83 this.chooser = new JColorChooser(); 86 frame.add(this.chooser); 90 if (isShowing(this.chooser.getPreviewPanel())) { 96 Component component = this.chooser.getPreviewPanel(); 98 component = getPreview(this.chooser); 104 this.chooser.setPreviewPanel(new JPanel()); 114 SwingUtilities.updateComponentTreeUI(this.chooser);
|
/openjdk7/jdk/test/javax/swing/JFileChooser/6489130/ |
H A D | bug6489130.java | 39 private final JFileChooser chooser = new JFileChooser(); field in class:bug6489130 50 chooser.showOpenDialog(null);
|
/openjdk7/jdk/test/javax/swing/JFileChooser/6520101/ |
H A D | bug6520101.java | 80 private final JFileChooser chooser; field in class:bug6520101 82 bug6520101(JFileChooser chooser) { argument 83 this.chooser = chooser; 87 while (!this.chooser.isShowing()) { 97 chooser.cancelSelection();
|
/openjdk7/jdk/test/javax/swing/JFileChooser/6396844/ |
H A D | TwentyThousandTest.java | 129 private final JFileChooser chooser; field in class:TwentyThousandTest 131 TwentyThousandTest( JFileChooser chooser ) { 132 this.chooser = chooser; 136 while ( !this.chooser.isShowing() ) { 149 this.chooser.cancelSelection();
|
/openjdk7/jdk/src/share/classes/javax/swing/colorchooser/ |
H A D | AbstractColorChooserPanel.java | 35 * a new color chooser panel into a <code>JColorChooser</code>, subclass 64 private JColorChooser chooser; field in class:AbstractColorChooserPanel 69 * you to set up the initial state of your chooser. 75 * Builds a new chooser panel. 145 * Invoked when the panel is added to the chooser. 148 * @exception RuntimeException if the chooser panel has already been 152 if (chooser != null) { 153 throw new RuntimeException ("This chooser panel is already installed"); 155 chooser = enclosingChooser; 156 chooser [all...] |
/openjdk7/hotspot/src/share/vm/gc_implementation/g1/ |
H A D | collectionSetChooser.hpp | 53 // The number of candidate old regions added to the CSet chooser. 63 // be added to the CSet chooser and will not be a candidate for 67 // The sum of reclaimable bytes over all the regions in the CSet chooser. 73 // collection without removing it from the CSet chooser. 85 // Remove the given region from the CSet chooser and move to the 87 // in the CSet chooser. 105 // Determine whether to add the given region to the CSet chooser or 141 // Determine whether the CSet chooser has more candidate regions or not. 145 // all the candidate regions in the CSet chooser. 164 CSetChooserParUpdater(CollectionSetChooser* chooser, argument [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/ |
H A D | BasicColorChooserUI.java | 54 protected JColorChooser chooser; field in class:BasicColorChooserUI 80 AbstractColorChooserPanel[] choosers = chooser.getChooserPanels(); 82 chooser.removeChooserPanel( choosers[i] ); 87 chooser = (JColorChooser)c; 102 chooser.setLayout( new BorderLayout() ); 105 chooser.setChooserPanels(defaultChoosers); 110 if (DefaultLookup.getBoolean(chooser, this, 113 "ColorChooser.previewText", chooser.getLocale()); 119 chooser.applyComponentOrientation(c.getComponentOrientation()); 123 chooser [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/ |
H A D | JColorChooser.java | 52 * <li>A static convenience method which shows a modal color-chooser 54 * <li>A static convenience method for creating a color-chooser dialog 119 * Shows a modal color-chooser dialog and blocks until the 128 * @param initialColor the initial Color set when the color-chooser is shown 156 * button is pressed, the color-chooser's color will be reset to the 164 * @param chooserPane the color-chooser to be placed inside the dialog 167 * @return a new dialog containing the color-chooser pane 190 * Creates a color chooser pane with an initial color of white. 197 * Creates a color chooser pane with the specified initial color. 199 * @param initialColor the initial color set in the chooser 749 JColorChooser chooser; field in class:ColorTracker [all...] |
/openjdk7/jdk/src/share/demo/jfc/FileChooserDemo/ |
H A D | FileChooserDemo.java | 94 * A demo which makes extensive use of the file chooser. 152 private final JFileChooser chooser; field in class:FileChooserDemo 177 chooser = new JFileChooser(); 178 previewer = new FilePreviewer(chooser); 262 // File or Directory chooser options 425 chooser.setApproveButtonText(customField.getText()); 427 if (chooser.isMultiSelectionEnabled()) { 428 chooser.setSelectedFiles(null); 430 chooser.setSelectedFile(null); 432 // clear the preview from the previous display of the chooser [all...] |
/openjdk7/jdk/src/share/classes/sun/swing/plaf/synth/ |
H A D | SynthFileChooserUIImpl.java | 743 JFileChooser chooser = getFileChooser(); field in class:SynthFileChooserUIImpl.DirectoryComboBoxModel 744 FileSystemView fsv = chooser.getFileSystemView(); 766 boolean useShellFolder = FilePane.usesShellFolder(chooser);
|
/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/ |
H A D | MetalFileChooserUI.java | 562 * by the file chooser's layout manager. 566 * width and height of the file chooser 584 * width and height of the file chooser 595 * width and height of the file chooser 710 JFileChooser chooser = getFileChooser(); 711 approveButton.setText(getApproveButtonText(chooser)); 712 approveButton.setToolTipText(getApproveButtonToolTipText(chooser)); 716 JFileChooser chooser = getFileChooser(); 717 approveButton.setText(getApproveButtonText(chooser)); 718 approveButton.setToolTipText(getApproveButtonToolTipText(chooser)); 917 JFileChooser chooser = getFileChooser(); field in class:MetalFileChooserUI.DirectoryComboBoxModel [all...] |
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/windows/ |
H A D | WindowsFileChooserUI.java | 392 // Add the bottom panel to file chooser 628 * by the file chooser's layout manager. 632 * width and height of the file chooser 650 * width and height of the file chooser 661 * width and height of the file chooser 776 JFileChooser chooser = getFileChooser(); 777 approveButton.setText(getApproveButtonText(chooser)); 778 approveButton.setToolTipText(getApproveButtonToolTipText(chooser)); 779 approveButton.setMnemonic(getApproveButtonMnemonic(chooser)); 783 JFileChooser chooser 1043 JFileChooser chooser = getFileChooser(); field in class:WindowsFileChooserUI.DirectoryComboBoxModel [all...] |
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/ |
H A D | GTKFileChooserUI.java | 425 JFileChooser chooser = getFileChooser(); 428 if (chooser.isMultiSelectionEnabled()) { 434 && chooser.isTraversable(((File)objects[0])) 435 && (chooser.getFileSelectionMode() != chooser.DIRECTORIES_ONLY 436 || !chooser.getFileSystemView().isFileSystem(((File)objects[0])))) { 443 if ((chooser.isFileSelectionEnabled() && f.isFile()) 444 || (chooser.isDirectorySelectionEnabled() && f.isDirectory())) { 454 chooser.setSelectedFiles(files); 459 && chooser 1090 JFileChooser chooser = getFileChooser(); field in class:GTKFileChooserUI.DirectoryComboBoxModel [all...] |
/openjdk7/jdk/src/share/classes/sun/swing/ |
H A D | FilePane.java | 688 JFileChooser chooser; field in class:FilePane.DetailsTableModel 695 this.chooser = fc; 703 File dir = chooser.getCurrentDirectory(); 704 if (dir != null && usesShellFolder(chooser)) { 763 // Use (f.exists() && !chooser.getFileSystemView().isFileSystemRoot(f)) to 776 final JFileChooser chooser = getFileChooser(); 779 String oldDisplayName = chooser.getName(f); 794 FileSystemView fsv = chooser.getFileSystemView(); 797 JOptionPane.showMessageDialog(chooser, MessageFormat.format(renameErrorFileExistsText, 801 if (fsv.isParent(chooser 1030 JFileChooser chooser; field in class:FilePane.DetailsTableCellRenderer 1033 DetailsTableCellRenderer(JFileChooser chooser) argument 2002 usesShellFolder(JFileChooser chooser) argument [all...] |
/openjdk7/jdk/src/macosx/classes/com/apple/laf/ |
H A D | AquaFileChooserUI.java | 561 final JFileChooser chooser = getFileChooser(); 562 boolean isSave = (chooser.getDialogType() == JFileChooser.SAVE_DIALOG); 569 if (!isSave && chooser.isMultiSelectionEnabled()) { 576 if (isSelectableForMode(chooser, (File)fFileList.getValueAt(element, 0))) selectableCount++; 583 if (isSelectableForMode(chooser, f)) { 590 chooser.setSelectedFiles(files); 592 chooser.setSelectedFiles(null); 595 chooser.setSelectedFiles(null); 596 chooser.setSelectedFile(f); 1134 final JFileChooser chooser 1591 updateApproveButton(final JFileChooser chooser) argument [all...] |