aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Adding multiple pages to wizard Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Adding multiple pages to wizard" Watch "Adding multiple pages to wizard" New topic
Author

Adding multiple pages to wizard

Manikandan Swaminathan
Ranch Hand

Joined: Aug 10, 2008
Posts: 117
Hi all,

I am trying to add a new page to an already existing wizard. I have also added some controls to that page. But the problem is the page is getting displayed BLANK and the controls are getting displayed in
the next page. I have overridden the createBeginningPages() method.It didnt work. Then tried overriding addPages() method also. Again it didnt work. I am confused..

protected IWizardPage[] createBeginingPages() {
IWizardPage[]iPages = new IWizardPage[2];
iPages[0] = createFirstPage();
iPages[1] = createSecondPage();
return iPages;
}

When i check in debug mode, the control is going properly as expected in creating the second page and also creating the controls in that page.But.. in the output its missing..
Can someone please help in this?

Thanks
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19760
    
  20

What library are you using?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Manikandan Swaminathan
Ranch Hand

Joined: Aug 10, 2008
Posts: 117
I am sorry, can you please be more clear - There are many JAR files we are using currently.Which one are you referring?

Thanks
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19760
    
  20

What JAR file does class IWizardPage come from?
Kemal Sokolovic
Bartender

Joined: Jun 19, 2010
Posts: 825
    
    5

Raghuraman Guruswamy wrote:
...
I have overridden the createBeginningPages() method.It didnt work. Then tried overriding addPages() method also. Again it didnt work. I am confused..

protected IWizardPage[] createBeginingPages() {
IWizardPage[]iPages = new IWizardPage[2];
iPages[0] = createFirstPage();
iPages[1] = createSecondPage();
return iPages;
}

...


If it's JFace IWizardPage I don't think there is a createBeginningPages() to override. And if it's WebProjectWizard class you're overriding, I think this is not a place for this topic.


The quieter you are, the more you are able to hear.
Manikandan Swaminathan
Ranch Hand

Joined: Aug 10, 2008
Posts: 117
The class extends WebProjectWizard which inturn extends the NewProjectDataModelFacetWizard where the method createBeginingPages has been defined.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Adding multiple pages to wizard