|Add WindowBuilder TabItem at Runtime [message #780961]
||Wed, 18 January 2012 22:50
| Mark Rowe
Registered: July 2009
Excuse my explanation, I am new to Java / SWT. I am attempting to convert a legacy application from Qt.|
My application has a number of consists of many 'pages'. Each 'page' holds a variety of controls (tables, buttons, checkboxes etc.).
At startup only a welcome page is shown as TabItem1 of a TabFolder, but by clicking on a list at the left of the screen new pages (TabItems) are added.
To help me organise my code, I would like each page (TabItem) to live in its own pair of files - one is created by WindowBuilder, the other contains the business logic for that page.
I am stuck with two problems:
How can I separate the WindowBuilder generated code from the business logic? In WindowBuilder when I link an event it just dumps the code in the same class as the code that sets up all the widgets.
How can I create just a TabItem in WindowBuilder and add it to the TabFolder (and raise it and remove it) from the TabFolder at runtime?
Thanks for any help!
Powered by FUDForum
. Page generated in 0.16716 seconds