< prev index next >
src/java.desktop/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java
Print this page
*** 560,571 ****
}
/**
* 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);
}
--- 560,571 ----
}
/**
* 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);
}
*** 605,622 ****
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;
--- 605,622 ----
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;
*** 628,653 ****
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);
--- 628,653 ----
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);
*** 1270,1281 ****
return approveButton;
}
/**
! * <code>ButtonAreaLayout</code> behaves in a similar manner to
! * <code>FlowLayout</code>. It lays out all components from left to
* right, flushed right. The widths of all components will be set
* to the largest preferred size width.
*/
private static class ButtonAreaLayout implements LayoutManager {
private int hGap = 5;
--- 1270,1281 ----
return approveButton;
}
/**
! * {@code ButtonAreaLayout} behaves in a similar manner to
! * {@code FlowLayout}. It lays out all components from left to
* right, flushed right. The widths of all components will be set
* to the largest preferred size width.
*/
private static class ButtonAreaLayout implements LayoutManager {
private int hGap = 5;
< prev index next >