Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4515031
Votes 0
Synopsis JFileChooser accessibility problems (missing descriptions)
Category java:accessibility
Reported Against 5 , 4_ea , 1.4.1 , merlin-beta3
Release Fixed 1.4.2(mantis)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs 6259588 , 4476675 , 4621395 , 4842777 , 4842821
Submit Date 16-OCT-2001
Description
There are not set accessibility names and descriptions for components.

----------------------------------------------
  xxxxx@xxxxx   2002-01-08

I added (missing descriptions) to the synopsis.

The JDialog containing the file chooser (created via one of the JFileChooser.show* methods) has some problems, reported by the accessibility helper program.

P1 - the dialog itself has no accessible description. All frames and dialogs must have accessible descriptions. In this case, it would be OK for the description to be set to the same as the dialog title. It would be ideal if the JFileChooser had a new method, setDialogAccessibleDescription().

P3 - plaf.metal.MetalFileChooserUI$1 at (0,2): Null accessible description
P3 - plaf.metal.MetalFileChooserUI$3, label='Load': Null accessible description

The P3 items return true for isFocusTraversable(), but have no accessibility information. They should either return false for isFocusTraversable(), or should have accessible descriptions.
---------------------------------------------
  xxxxx@xxxxx   2002- customer -07

I deleted some of my own comments here, because they were a duplicate of existing bug 4625724
----------------------------------------------
Work Around
The accessibleDescription for the dialog can be set by subclassing
JFileChooser and overriding createDialog() like this:

  protected JDialog createDialog(Component parent) {
    JDialog dialog = super.createDialog(parent);
    dialog.getAccessibleContext().setAccessibledescription(<...>);
    return dialog;
  }

  xxxxx@xxxxx   2002-04-19
Evaluation
AccessibleAWTDialog (and AccessibleAWTFrame) should set
the default accessible name and description from the title.

  xxxxx@xxxxx   2002-04-19
Comments
  
  Include a link with my name & email   

Submitted On 17-DEC-2001
brajkishore
The file/directory inside the JFileChooser is editable, how 
can i setEditable false.



PLEASE NOTE: JDK6 is formerly known as Project Mustang