Return value from a class
Hi!I have created a JDialog object. In this JDialog the user has to choose some values and then Acept and the window dissapears. I want that when you click on Acept, return the values you have choosed to the class from you have created the JDialog. How can I do it?Thanks!
[293 byte] By [
JonAsala] at [2007-11-27 4:36:48]

class MyDialog extends JDialog {
public void setFoo(String string) {...}
public String getFoo() {...}
...
}
Your caller can extract the foo value by calling getFoo.