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 31408 - [Class Wizard] focus issues
Summary: [Class Wizard] focus issues
Status: VERIFIED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P4 blocker (vote)
Assignee: mslama
URL:
Keywords: A11Y, FOCUS, UI
Depends on:
Blocks:
 
Reported: 2003-02-24 15:27 UTC by Jan Becicka
Modified: 2008-12-22 23:57 UTC (History)
1 user (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 Jan Becicka 2003-02-24 15:27:28 UTC
JDK 1.4.1
Step 4. create fields and step 6 create methods:
It is not clear, which component has focus. Tab
traversal does not work (unable to reach
components using TAB).
Comment 1 Chris Ledantec 2003-02-26 14:30:53 UTC
needs to be fixed.
Comment 2 Svata Dedic 2003-03-11 13:48:53 UTC
The component in question is (in both reported cases) an instance of 
org.openide.explorer.view.ListView. Focus is transferred to that 
component during addNotify() - and apparently the focus is there (Tab 
=> New button has focus). No idea why the appearance does not 
indicate the focus; some special accessibility "feature" of JScrollPane 
(ListView's superclass) ? 
Please check that ListView responds properly to focus calls (and 
reassign back if it does). 
Comment 3 mslama 2003-03-17 11:47:30 UTC
Need to investigate where focus is.
Comment 4 mslama 2003-07-04 16:06:13 UTC
There seems to be focus problem in Wizard in JDK 1.4.1 please try on
JDK 1.4.2. (See issue #34380.) Do you mean current dev build?
Comment 5 mslama 2003-07-04 16:07:30 UTC
In addition please tell exactly how do you reach step 4 and 6 or show me.
Comment 6 mslama 2003-07-04 16:26:22 UTC
In mentioned issue we requested focus on JList in addNotify() AFTER
super.addNotify(). On JDK 1.4.1 it does NOT work sometimes (focus
owner is not inside dialog). On JDK 1.4.2 it works fine. Workaround
for JDK 1.4.1 we foudn was to call requestFocus() using invokeLater().
Comment 7 mslama 2003-07-04 16:51:28 UTC
I checked and it is as Svata said. ListView has apparently focus as it
should because if you press TAB focus goes to New. Unfortunately as
mentioned when ListView is empty there is no change in appearance when
focus is assigned to it.

I checked JList behaviour in Swing Tutorial and there no indication of
focus presence when JList is empty. If you really need it you should
specify how it should be indicated and probably assign it to
openide/explorer.

Closing for now as WORKSFORME.
Comment 8 mslama 2003-07-04 16:52:00 UTC
Set as WORKSFORME.
Comment 9 mslama 2003-07-04 16:53:51 UTC
I tested on Linux (RH 8.0 KDE 3.0.3-8). Is behaviour on Windows different?
Comment 10 Jan Becicka 2003-07-08 14:55:14 UTC
Tab traversal works fine in Windows XP.
Comment 11 mslama 2003-09-02 10:55:10 UTC
Ok. Closing as WORKSFORME.
Comment 12 Marian Mirilovic 2003-09-02 12:52:48 UTC
verifying