Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to create dynamic forms in SWT
How to create dynamic forms in SWT [message #443839] Sat, 02 October 2004 23:26 Go to next message
Rüdiger  ain is currently offline Rüdiger ainFriend
Messages: 5
Registered: July 2009
Junior Member
Hi,
in my application the user is requested to enter data in a form-like editor.
A form contains a couple of items of different data types (strings, dates,
numbers).
I am looking into Eclipse forms to build this editor, composing the form of
different input elements, one for each data type.
Since the underlying model is not static (items may be added/removed
depending on user input),
the form view must be dynamically rebuild on model changes. Using Swing I
could have removed all components from the forms panel displaying the form
and added the updated components again. How can this be done in SWT /
Eclipse Forms API ? I tried to dispose() the form widgets and create
new ones, but the newly created widgets won't appear. Since I am new to SWT
this is probably not the way things are meant to be done.
Any ideas ?

Thanks,
Ruedee
Re: How to create dynamic forms in SWT [message #443845 is a reply to message #443839] Sun, 03 October 2004 08:17 Go to previous messageGo to next message
Stefan Matthias Aust is currently offline Stefan Matthias AustFriend
Messages: 68
Registered: July 2009
Member
Rüdiger Hain schrieb:

> the form view must be dynamically rebuild on model changes. Using Swing I
> could have removed all components from the forms panel displaying the form
> and added the updated components again. How can this be done in SWT /
> Eclipse Forms API ? I tried to dispose() the form widgets and create
> new ones, but the newly created widgets won't appear.

Disposing old widgets and creating new one is the right approach. Did
you forget to relayout your form after creating the new widgets?


bye
--
Stefan Matthias Aust // "Zweifel sind der Ansporn des Denkens..." -U
Re: How to create dynamic forms in SWT [message #443853 is a reply to message #443845] Mon, 04 October 2004 06:18 Go to previous message
Rüdiger  ain is currently offline Rüdiger ainFriend
Messages: 5
Registered: July 2009
Junior Member
"Stefan Matthias Aust" <sma@3plus4.de> schrieb im Newsbeitrag
news:cjoc9h$jf1$1@eclipse.org...
> R
Previous Topic:Get keyboard modifiers (stateMask) on dragStart() ?
Next Topic:login dialog with image
Goto Forum:
  


Current Time: Tue Apr 23 09:45:19 GMT 2024

Powered by FUDForum. Page generated in 0.03557 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top