< prev index next >

src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsFileChooserUI.java

Print this page

        

*** 587,598 **** } /** * Creates a selection listener for the list of files and directories. * ! * @param fc a <code>JFileChooser</code> ! * @return a <code>ListSelectionListener</code> */ public ListSelectionListener createListSelectionListener(JFileChooser fc) { return super.createListSelectionListener(fc); } --- 587,598 ---- } /** * Creates a selection listener for the list of files and directories. * ! * @param fc a {@code JFileChooser} ! * @return a {@code ListSelectionListener} */ public ListSelectionListener createListSelectionListener(JFileChooser fc) { return super.createListSelectionListener(fc); }
*** 629,646 **** super.uninstallUI(c); } /** * Returns the preferred size of the specified ! * <code>JFileChooser</code>. * The preferred size is at least as large, * in both height and width, * as the preferred size recommended * by the file chooser's layout manager. * ! * @param c a <code>JFileChooser</code> ! * @return a <code>Dimension</code> specifying the preferred * width and height of the file chooser */ @Override public Dimension getPreferredSize(JComponent c) { int prefWidth = PREF_SIZE.width; --- 629,646 ---- super.uninstallUI(c); } /** * Returns the preferred size of the specified ! * {@code JFileChooser}. * The preferred size is at least as large, * in both height and width, * as the preferred size recommended * by the file chooser's layout manager. * ! * @param c a {@code JFileChooser} ! * @return a {@code Dimension} specifying the preferred * width and height of the file chooser */ @Override public Dimension getPreferredSize(JComponent c) { int prefWidth = PREF_SIZE.width;
*** 652,677 **** return new Dimension(prefWidth, PREF_SIZE.height); } } /** ! * Returns the minimum size of the <code>JFileChooser</code>. * ! * @param c a <code>JFileChooser</code> ! * @return a <code>Dimension</code> specifying the minimum * width and height of the file chooser */ @Override public Dimension getMinimumSize(JComponent c) { return new Dimension(MIN_WIDTH, MIN_HEIGHT); } /** ! * Returns the maximum size of the <code>JFileChooser</code>. * ! * @param c a <code>JFileChooser</code> ! * @return a <code>Dimension</code> specifying the maximum * width and height of the file chooser */ @Override public Dimension getMaximumSize(JComponent c) { return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); --- 652,677 ---- return new Dimension(prefWidth, PREF_SIZE.height); } } /** ! * Returns the minimum size of the {@code JFileChooser}. * ! * @param c a {@code JFileChooser} ! * @return a {@code Dimension} specifying the minimum * width and height of the file chooser */ @Override public Dimension getMinimumSize(JComponent c) { return new Dimension(MIN_WIDTH, MIN_HEIGHT); } /** ! * Returns the maximum size of the {@code JFileChooser}. * ! * @param c a {@code JFileChooser} ! * @return a {@code Dimension} specifying the maximum * width and height of the file chooser */ @Override public Dimension getMaximumSize(JComponent c) { return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE);
< prev index next >