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 35076 - a11y: default button does not work in Insets dialog
Summary: a11y: default button does not work in Insets dialog
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Property Editors (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: A11Y
Depends on:
Blocks:
 
Reported: 2003-07-23 10:04 UTC by bnv
Modified: 2008-12-23 10:44 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bnv 2003-07-23 10:04:18 UTC
Tools->Options->IDE Configuration->Look and
Feel->Workspaces->Editing->Output Window
1. Select Bounds property editor
2. Wait for 'Bounds' dialog, push the Enter key to
activate the OK button.

The dialog is not closed.
The same problem for 'Bounds' dialog in the
Explorer, Options nodes.

Product Version       = Sun ONE Studio, Native
Edition (Build 030715)-- build 13
IDE Versioning        = IDE/1 spec=3.42.1 
impl=030715
Operating System      = SunOS version 5.8 
Java; VM; Vendor = 1.4.1_02; Java HotSpot(TM)
Client VM 1.4.1_02-b06; Sun Microsystems Inc.
Comment 1 Marian Mirilovic 2003-07-23 11:27:19 UTC
reproducible [nb_dev](20030723), [jdk1.4.2](fcs)

It seems like textfield takes an event, which is not sent to dialog.
Comment 2 ccv 2003-07-24 13:18:58 UTC
Tools->Options->Editing->Editor Setting->any editor
select Expert tab

Default button does not work in the following dialogs:
	Scroll Jump Insert
	Scroll Find Insert 
	Line Number Margin 
Comment 3 Marian Mirilovic 2003-07-30 10:24:46 UTC
Right, in that all dialogs are textfields.....
Comment 4 _ tboudreau 2003-09-09 04:00:25 UTC
For components that use the ENTER key, use CTRL-Enter.
Comment 5 ccv 2003-09-09 05:16:16 UTC
Please, explain, why a user should use CNTR-ENTER in the this dialog.

In all other dialogs default button works if a user type any text in
the textfield and push ENTER. For example Build/Set Arguments,
Debug/New Watch and so on. 
Pressing Enter makes sence in the textarea, table, but not in the
textfield. 
Comment 6 _ tboudreau 2003-09-13 18:51:07 UTC
Well, the technical answer is that if there is an ActionListener
attached to a text field, then pressing enter on it won't cause
the dialog to be closed.

In this editor, that probably is a bug;  on the other hand, this
editor probably should be a property sheet - there's no need for
the added complexity here.  I'll either fix the dialog or replace
its contents with a property sheet (in which case, indeed, CTRL
Enter is what should work).
Comment 7 _ tboudreau 2003-09-16 01:09:25 UTC
Fixed - RectangleCustomEditor now tracks keystrokes rather than
waiting for Enter via an ActionListener in order to track the new
value.

Checking in RectangleEditor.java;
/cvs/core/src/org/netbeans/beaninfo/editors/RectangleEditor.java,v 
<--  Rectang
leEditor.java
new revision: 1.14; previous revision: 1.13
done
Checking in RectangleCustomEditor.java;
/cvs/core/src/org/netbeans/beaninfo/editors/RectangleCustomEditor.java,v
 <--  R
ectangleCustomEditor.java
new revision: 1.21; previous revision: 1.20
done
Processing log script arguments...
Mailing the commit message to cvs@core.netbeans.org (from
tboudreau@netbeans.org
Comment 8 Marian Mirilovic 2004-08-26 13:43:27 UTC
still doesn't work :
[nb_dev](200408251800), [jdk1.5.0](b63), Linux RH9 / Gnome

steps to reproduce:
- run IDE
- open Options window
- select Editing | Editor Settings | Java Editor
invoke "..." custom editor for property "Scroll Jump Insert"
- type 10% to the first textfield
- push Enter 
-> nothing happend
Comment 9 _ tboudreau 2004-09-01 12:00:16 UTC
That's because InsetsEditor is not RectangleEditor.  But I suppose we can recycle this bug 
for that.
Comment 10 _ tboudreau 2004-09-01 13:07:19 UTC
That's because InsetsEditor is not RectangleEditor.  But I suppose we can recycle this bug 
for that.

But in this case, it will not help editor settings because they're using their own private copy 
of an older version of the editor - org.netbeans.modules.editor.options.ScrollInsetsEditor

At any rate, I've fixed the InsetsEditor.  May want to file something for the Editor guys to 
refresh their copy of it.
Comment 11 Marian Mirilovic 2004-09-01 13:09:04 UTC
wrong resolution since you've tried to modify it from two different
pages, try it again ;)
Comment 12 _ tboudreau 2004-09-01 15:46:08 UTC
Sorry, either my connection or issuezilla kept dying when I tried to modify this issue.
Comment 13 Marian Mirilovic 2004-09-09 16:34:09 UTC
verified in [nb_dev](200409081800)