Hello,
I have what is probably an obvious question.
I have a basic GUI, one is bsaically no more than a menu in its own class along with a bunch of support classes to do what i want. Another GUI which is for editing the information whcih the main GUI stores and processes.
I have an option to "add item" in the menu gui, this then opens the other GUI and you enter all the data you want, then hit "add".
so my question is, once the user hits "add" how do i then return the data they've input to the original GUI?
for example, the original GUI has something like;
ArrayList<data> info = new ArrayList<data>();
private AbstractAction getData(){
pd = new GUIProcessData();
pd.pack();
pd.setLocationRelativeTo(null);
pd.setVisible(true);
info.add( ** the data from the other GUI once the add button is pressed ** );
}
It's not a real code snippet, but it's more just a better way to explain what i was hoping to achieve. I will post more code if it will help, but i'd love to get a clear explanation in words so i can attempt to do it myself.
Thanks in advance for any and all help. As i said, im sure its obvious, i've been working on something for most of the day to no avail.
- xyster