Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 64305 - Not able to hide JUnit window with keyboard
Not able to hide JUnit window with keyboard
Product: java
Classification: Unclassified
Component: JUnit
All All
: P2 (vote)
: 5.x
Assigned To: Marian Petras
Depends on:
  Show dependency treegraph
Reported: 2005-09-14 09:17 UTC by Martin Krauskopf
Modified: 2005-10-19 11:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description Martin Krauskopf 2005-09-14 09:17:27 UTC
If you set the unit test window to be a floating window, then after test
finished it will pop up, *but* doesn't have a focus. So you have to e.g. click
it with a mouse and then press ESC. Or press Ctrl+4 (output will apear) followed
by ESC. Anyway it will hide the editor and you don't see what you typing, and so
on... Seem to be a minor problem but since a lot of (not only) NB developers
runs their test very often it became very annoying to do this after every single
test run (Shift+F6). Moreover I believe this is a simple fix. So P2 to make sure
it is going to be fixed soon and for 5.0.
Comment 1 Martin Krauskopf 2005-09-14 09:24:53 UTC
Seems that it is happening only when tests passed succesfully. When test failed
the floating windows gets focus correctly. So probably even easier fix.
Comment 2 Marian Petras 2005-09-15 15:27:35 UTC
I confirm the window does not get focus. Accepted.

I do not confirm the behaviour depends on whether the tests passed or failed.
Comment 3 Marian Petras 2005-10-19 09:45:43 UTC
This is caused by the current implementation of the JUnit results window. It
changes its content using sequence


The removeAll() call causes that there is no focusable component present for a
moment. During this moment, none of the TopComponent's components can receive
focus so the keyboard focus stays in the previous TopComponent.
Comment 4 Marian Petras 2005-10-19 11:05:18 UTC
Fixed in the trunk.

Now the panels for displaying results are reused, removeAll() is never called.

Modified files:

Comment 5 Martin Krauskopf 2005-10-19 11:16:05 UTC
Cool, this will save me few finger-aches ;) Just tested. Seems to work. Thanks.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo