Tabs and Tabbed items [message #16763] |
Mon, 12 August 2002 16:30  |
Eclipse User |
|
|
|
Hello All,
[ Newbie here..]
I have been trying to understand the SWT, GEF and the draw2D parts. Let me
congratulate for the cool effort...
I wanted to develop some forms where user could enter text, use a couple
of check boxes and combo boxes and write it out to a file. I started using
SWT and created the form but did not know how to proceed to the next form
by clicking NEXT >, < BACK etc etc (like the usual Install Software UI
mechanism) ...
I wanted to change the logic to Tabs by using Tab1, Tab2 etc etc but have
not found anything in Draw2D.
The questions I have :
1.) Are there any classes similar to JtabbedPane in swing ?? If you are
suggesting (SWT) TabFolder, how do I use it in combination with Draw2d ?
2.) Also, please enlighten me on these concepts ? What would be analogous
to Frame, Panel, JTabbedPane etc etc in SWT / Draw2d to Swing ? A post
mentioning analogous classes would really help newbies like me?
3.) The constructors in Draw2d do not allow any SWT objects. For example,
I am looking for a way to add a combobox to the Figure object and I do not
see a way to do it ? Similar is the case with Text form ??
Thanks in advance!!!
Kumar
|
|
|
Re: Tabs and Tabbed items [message #16766 is a reply to message #16763] |
Mon, 12 August 2002 21:20   |
Eclipse User |
|
|
|
Originally posted by: hudsonr.spam.com
Draw2d's purpose is not to extend the SWT widget set.
>
> I have been trying to understand the SWT, GEF and the draw2D parts. Let me
> congratulate for the cool effort...
>
> I wanted to develop some forms where user could enter text, use a couple
> of check boxes and combo boxes and write it out to a file. I started using
> SWT and created the form but did not know how to proceed to the next form
> by clicking NEXT >, < BACK etc etc (like the usual Install Software UI
> mechanism) ...
There is an entire wizards package in JFace. I think if you keep looking
you'll find something more useful.
> I wanted to change the logic to Tabs by using Tab1, Tab2 etc etc but have
> not found anything in Draw2D.
> The questions I have :
>
> 1.) Are there any classes similar to JtabbedPane in swing ?? If you are
> suggesting (SWT) TabFolder, how do I use it in combination with Draw2d ?
Draw2D's current purpose is to render a collection of Figures on a single
SWT Canvas. No one is really looking to mix lightweight figures and SWT
controls. You can do this, but why would you?
> 2.) Also, please enlighten me on these concepts ? What would be analogous
> to Frame, Panel, JTabbedPane etc etc in SWT / Draw2d to Swing ? A post
> mentioning analogous classes would really help newbies like me?
Frame = Shell
Panel = Composite
JTabbedPane = CTabFolder
> 3.) The constructors in Draw2d do not allow any SWT objects. For example,
> I am looking for a way to add a combobox to the Figure object and I do not
> see a way to do it ? Similar is the case with Text form ??
>
> Thanks in advance!!!
>
> Kumar
>
>
|
|
|
Re: Tabs and Tabbed items [message #16779 is a reply to message #16766] |
Tue, 13 August 2002 11:51  |
Eclipse User |
|
|
|
Thanks Randy!!
Well, as you said, I am sure I am currently at the tip of the code base. I
would have to dig in deeper to understand as to why some of the widgets
are not available in Draw2D.
Randy Hudson wrote:
> Draw2d's purpose is not to extend the SWT widget set.
> >
> > I have been trying to understand the SWT, GEF and the draw2D parts. Let me
> > congratulate for the cool effort...
> >
> > I wanted to develop some forms where user could enter text, use a couple
> > of check boxes and combo boxes and write it out to a file. I started using
> > SWT and created the form but did not know how to proceed to the next form
> > by clicking NEXT >, < BACK etc etc (like the usual Install Software UI
> > mechanism) ...
> There is an entire wizards package in JFace. I think if you keep looking
> you'll find something more useful.
> > I wanted to change the logic to Tabs by using Tab1, Tab2 etc etc but have
> > not found anything in Draw2D.
> > The questions I have :
> >
> > 1.) Are there any classes similar to JtabbedPane in swing ?? If you are
> > suggesting (SWT) TabFolder, how do I use it in combination with Draw2d ?
> Draw2D's current purpose is to render a collection of Figures on a single
> SWT Canvas. No one is really looking to mix lightweight figures and SWT
> controls. You can do this, but why would you?
> > 2.) Also, please enlighten me on these concepts ? What would be analogous
> > to Frame, Panel, JTabbedPane etc etc in SWT / Draw2d to Swing ? A post
> > mentioning analogous classes would really help newbies like me?
> Frame = Shell
> Panel = Composite
> JTabbedPane = CTabFolder
> > 3.) The constructors in Draw2d do not allow any SWT objects. For example,
> > I am looking for a way to add a combobox to the Figure object and I do not
> > see a way to do it ? Similar is the case with Text form ??
> >
> > Thanks in advance!!!
> >
> > Kumar
> >
> >
|
|
|
Powered by
FUDForum. Page generated in 0.05292 seconds