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.
我想用绘制的阴影制作一个 JFrame。 我做了一个未装饰的窗口,并用阴影(灰色)和空白部分(绿色)制作了背景,并且可以拖动它。
问题是,当我尝试拖动阴影或空白部分时,框架也可以拖动!我想把窗口放在它下面的窗口(另一个应用程序)下面,就像我点击窗口一样。
我试过 setBack(),但它只是把它放在每个窗口下面,而不是后面的窗口。
如何点击窗口?
我无法清楚地理解你的问题。如果想要一个框架内的框架,那么选择 JInternalFrame 类。