How to sent information between JFrames!?

Hi!

Im writting the system connecting to MySQL data base. Right now im writting the JDialog form the it responsible for deleting. Im putting extra window just as warning window (delete, cancel); how i can sent String from main window to delete/notDelete window. Im starting the window like that. The string is in

JTextField A;

...

A.getText();// it is my String That i wanna

// sent to DELETEWINDOW

...

publicvoid ButtonActionPerformed()

{

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

}

[892 byte] By [krystiancza] at [2007-11-27 1:00:35]
# 1
options available include having a constructor in DeleteWindow that takes the String as a parameter and having an instance variable which represents the string in DeleteWindow and then calling an mutator method on that variable from another class, e.g. setXXX(String s) { x = s; }
filestreama at 2007-7-11 23:35:16 > top of Java-index,Java Essentials,Java Programming...
# 2

It's story time again.

Aliens land on Earth and somehow end up at a concert hall, watching

a conductor lead an orchestra. They are enraptured by what they hear

and decide to observe with care, so that they can implement this on

their home planet. They watch and note that when the conductor moves his

baton *so*, all the violins' bows go up, and when he moves the baton back,

the bows go down. How is information about what to play sent from the

baton to the bow?

In your case, your warning window is so simple that no matter how you

approach the problem, if you code it, it will work. But do you think the

aliens will succeed without realizing that there is a model, the musical

score, on which the music is built, rather than just through gestures?

DrLaszloJamfa at 2007-7-11 23:35:16 > top of Java-index,Java Essentials,Java Programming...