How to use WIzardDialog

A discussion forum for the JCommon class library.
Locked
cz

How to use WIzardDialog

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

Hello,

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 );
wd.show();

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

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

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

Hi,

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

Locked