I don't undertand what I'm doing wrong, I'm trying to pass a value from a
Frame2.java to Frame1.java
For example:
in Frame2.java I have the following:
String h = jTextField1.getText;

and in Frame1.java I have the following:
Frame2 frame2 = new Frame2();
JOptionPane.showMessageDialog (null,frame2.h);

can you tell me what I'm doing wrong
thanks in advance