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 24519 - I cannot use jemmy with JTable
Summary: I cannot use jemmy with JTable
Status: CLOSED FIXED
Alias: None
Product: qa
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@qa
URL:
Keywords:
Depends on: 24735
Blocks:
  Show dependency tree
 
Reported: 2002-06-07 09:53 UTC by Jan Becicka
Modified: 2011-02-17 09:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
test case (2.09 KB, application/octet-stream)
2002-06-07 09:54 UTC, Jan Becicka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2002-06-07 09:53:41 UTC
It looks like JTableOperator.clickOnCell(x,y) 
does not work. See attached test case. Run 
Test using internal execution. It should 
invoke Import Management Tool.
Comment 1 Jan Becicka 2002-06-07 09:54:39 UTC
Created attachment 6145 [details]
test case
Comment 2 Jiri Skrivanek 2002-06-07 14:16:05 UTC
It is true but I would blame org.openide.explorer.view.TreeTable for a
wrong behaviour. If you try to comment lines 86-89 in jemmy
MouseEventDriver, it works. So, if you click on a treetable "by hand",
MOUSE_CLICKED event is consumed in TreeTableView and only
MOUSE_PRESSED is handled by TreeTable class and it works. 
If you fire MOUSE_PRESSED event followed by MOUSE_CLICKED event
directly on TreeTable instance, it fails. I don't know exact reason
right now but I can discuss it with TreeTable author (Jan.Rojcek), if
someone has no better idea.
Comment 3 Jan Becicka 2002-06-13 09:57:28 UTC
I have to rise the priority. I cannot find any 
workaround. Please fix it before enter high 
resistance for 3.4. Thanks.
Comment 4 Jiri Skrivanek 2002-06-13 10:44:48 UTC
Filled issue on TreeTable.
Comment 5 Jiri Skrivanek 2002-06-13 11:04:45 UTC
Workaround is to use Robot mode:

...
JellyProperties.setRobot(true);
jto = Jemmy.getOp(t);
...

jto.clickOnCell(index, 3);
JellyProperties.setRobot(false);
...
Comment 6 Jan Becicka 2002-06-13 12:20:39 UTC
Thank you for the workaround
Comment 7 Jiri Skrivanek 2002-06-19 08:54:26 UTC
Issue 24735 fixed.
Comment 8 Jan Becicka 2002-10-11 17:28:47 UTC
Verified