United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4710726 Cannot change file filter on motif look & feel
JDK-4710726 : Cannot change file filter on motif look & feel

Details
Type:
Bug
Submit Date:
2002-07-03
Status:
Resolved
Updated Date:
2003-11-04
Project Name:
JDK
Resolved Date:
2003-11-04
Component:
client-libs
OS:
solaris_8,linux
Sub-Component:
javax.swing
CPU:
x86,sparc
Priority:
P3
Resolution:
Fixed
Affected Versions:
1.4.1,1.4.2_07
Fixed Versions:
5.0 (beta)

Related Reports
Backport:
Duplicate:

Sub Tasks

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
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
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
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger

FIXED IN:
tiger

INTEGRATED IN:
tiger-beta


                                     
2004-08-24



Hardware and Software, Engineered to Work Together