Hi, i can't figure it out how to solve this, the thing is that i have a Frame_A with a JList in it, then another frame: frame_B with a couple of textFields, i call the frame_B from the frame_A, i fill the textFields and the i need to click a Save button and insert the content of the textfields in the Jlist of frame A. Any Ideas.
1) Are these JFrames and are you using JTextFields? I'm just making sure that you're not mixing Swing and AWT components.
2) Consider using a JDialog or JOptionPane for your second "frame". It just seems to me to be a more natural fit here, plus you can make it modal or not if need be.
3) There are many ways to answer this. Remember that class A and class B are like any other classes despite their being inherited from Swing components. They can have private variables with public getters and setters and all that. One way to solve this is to have a public methods in class B that gets your data, say getStringA and getStringB. When the object of class B is done doing its thing, the object of class A can then call B's public methods to get this data. Here is a very simplistic example that uses a JOptionPane:
ClassA.java
ClassB.java
[ April 25, 2008: Message edited by: pete stein ]