< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java

Print this page

        

@@ -560,12 +560,12 @@
     }
 
     /**
      * Creates a selection listener for the list of files and directories.
      *
-     * @param fc a <code>JFileChooser</code>
-     * @return a <code>ListSelectionListener</code>
+     * @param fc a {@code JFileChooser}
+     * @return a {@code ListSelectionListener}
      */
     public ListSelectionListener createListSelectionListener(JFileChooser fc) {
         return super.createListSelectionListener(fc);
     }
 

@@ -605,18 +605,18 @@
         super.uninstallUI(c);
     }
 
     /**
      * Returns the preferred size of the specified
-     * <code>JFileChooser</code>.
+     * {@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</code>
-     * @return   a <code>Dimension</code> specifying the preferred
+     * @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,26 +628,26 @@
             return new Dimension(prefWidth, PREF_SIZE.height);
         }
     }
 
     /**
-     * Returns the minimum size of the <code>JFileChooser</code>.
+     * Returns the minimum size of the {@code JFileChooser}.
      *
-     * @param c  a <code>JFileChooser</code>
-     * @return   a <code>Dimension</code> specifying the minimum
+     * @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</code>.
+     * Returns the maximum size of the {@code JFileChooser}.
      *
-     * @param c  a <code>JFileChooser</code>
-     * @return   a <code>Dimension</code> specifying the maximum
+     * @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,12 +1270,12 @@
         return approveButton;
     }
 
 
     /**
-     * <code>ButtonAreaLayout</code> behaves in a similar manner to
-     * <code>FlowLayout</code>. It lays out all components from left to
+     * {@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 >