JDialog with JApplet??
1 posts in topic
Flat View  Flat View

Posted By:   preeti_padhy
Posted On:   Monday, April 22, 2002 09:26 AM

is there any way i can use JDialog to work with JApplet as parent

Re: JDialog with JApplet??

Posted By:   John_Ramm  
Posted On:   Thursday, April 25, 2002 07:28 AM

Yes, you can use the getFrameForComponent(...) method of JOptionPane.

i.e. within the JApplet, where MyNewDlg is derived from a JDialog

MyNewDlg dlg = new MyNewDlg(JOptionPane.getFrameForComponent(this));

About | Sitemap | Contact