需要先設置maximunsize neuStart.setBorder(BorderFactory.createRaisedBevelBorder()); neuStart.setMaximumSize(d); neuStart.setPreferredSize(d); ...
需要先設置maximunsize
neuStart.setBorder(BorderFactory.createRaisedBevelBorder());
neuStart.setMaximumSize(d);
neuStart.setPreferredSize(d);