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 9880 - [windows]Return focus to java editor after basic operations
Summary: [windows]Return focus to java editor after basic operations
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: jrojcek
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2001-02-27 23:59 UTC by athompson
Modified: 2008-12-22 09:49 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description athompson 2001-02-27 23:59:55 UTC
for convenience, some basic operations should set the focus to the editor open
finishing:

save
save all
undo
redo
delete
and others...
Comment 1 athompson 2001-02-28 00:01:33 UTC
should read, "some basic operations should set focus to the editor _upon_ finishing"
Comment 2 Jan Lahoda 2001-03-01 09:04:15 UTC
I do understand your problem, but I am not able to reproduce it. Could you 
please tell me following informations (they should help me to reproduce it):
1. Your IDE build number and version (ie. Netbeans 3.1 build 34).
2. If you are using MDI or SDI.
3. Your JDK version (ie. Sun JDK1.3).
4. Are any exceptions thrown?

And this should work as you are suggesting, so this is a defect, not an 
enhancement.
Comment 3 athompson 2001-03-01 10:55:11 UTC
should have set issue type to enhancement. when using win2000 and jdk1.3.x,
clicking on the aforementioned toolbar options cause the editor window to lose
focus and the main window to receive focus (as it should). it would be
convenient to have focus automatically returned to the editor window so you can
immediately continue typing without having to click on the editor window again.
Comment 4 athompson 2001-03-01 11:01:09 UTC
problem occurrs with all of the builds i've used (since 3.0 and before), and
with SDI or MDI. No exceptions are thrown as there is no abnormal operation.
Comment 5 Jan Lahoda 2001-03-01 11:12:52 UTC
Sorry, I did not understand that you are invoking the commands from toolbar.
This is probably problem of windowing system.
Comment 6 David Simonek 2001-03-01 14:43:44 UTC
[dafe] Huh, guys, you are making my life tough :-) To be honest, I don't know if 
this is right idea (and implementable). Requested behaviour will not work on 
many unix-based window managers, as they simply ignore request focus call. 
Moreover, "set-focus-back" behaviour is ideal only for some actions, not for all 
of them (because actions may open dialogs, etc.)
I will not try to solve this for upcoming 3.2 release, that's why I'm lowering 
priority and I will try to put some effort on it to 3.3. version
Meantime, workaround is to use keyboard shortcuts.
Comment 7 athompson 2001-03-01 19:55:55 UTC
david, since the problem also occurs in the MDI, i don't think it is
platform-specific, and a fix at least should work work for MDI. in fact, it is
more annoying in MDI because while the editor window retains focus, the actual
text area in the editor window does not.  the end result is that one cannot just
click on the title bar to regain focus; one actually has to click in the text
area, thereby losing any selection and potentially losing your position in the file.
Comment 8 Jan Chalupa 2001-05-05 20:27:36 UTC
Target milestone -> 3.3
Comment 9 Jan Chalupa 2001-11-27 11:51:46 UTC
Target milestone -> 3.3.1.
Comment 10 Jan Chalupa 2001-11-27 11:55:20 UTC
Target milestone -> 3.3.1.
Comment 11 Jan Chalupa 2002-01-11 14:00:29 UTC
Target milestone -> 3.4
Comment 12 Jan Chalupa 2002-01-11 14:04:42 UTC
Target milestone -> 3.4
Comment 13 Jan Chalupa 2002-01-11 14:06:18 UTC
Target milestone -> 3.4
Comment 14 Jan Chalupa 2002-01-11 14:10:07 UTC
Target milestone -> 3.4
Comment 15 David Simonek 2002-01-29 14:36:12 UTC
Evaluation summary:
Ideal situation: toolbar may be focusable only via keyboard, not
through mouse clicks. This will perfectly satisfy requirements of this
enhancement, as focus will not move from editor (of course in the case
when action invoked from toolbar will not change focus itself).

Please, ui teeam, comment on this, do you like this approach?

Implementation sidenote: Question is how to implement such behaviour,
we don't know yet, more investigation is needed.
Comment 16 athompson 2002-01-29 22:08:02 UTC
sounds like a dandy solution to me.
Comment 17 Marek Grummich 2002-07-22 09:16:42 UTC
Target milestone was changed from '3.4' to TBD.
Comment 18 Peter Zavadsky 2002-07-23 17:28:06 UTC
Also here the first word from UI is needed.
Comment 19 athompson 2005-02-08 19:33:16 UTC
this has been fixed somewhere in the last 4 years...
Comment 20 athompson 2007-10-09 16:27:11 UTC
yup