所以我想創建一個JSpinner的子類,這樣我就可以隱藏所有的配置。問題是當我把這個對象放在JFrame上時,我得到了UI找不到的錯誤。 我無法找出我錯過.. public class Time extends JSpinner {
public Time() {
super();
SpinnerDateModel SpinnerModel = new Spin
我使用當前時間使用datemodel設置JSpinner。 startDateModel = new SpinnerDateModel(Calendar.getInstance().getTime(),null,null,Calendar.YEAR);
startDateSpinner = new JSpinner(startDateModel);
JSpinner.DateE
這可能是一個很簡單的問題,但我有一個AbstractTable,在我列一個我試圖添加ChangeListener,但它給我一個錯誤的錯誤是: The method actionListener(ChangeListener) in the type JSpinner is not applicable
for the arguments (new ChangeListener(){})