JDK-4710726 : Cannot change file filter on motif look & feel
  • Type: Bug
  • Status: Resolved
  • Resolution: Fixed
  • Component: client-libs
  • Sub-Component: javax.swing
  • Priority: P3
  • Affected Version: 1.4.1,1.4.2_07
  • OS: linux,solaris_8
  • CPU: x86,sparc
  • Submit Date: 2002-07-03
  • Updated Date: 2003-11-04
  • Resolved Date: 2003-11-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
Other
1.4.2_08Resolved
Related Reports
Duplicate :  
Description

Name: dk106046			Date: 07/03/2002

Turbo Linux 7.0, RedHat7.3, SuSE Sles7

1.4.1-beta-b13      


------------
1. Run SwingSet2 Demo - use the version from this build in demo/jfc/SwingSet2

2. > java -jar SwingSet2.jar

3. From menu bar, select 'Look & Feel' -> 'Motif Look & Feel'

4. Click 'JFileChooser demo' button(fifth icon)

5. Click 'Show Preview JFileChooser' button
   -> JFileChooser window appears.

6. Click FileFilter pull-down list and select '*'(all file)
   -> Cannot select '*' ---> problem!


<< Expected result >>
All file '*' should be selected as a file filter item even if motif look & feel is selected.

======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger-beta
2004-08-24

EVALUATION Should fix for tiger. ###@###.### 2002-12-20 Name: keR10081 Date: 07/17/2003 We need to fire ContentsChanged when we change file filter. See suggested fix. ###@###.### ======================================================================
2004-08-24

SUGGESTED FIX Name: keR10081 Date: 07/17/2003 --- MotifFileChooserUI.java *************** *** 631,636 **** --- 631,638 ---- if(prop == JFileChooser.CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY) { filters = (FileFilter[]) e.getNewValue(); fireContentsChanged(this, -1, -1); + } else if (prop == JFileChooser.FILE_FILTER_CHANGED_PROPERTY) { + fireContentsChanged(this, -1, -1); } } ======================================================================
2004-08-24