This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 31451 - a11y compliance in new task dialog
Summary: a11y compliance in new task dialog
Status: CLOSED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: Tasklist (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: tasklist-issues@contrib
URL:
Keywords: A11Y
Depends on:
Blocks:
 
Reported: 2003-02-25 18:45 UTC by Chris Ledantec
Modified: 2005-07-20 09:59 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
a11y test report (2.14 KB, text/html)
2003-02-25 18:46 UTC, Chris Ledantec
Details
a11y test report for fix dialog (836 bytes, text/html)
2003-03-05 10:48 UTC, Chris Ledantec
Details
a11y test report for edit types dialog (2.28 KB, text/html)
2003-03-05 10:49 UTC, Chris Ledantec
Details
a11y test report for find dialog (2.55 KB, text/html)
2003-03-05 10:51 UTC, Chris Ledantec
Details
a11y test results for Edit Types dialog (795 bytes, text/html)
2003-03-10 14:47 UTC, Chris Ledantec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Ledantec 2003-02-25 18:45:08 UTC
see the report attatched
Comment 1 Chris Ledantec 2003-02-25 18:46:00 UTC
Created attachment 9143 [details]
a11y test report
Comment 2 Chris Ledantec 2003-02-25 18:46:52 UTC
fyi. was going to list missing mnemonics as a separate bug but the
a11y report covers it.
Comment 3 Torbjorn Norbye 2003-02-26 04:28:59 UTC
Thanks for the report. Some of the text fields were using a JCheckBox
as a "label" (e.g. Due Date, Subtask Of, Associated File). These both
enabled, and described the field on the right (due date, or subtask
field).  However, JCheckBox doesn't have a "label-for" attribute. I
guess that makes sense, since selecting the mnemonic takes the
keyboard focus to the checkbox itself, not the associated component.

So ... I introduced an additional label between the check box and the
component. For example:

[x] Due                Date: ______________ [....]

[ ] Associated File    Name: ____________

(Got rid of the Subtask Of as described in a different issue)

Now there's a separate mnemonic for the checkbox and the label with
labelfor.   Does this look right to you?  It looks slightly weird....
perhaps I should put the checkbox on its own line? Or do you have some
better solution?

I believe that since many of the components weren't pointed to by
labels (using setLabelFor), this caused them not to have accessible
names, which they otherwise obtain from the JLabel. Thus, I think/hope
the accessible name warnings will go away.  That leaves accessible
descriptions.
Comment 4 Torbjorn Norbye 2003-02-26 04:51:02 UTC
Putback fixes for labelFor.
Comment 5 Chris Ledantec 2003-02-26 08:38:20 UTC
i agree that having a checkbox and a labeled text field is odd. 

can we just do away with the check box? if either of the fields are
are blank then there isn't a file or a date associated with the task.

Associated File: |_______________| [...]
Due Date: |______________________|

that seems simpler to me. 
Comment 6 Torbjorn Norbye 2003-02-26 17:16:33 UTC
"Associated File: |_______________| [...]"
The problem with this is that the tasklist tries to be helpful, and
ALWAYS populates the file text field with the current editor file and
cursor position. That way, if you decide that yes, this task is
related to what I'm looking at, you just need to check the checkbox.
Without the checkbox, I'll either need to stop prepopulating the
textfield with the current position, or all tasks will get the current
position associated with them - which is misleading when the task has
nothing to do with it ("buy flowers for mother's day") - and even
misleading, since double clicking on the task will open up the source
file and put an annotation on the given line.
Comment 7 Chris Ledantec 2003-02-26 17:46:53 UTC
i suspected there was something like this going on. :-)

so go back to the way it was before with the check box and the
textfield (minus the additional label). make sure the textfield has an
a11y name and description and you don't need to worry abou the
LABEL_FOR error. 

sorry for the run around on this.
Comment 8 Torbjorn Norbye 2003-02-28 09:00:45 UTC
I've updated the dialog so that it should be a11y compliant now. Would
you mind running the accessibility checker again (once version 0.9.0
of the usertask module becomes available on the update center, or if
you can build from CVS trunk yourself) and let me know if there's
anything I forgot?
Comment 9 Chris Ledantec 2003-03-05 10:46:57 UTC
a couple of things:

