Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Creating Wizards with SWT
Creating Wizards with SWT [message #465950] Mon, 26 December 2005 02:21 Go to next message
Eclipse UserFriend
Originally posted by: harpal2002.netscape.net

Hello,

I don't like the framework provided by JFace to develop wizards. I decided
to write one from scratch with SWT. I have done so before in Swing with
relative ease. I am almost done. My question is : how do I replace one
composite with another one? In Swing I used to switch panels in the wizard
when the user would click back/next buttons with the following code
snippet:

dataJPanel.setVisible(false);
dataJPanel = getNextJPanel();
dataJPanel.setVisible(true);

When I atempt to do this in SWT, it doesn't work at all. I know SWT works
much differently then Swing. I have been able to figure out most of the
other things myself, but I am stuck on this one. Can anyone help or
suggest a tutorial? And again, I would like to try to do this without
JFace.

Thanks,
Harps
Re: Creating Wizards with SWT [message #465958 is a reply to message #465950] Mon, 26 December 2005 19:22 Go to previous messageGo to next message
Jeremy Dowdall is currently offline Jeremy DowdallFriend
Messages: 48
Registered: July 2009
Member
this sounds like a good application for a StackLayout


Harpal wrote:
> Hello,
>
> I don't like the framework provided by JFace to develop wizards. I
> decided to write one from scratch with SWT. I have done so before in
> Swing with relative ease. I am almost done. My question is : how do I
> replace one composite with another one? In Swing I used to switch panels
> in the wizard when the user would click back/next buttons with the
> following code snippet:
>
> dataJPanel.setVisible(false);
> dataJPanel = getNextJPanel();
> dataJPanel.setVisible(true);
>
> When I atempt to do this in SWT, it doesn't work at all. I know SWT
> works much differently then Swing. I have been able to figure out most
> of the other things myself, but I am stuck on this one. Can anyone help
> or suggest a tutorial? And again, I would like to try to do this without
> JFace.
>
> Thanks,
> Harps
>
Re: Creating Wizards with SWT [message #465961 is a reply to message #465958] Tue, 27 December 2005 02:23 Go to previous message
Eclipse UserFriend
Originally posted by: harpal2002.netscape.net

I was able to get it to work last night, but I needed to add a "link",
like a linked list. BUt I think I am going to opt for the StackLayout
after a little bit of research. Thanks so much for the help. You answered
my question. Much appreciated!

Cheers,
Harps
Previous Topic:Browser widget - vertical scrollbars don't work
Next Topic:Table updating problems
Goto Forum:
  


Current Time: Thu Dec 05 16:41:11 GMT 2024

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

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

Back to the top