test1.java 라는 클래스가 있어요.
jframe으로 되어있어서 jtextfield 안에 사용자가 입력하는 값을 string 변수로 선언하고 (gettext사용)
그 변수를 test2.java라는 클래스에서 사용할려고 하는데요...
우선 지금 해놓은게
public class test1 extends JFrame implements ActionListener {
private String id;
private String pw;
public String getid() {
return this.id; }
public String getpw() {
return this.pw; }
--------------------------------------------------------- 여기까지가 test1.java 파일
그리고 test2에서 이제
public class test2 extends JFrame implements ActionListener {
하고나서 어떻게 해야하나요..???