Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4399690

JFileChooser preferred size does not consider accessory size

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.3.0
    • client-libs
    • beta
    • generic
    • generic



      Name: krC82822 Date: 12/20/2000


      20 Dec 2000, eval1127@eng -- see also # 4150038.
      -----------
      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      The JFileChooser preferred size and mimimum size are fixed,
      even if a large accessory is added. For example:

      import javax.swing.*;
      import java.awt.Dimension;

         public class BigAccessory {
         
            public static void main(String args[]) {
               JFileChooser fc = new JFileChooser();
               JPanel accessory = new JPanel();
               accessory.setPreferredSize(new Dimension(400, 600));
               accessory.setMinimumSize(new Dimension(400, 600));
               fc.setAccessory(accessory);
               fc.showDialog(null, "Test");
            }
         
         }
      (Review ID: 111654)
      ======================================================================

            leifs Leif Samuelsson (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: