Hi there,
I have run in to a little trouble which should be quite simple
I have 2 java files: one that loads the data, the second that displays data in a jframe
how can I pass the data from one to another?
in file ReadXML.java:
public class ReadXML {
public ReadXML() {
init();
// Reads in the data from XML
// sets StrAllData
}
private String StrAllData;
in file Cpass.java:
public class Cpass extends javax.swing.JFrame {
/** Creates new form Cpass */
public Cpass() {
initComponents();
// on pushing a button new ReadXML();
// need a way to grab StrAllData
// can then set a text field to this
}