How to use WIzardDialog

A discussion forum for the JCommon class library.

How to use WIzardDialog

Postby 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
cz
 

Postby 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
Taqua
JFreeReport Project Leader
 
Posts: 698
Joined: Fri Mar 14, 2003 3:34 pm


Return to JCommon

Who is online

Users browsing this forum: No registered users and 2 guests