This is my main class code:
public static void main(String[] args) {
JFrame f= new JFrame ("My Frame");
f.setDefaultCloseOperation (JFrame .EXIT_ON_CLOSE);
JTabbedPane tp = new JTabbedPane();
tp.addTab("Pane1", new PaneFirst());
tp.addTab("Pane2", new PaneSecond());
f.add(tp);
f.pack();
f.setVisible(true);
}
In PaneFirst, I have a list of user-entered-value(textfields), lets say I have 5. And I store each of the value into an array(or maybe arraylist). How do I pass those 5 values from PaneFirst to PaneSecond?
(Sorry, I am new to Java and Object Oriented Programming language)