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 36039 - ExplorerOperator selectPage(String page) method does not work when page is in bottom of Explorer
Summary: ExplorerOperator selectPage(String page) method does not work when page is in...
Status: RESOLVED WONTFIX
Alias: None
Product: qa
Classification: Unclassified
Component: Jellytools (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@qa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-11 15:21 UTC by nicolas
Modified: 2003-09-11 16:00 UTC (History)
0 users

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 nicolas 2003-09-11 15:21:12 UTC
the code below:

ExplorerOperator explorer = new ExplorerOperator
();
explorer.selectPage("My own explorer page");

works perfectly if the page is docked in the 
center of the Explorer (like the Filesystems page)
but fails if docked in bottom.


Yours respectfully,

      Nicolas.
Comment 1 Jiri Skrivanek 2003-09-11 16:00:38 UTC
explorer.selectPage("My own explorer page"); works only with
JTabbedPane in the center. If you need to find second JTabbedPane you
have to use something like this:

new JTabbedPaneOperator(new ExplorerOperator(), 1).selectPage("My own
explorer page");

Or if your explorer page is instance of TopComponent you can use this:

TopComponentOperator tco = new TopComponentOperator("My own explorer
page");
new JButtonOperator(tco, "My Button").push();

It will find your TopComponent and make it focused.