Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SWT: Menu in CTabItem/CTabFolder or TabItem/TabFolder  RSS feed

Bret Waldow
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I'm new to SWT. I can't find an example (or hack one) that allows a Menu to appear in the client area of a CTabItem or a TabItem.

I have a gizmo 'class BrowserPage extends Composite' which sits nicely in a CTabItem. I can put buttons and text fields and the SWT Browser in it, but not a Menu.

So, each tab will have it's own instantiation of the gizmo (a Browser plus some controls), and each gizmo will have it's own menu.

Can anyone provide or point me at some example code showing a Menu in the client pane of a TabItem or CTabItem?

Thanks much,
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!