Searched defs:chooser (Results 1 - 19 of 19) sorted by relevance

/openjdk7/jdk/test/javax/swing/JColorChooser/
H A DTest4222508.java27 * @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 DTest6348456.java46 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 DTest4165217.java42 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 DTest4177735.java41 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 DTest6199676.java79 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 Dbug6489130.java39 private final JFileChooser chooser = new JFileChooser(); field in class:bug6489130
50 chooser.showOpenDialog(null);
/openjdk7/jdk/test/javax/swing/JFileChooser/6520101/
H A Dbug6520101.java80 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 DTwentyThousandTest.java129 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 DAbstractColorChooserPanel.java35 * 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 DcollectionSetChooser.hpp53 // 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 DBasicColorChooserUI.java54 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 DJColorChooser.java52 * <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 DFileChooserDemo.java94 * 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 DSynthFileChooserUIImpl.java743 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 DMetalFileChooserUI.java562 * 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 DWindowsFileChooserUI.java392 // 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 DGTKFileChooserUI.java425 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 DFilePane.java688 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 DAquaFileChooserUI.java561 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...]

Completed in 98 milliseconds