0

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);
4

1 回答 1

1

JSpinner你可以使用getValue(). 从JTextArea您可以使用insert()append()

于 2013-03-26T21:54:21.677 回答