[英]How to block frame resizing JFrame swing SeaGlass L&F
我已經弄清楚了。
JFrame必須實現ComponentListener,並且必須在重寫的componentResized方法中放入該代碼:
setSize(410, 240);
setLocation(startLocation);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.