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.
我想在 Java Swing 中创建一个图层,当我将鼠标移到编辑器窗格上的特定区域时将显示该图层。
最简单的解决方案是使用JXLayer框架
是的,您必须创建一个组件来绘制您想要显示的任何内容,并将其设置为框架的玻璃板。我以这种方式创建了放大镜。有关详细信息,请参阅此处。