Page 1 of 3

CLOSED: Task panes instead of Tabs

PostPosted: Tue Sep 01, 2009 12:43 pm
by dskanth
Hi, I want to try a new thing.
There are tabs like "Projects", "Tags", "Attachments" in the left pane of the Omero insight.
But instead of tabs, i want to show them as task panes, so that when i expand "Projects" pane, the items are shown under it.
How i can convert the tabs into panes ?

Re: Task panes instead of Tabs

PostPosted: Thu Sep 03, 2009 11:02 am
by dskanth
I have tried creating a taskpane manually. But it seems like all the features are not available in taskpane.

Re: Task panes instead of Tabs

PostPosted: Fri Sep 04, 2009 10:24 am
by jburel
Where did you put that code??
nothing to do with omero

Re: Task panes instead of Tabs

PostPosted: Fri Sep 04, 2009 10:29 am
by dskanth
I have put that code in: treeviewer.view/TreeViewerWin.java > createTabbedPane() method.
I just want to show the tabs "Projects", "Images",etc. as taskpanes.

Re: Task panes instead of Tabs

PostPosted: Fri Sep 04, 2009 10:46 am
by jburel
What is the error you get?
I reckon it is b/c you have commented out the initialization of the tab pane.

Re: Task panes instead of Tabs

PostPosted: Fri Sep 04, 2009 11:16 am
by dskanth
Previously i have a syntactic error, but now I have created a taskpane, and added a label to it, and added it to the container like: c.add(taskpane, BorderLayout.WEST);

Re: Task panes instead of Tabs

PostPosted: Mon Sep 07, 2009 5:55 am
by dskanth
I have added the taskpane to a taskpanecontainer, and added it to a panel.

Re: Task panes instead of Tabs

PostPosted: Mon Sep 07, 2009 7:58 am
by jburel
This has nothing really to do with insight.
You just need to add each component of the tabs to a JTaskPane
and add them to the display.

Re: Task panes instead of Tabs

PostPosted: Mon Sep 07, 2009 9:47 am
by dskanth
Hi, i have just done the same thing in TreeViewerWin.java, and iam trying to add the browsers to the taskpanes.

Re: Task panes instead of Tabs

PostPosted: Tue Sep 08, 2009 7:20 am
by dskanth
I created a panel with taskpanecontainer added to it, and the taskpanecontainer has all the taskpanes added to it. Finally I added the panel to the display as: splitPane.setLeftComponent(panel);