本文介绍了Java的玻璃板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题。我要问你我怎么能实现玻璃面板画就可以了。

I have a problem. I want to ask you how can I implement GlassPane to paint on it.

我的意思是,如果我点击的mouseClicked 事件鼠标按钮,我的透明玻璃面板应创建的,因为我想看看我身后<$ C $所有组件C>的glassPane ,我可以使用的mouseDragged 事件上作画。当我松开鼠标按钮我的的glassPane 消失。

I mean, if I click mouse button, in mouseClicked event, my transparent glass pane should be created, because I want to see all my components behind glassPane and I can paint on it using mouseDragged event. When I release mouse button my glassPane disappears.

我有另外一个问题了。当我将在玻璃上作画窗格他们身后的我所有的组件将令人耳目一新,并重新粉刷?也许有人有玻璃面板很好的例子可能帮助我。

I have another question too. When I will paint on glass pane all my components behind them will be refreshing and repainting? Maybe somebody have nice example with glass pane which might help me.

推荐答案

这篇关于Java的玻璃板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 21:08