Hi all,
I'm new to Swing programming and have the following newbie question.
I've got a simple class that has got two JTextFields and a submit button. I've decided to implement the Listener in a totally different class. The problem is that I want to pass the value from my JTextField into my listener class, which then is going to send this data to some other class(for manipulation or storage in DB).
I've had the MVC concept in mind when I started with this. Well, it might be wrong passing the values of my textfields to the Listener class and then pass them on to somewhere else. Have anyone got any suggestions on how to solve this or even a better approach on how to handle this kind of issues?
Best Regards
Erik
I'm new to Swing programming and have the following newbie question.
I've got a simple class that has got two JTextFields and a submit button. I've decided to implement the Listener in a totally different class. The problem is that I want to pass the value from my JTextField into my listener class, which then is going to send this data to some other class(for manipulation or storage in DB).
I've had the MVC concept in mind when I started with this. Well, it might be wrong passing the values of my textfields to the Listener class and then pass them on to somewhere else. Have anyone got any suggestions on how to solve this or even a better approach on how to handle this kind of issues?
Best Regards
Erik