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.
我创建了一个由JTextfieldand组成的简单自动完成JWindow(作为弹出窗口)。 一切正常,除了当我在底部显示弹出窗口时它超出了屏幕(见图):
JTextfield
JWindow
有没有办法让它总是在屏幕内可见?