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.
我想更改输入对话框的大小及其位置。这可能吗?
答案与任何 Swing GUI 相同:
getPreferredSize()
setLocation(...)
setLocationRelativeTo(...)
pack()
setVisible(true)