how a JDialog can call other JDialog

hi everybody, i wanna know how can I a Dialog can call Other JDialogi did a JFrame call Dialog but not Dialog call JFrame.can you tell me how I do, tnx
[179 byte] By [DeCoa] at [2007-10-3 9:26:38]
# 1
> i did a JFrame call DialogOK.> i wanna know how can I a Dialog can call Other JDialogNo different than the above.
camickra at 2007-7-15 4:40:55 > top of Java-index,Desktop,Core GUI APIs...
# 2

hi camickr well,

which happens is that I can call from a Jframe that in my case is my menu to JDialog, but I have disadvantages in calling a JDialog from the same JDialog

this is part Jframe code

.

.

.

public void actionPerformed(java.awt.event.ActionEvent e) {

if( (e.getSource() == itemRegCustomer) || ( e.getSource() == btnRegCustomer) )

regCustomer();

}

public void regCustomer(){

// RegCustomer is JDialogand constructor in (this, true)

RegCustomer regCus = new RegCustomer(this,true) ;

regCus.setVisible(true);

}

//here constructor JDialog

DocCustomer(new javax.swing.JFrame(), true).setVisible(true);

Very well of this form I call a JDialog from a JFrame but my doubt is since I call a JDialog or another JDialog and a JDialog since it would call a JFrame

Thank you in advance!

DeCoa at 2007-7-15 4:40:55 > top of Java-index,Desktop,Core GUI APIs...
# 3
I am trying to understand your question. But your statements are very confusing? You can call a JDialog from another JDialog or to/from a JFrame as well.What are you asking?
zadoka at 2007-7-15 4:40:55 > top of Java-index,Desktop,Core GUI APIs...
# 4
Hi zadok, which happens is that I am using a translator :)well... yes I have problems in calling JDialog from another JDialog andcall JFrame from a JDialog
DeCoa at 2007-7-15 4:40:55 > top of Java-index,Desktop,Core GUI APIs...
# 5
> yes I have problems in calling JDialog from another> JDialog and> call JFrame from a JDialogWe understand that.But what we don't understand is what problems are you having. Be specific (but don't include a bunch of unnecessary details).
zadoka at 2007-7-15 4:40:55 > top of Java-index,Desktop,Core GUI APIs...
# 6
Then summarizing; two JDialog, a JButton in one, which should call another JDialog.Now a JDialog with a JButton, which calls a JFrame. A simple sample to guide from this point .
DeCoa at 2007-7-15 4:40:55 > top of Java-index,Desktop,Core GUI APIs...
# 7
Have your first dialog create the second dialog when the button is clicked.Have that dialog create the JFrame when that button is pressed.If by call you don't mean create, then just call whatever method you want.I don't understand what your problem is?
zadoka at 2007-7-15 4:40:55 > top of Java-index,Desktop,Core GUI APIs...