문제

How can I transfer text from a JSpinner to a JTextArea? I thought about .getText(); but it's not working.

dobDate = new JSpinner(new SpinnerDateModel(today, null, null,Calendar.MONTH));
dateEdit = new JSpinner.DateEditor(dobDate, "dd/MM/yy");
dobDate.setEditor(dateEdit);
dobDate.setBounds(215,270, 120, 25);
도움이 되었습니까?

해결책

From JSpinner you can use getValue(). From JTextArea you can use insert() or append()

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top