[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: SWT Question: Use a Dialog or ApplicationWindow to get more info from user?
|
- From: Priscille de Peslouan <pdu@xxxxxxxxx>
- Date: Fri, 14 Feb 2003 11:57:54 +0100
- Newsgroups: eclipse.tools
- Organization: EclipseCorner
You may use an org.eclipse.jface.dialogs.Dialog. And, in a dialog, by
overriding the createContents(Composite parent) method, you can fill the
dialog client area with Text, Label and so on.
Text, Label ...are Composite that can be added in an other Composite.
Billl wrote:
> I am new to Eclipse and SWT so please bear with me. I am designing an
> ApplicationWindow which presents a table to the user. Sometimes the
> TableItems need to be corrected. My plan was to present the user with a
> separate window enter the missing or incorrect data.
>
> This should behave like a Dialog in that it pops and goes away afterward,
> as a child of the parent ApplicationWindow. However Dialogs don't
> normally contain Widgets (like Text).
>
> This could be done with another ApplicationWindow but how control be
> transferred back to the parent. This window should be persistent with a
> set function for the values which need to be changed ... to save
> instantiating the window each time.
>
> I would appreciate any thoughts or suggestions about how to go about this:
>
> Use a Dialog or another ApplicationWindow?
>
> How to communicate between the two?
>
> Thanks all
> Bill