JDK-4913185 : In GTK, JFileChooser's component alignments and spacing is unlike the native
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.2_01,1.4.2_02
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: linux,linux_sun
  • CPU: x86
  • Submitted: 2003-08-27
  • Updated: 2022-11-28
Related Reports
Duplicate :  
Relates :  
Description
In GTK LAF , JFileChooser's component alignments and spacing is unlike the native mercury. 
1) The vertical scrollbar for Folder List in JFileChooser start below the Title Label 'Folder' unlike Native File Dialog.
2) The Title Label of 'Folder' and 'File' is outside the JList, unlike the Native File Dialog. 
3) The width of 'Folder' and 'File' list box is not same, unlike the Native FileDialog. 
4) The size of buttons 'New Folder', 'Delete File' and 'Rename File' and the spacing is unlike the Native file dialog. 
5) 'Cancel' and 'Ok' Button are not of same size unlike the native File Dialog. 
6) Space between the 'OK' button and the right and bottom decoration is unlike the native filedialog.

Comments
EVALUATION Name: omR10226 Date: 09/18/2003 Indeed, there a lot of differences. 1, 2) JScrollPane doesn't allow to avoid it so possibly we shouldn't use JScrollPane. 3, 4, 5, 6) Sizes and spacings should be corrected. ====================================================================== Name: anR10225 Date: 10/31/2003 > 1) The vertical scrollbar for Folder List in JFileChooser start > below the Title Label 'Folder' unlike Native File Dialog. > 2) The Title Label of 'Folder' and 'File' is outside the JList, > unlike the Native File Dialog. The custom JScrollPane and ScrollPaneLayout should be used. > 3) The width of 'Folder' and 'File' list box is not same, unlike > the Native FileDialog. Divider should be strictly at the middle of the split pane. > 4) The size of buttons 'New Folder', 'Delete File' and 'Rename File' > and the spacing is unlike the Native file dialog. The top buttons should have the following margins for better similarity : (1, 3, 1, 3) (top, left, bottom, right) All buttons should has property 'defaultCapable' set to false to get rid of spacing between buttons. The offset of the first button ('New Folder') from the top-left corner of the dialog content pane should be (12, 10) They also should be aligned by width as native. > 5) 'Cancel' and 'Ok' Button are not of same size unlike the native > File Dialog. The buttons should have the following margins for better view : (1,7,1,7) and should be aligned by width. > 6) Space between the 'OK' button and the right and bottom decoration is > unlike the native filedialog. Space between OK and right decoration and between OK and the bottom should be both 17 pixels. The gap between OK and Cancel buttons should be 10 pixels width. ========================================================== May be solved with implementation of new GTK file chooser. See rfe 5090726. ###@###.### 2004-12-03 18:52:03 GMT
03-12-2004