How to use WIzardDialog

A discussion forum for the JCommon class library.
Post Reply

How to use WIzardDialog

Post by cz » Tue May 13, 2003 10:12 am


I wanted to use the Wizard Dialog, but dialog has 0x0 pixel until I enlarge it using the mouse. Is there an example how to use the Wizard ?

WizardPanel about = new BCAboutPanel( );
WizardDialog wd = new WizardDialog( (JFrame) null, true, "", about );;

public BCAboutPanel( ) {
super( new BorderLayout( ) );

JTextArea msg = new JTextArea( text );

ImageIcon logo = new ImageIcon(BatchCreation.class.getResource("kandalf.png"));
this.add( new JLabel( logo), BorderLayout.EAST );


Bye, Carten

JFreeReport Project Leader
Posts: 698
Joined: Fri Mar 14, 2003 3:34 pm

Post by Taqua » Tue May 13, 2003 8:57 pm


as with every dialog, you will have to either set the initial dialog size manually (Dialog.setSize()) or you have to use Dialog.pack() to let the system calculate one for you.

Have more fun,
said Thomas

Post Reply