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 120723 - Next has no mnemonic, but Back and Finish do for File
Summary: Next has no mnemonic, but Back and Finish do for File
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: L&F, UI
Depends on:
Blocks:
 
Reported: 2007-10-31 21:10 UTC by _ pcw
Modified: 2008-12-22 10:47 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screen shot of a random wizard page (57.82 KB, image/png)
2007-10-31 21:11 UTC, _ pcw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ pcw 2007-10-31 21:10:29 UTC
For the new project wizard, new file wizard (and maybe every wizard), the "Next" button has no mnemonic.  Screenshot
attached.

But the "Back" and "Finish" buttons do.  This is inconsistent.  "Next" should be treated identical to "Back" and "Finish".

In case it matters, this is on Solaris 10u4 (Gnome) running on JDK 1.6.0_03.
Comment 1 _ pcw 2007-10-31 21:11:09 UTC
Created attachment 52191 [details]
screen shot of a random wizard page
Comment 2 _ pcw 2007-10-31 21:16:23 UTC
I noted that some wizard pages have a "Name" entry field that typically uses the letter "N" for the mnemonic.

a) this is English centric reasoning - there may not be a conflict in another language
b) English could easily use "x" for the Next button, or F/P for New File/New Project, etc.

This should not preclude fixing this issue but should be considered.  "N" is the obvious initial choice for English, but
choosing it could substantially impact work required to resolve this due to the possibility of collisions.
Comment 3 Jiri Rechtacek 2007-11-01 15:10:51 UTC
Checking in Bundle.properties;
/shared/data/ccvs/repository/openide/dialogs/src/org/openide/Bundle.properties,v  <--  Bundle.properties
new revision: 1.13; previous revision: 1.12
done
Checking in WizardDescriptor.java;
/shared/data/ccvs/repository/openide/dialogs/src/org/openide/WizardDescriptor.java,v  <--  WizardDescriptor.java
new revision: 1.57; previous revision: 1.56
done
Comment 4 Jiri Rechtacek 2007-11-01 15:32:23 UTC
Rollback due to possible mnemonic clashing. Anyway, the Next button have the default mnemonic an Enter/CR keypress and
doesn't need another alt+<letter> mnemonic,
Comment 5 Jesse Glick 2007-11-01 16:12:38 UTC
This issue is probably sensitive to L&F. For "Ocean" (Java) L&F, the current behavior is in fact mandated: the default
button on a dialog shall have no mnemonic. (Similarly, Cancel should have none since Escape or window close is an
alternative.)

On GTK L&F it seems that Enter sometimes does not advance to the next wizard panel, but sometimes it does; I am not sure
if this is due to the keystroke being swallowed by other components, etc. In any case, would need to review mnemonic
guidelines for various L&Fs to see whether we can use the JLF policy universally, or whether we (at least in principle)
should adjust behavior according to the L&F in use.
Comment 6 jrojcek 2007-11-02 11:46:23 UTC
No mnemonic for Next is intentional. If you want to invoke the Next button by keyboard, hit Enter. It's not a L&F issue, AFAIK.
Comment 7 Jiri Rechtacek 2008-11-21 15:59:48 UTC
Following jrojcek I close as WFM