-the a11y issues that opened this bug are all fixed. thanks.

-there are more a11y bugs for the dialogs i failed to test the first
time around... my mistake. i've included the test files and my
comments on what to do with the issues will be found in the included
files.
Comment 10 Chris Ledantec 2003-03-05 10:48:08 UTC
Created attachment 9271 [details]
a11y test report for fix dialog
Comment 11 Chris Ledantec 2003-03-05 10:49:38 UTC
Created attachment 9272 [details]
a11y test report for edit types dialog
Comment 12 Chris Ledantec 2003-03-05 10:51:16 UTC
Created attachment 9273 [details]
a11y test report for find dialog
Comment 13 Torbjorn Norbye 2003-03-06 19:01:58 UTC
Thanks for creating those a11y reports, Chris. Would you mind
rerunning the one on the Edit Types dialog using the current build,
since Tim has changed the dialog significantly (now uses a table, as
discussed at the UI review, instead of multiple list boxes.)
Comment 14 Chris Ledantec 2003-03-10 14:46:51 UTC
the revised edit types... dialog looks good from and a11y standpoint.
there are some errors for the check boxes that aren't obvious from
looking at the dialog i tested (probably depends on the content in the
table) so i can only suggest to make sure the contents of the table
(checkboxes and text) all get an a11y name and description -for
checkboxes the name of the column should function as the name and the
state as the description. the text should have the name of the column
as the name and the actual text as the description.

the dialog looks good though i'd suggest adding a label for both the
table and the description text area so it's easier to work out what
each is and how they're related:

Recognized Types:
+----------------------------------+
|                                  |
|     types table here             |
|                                  |
+----------------------------------+

Description:
+----------------------------------+
|                                  |
|     description text             |
|                                  |
+----------------------------------+
Comment 15 Chris Ledantec 2003-03-10 14:47:25 UTC
Created attachment 9330 [details]
a11y test results for Edit Types dialog
Comment 16 Jan Chalupa 2003-03-14 09:09:39 UTC
NOS1S5 - the Task module is not part of Sun ONE Studio.
Comment 17 Torbjorn Norbye 2003-03-14 15:59:45 UTC
This isssue is nearly fixed. The only thing remaining now is the lack
of accessibility descriptions on the checkboxes in the Edit Types...
dialogs.  So I'm downgrading the bug.

(By the way - do you think "Category" is a better ui name for
suggestion types than "type" ?  E.g. Edit Categories?)

I'm puzzled by this last part. There are no checkboxes in the Edit
Types dialog - only a JTable showing Booleans - so in the table's
model the method 
  public Class getColumnClass(int columnIndex) {
returns Boolean.class for the columns where we want checkboxes.

But this shouldn't place a checkbox in the component hierarchy, it
should just use a JCheckBox as a cell renderer. E.g. the cell renderer
checkbox is shared for all cells! So how can I put an accessibility
descriptor on it?  For that matter, how is this done in tables in general?
Comment 18 Chris Ledantec 2003-03-20 15:31:37 UTC
sorry for the delay -the update mail got burried:

yes, category is better than type.

not sure about the checkbox issue... i've quickly looked through
a11y.netbeans.org and haven't found anything that really addresses
this issue. 

if all the other issues have been fixed then i think we're doing
alright. a little more research will turn up what to do with the
checkboxes in the tree.
Comment 19 Jiri Mzourek 2004-02-17 11:12:59 UTC
I think this should be tracked in task list component.
Comment 20 Milan Kubec 2004-03-12 13:27:01 UTC
Please evaluate, all A11Y P3 should be evaluated. If it's not part of
release36, reassign to proper subcomponent. Thanks.
Comment 21 Jan Jancura 2004-03-12 15:34:17 UTC
This ui is not part of standard nb realease
-> moving to "Other" subcomponent.
Comment 22 Tim Lebedkov 2005-03-03 20:42:39 UTC
it's already fixed IMHO
Comment 23 Tim Lebedkov 2005-07-20 09:59:22 UTC
4.1 is out