Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / August 2004

Tip: Looking for answers? Try searching our database.

SWT: How to remove a CTabItem from CTabFolder.

Thread view: 
Wongoo Lee - 28 Aug 2004 01:44 GMT
Hi all.

I added CTabFolder to my program to make multi-tabbed browsing with
Browser widget.

When the Browser need new window, it calls my OpenWindowListener. In
that case, I make new CTabItem, make Browser to it, and supply the
Browser object in the Listener.

When the Browser need to be closed, it calls my CloseWindowListener. I
catched it, but I can't find how to close the related CTabItem,
automatically.

There is no method like CTabFolder.remove(CTabItem ). :-(

Thanks in advance.
stephan@vern.chem.tu-berlin.de - 28 Aug 2004 13:47 GMT
> Hi all.

> I added CTabFolder to my program to make multi-tabbed browsing with
> Browser widget.

> When the Browser need new window, it calls my OpenWindowListener. In
> that case, I make new CTabItem, make Browser to it, and supply the
> Browser object in the Listener.

> When the Browser need to be closed, it calls my CloseWindowListener. I
> catched it, but I can't find how to close the related CTabItem,
> automatically.

> There is no method like CTabFolder.remove(CTabItem ). :-(

I'm not sure, but try CTabItem.dispose()

Stephan.
Wongoo Lee - 29 Aug 2004 01:57 GMT
Hi Stephan.

I tried the dispose method to event.browser in the
CLoseWindowListener. But I think the event.browser should be used only
in OpenWindowListener to provide new Browser.

The problem was solved by using event.widget. :-)

Thanks again.

> > Hi all.
>  
[quoted text clipped - 14 lines]
>
> Stephan.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.