JDK-4442981 : Resizing JFileChooser: Does not have a minimum limit
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0,1.4.1,1.4.2_01,1.4.2_02
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic,linux_sun,windows_xp
  • CPU: generic,x86
  • Submitted: 2001-04-12
  • Updated: 2021-07-13
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Description
In the Windows applications, the FileChoosers cannot be minimized beyond a reasonable viewing area. But JFileChooser allows zero minimum size.
Also, a cosmetic stuff, there are 3 diagonal lines at the right bottom corner of a FileChooser to indicate that they indeed are resizable which is missing in JFileChooser implementation.

Build tested: Merlin b60

Sample code: used FileChooserDemo that came with the latest build.

Name: rmT116609			Date: 08/03/2001


java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)

A feature that could improve the Win32 (Windows 2000/Me) JFileChooser is to put
the Outlook-style nav-bar on the left of native JFileChoosers inside a
JScrollPane.  As it is now, if the dialog containing the JFileChooser is
resized, the icons will becom hidden and distored. For an example of the
current JFileChooser, see here:
http://www.murtos.com/normal.png

Now for when the dialog has been resized, please see here:
http://murtos.com/normals.png
As you can see, the icon to the left is partly hidden and distored.  If you add
place the panel to the left inside a JFileChooser, it would look much nicer.
This way, when the JFileChooser's size is decreased, JScrollBars
will appear; thus adding a GUI enhancement for end-users.  For an example of a
JFileChooser with a JScrollPane component, please see here:
http://murtos.com/shrunk.png

The above screenshot was not coded, it was created via MS Paint.
(Review ID: 129319)
======================================================================

Comments
EVALUATION Part one needs an added minimum size. Part two is an issue with L&F for dialogs. leif.samuelsson@Eng 2001-05-18 Name: keR10081 Date: 06/04/2002 There is an rfe (4450706) for the ability to set minimum size of the window. Until that is done, we cannot fix this bug. ###@###.### ======================================================================
25-09-2004