Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想设置一个最小尺寸,例如 200x200,所以当我的窗格调整大小时,它不能比选择的最小尺寸小。任何人的想法?
使用setMinSize方法设置Pane的最小尺寸:
Pane pane = new Pane(); pane.setMinSize(200, 200);