如何在Java中使JFrame模糊? [英] How to make a JFrame blurred in java?

查看:80
本文介绍了如何在Java中使JFrame模糊?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Java程序中,当用户单击主JFrame中的按钮时,在主框架顶部可以看到另一个JFrame.现在如何使前一帧模糊? 就像图片中的背景一样:

In my java program, when the user clicks on a button in the main JFrame another JFrame becomes visible on top of the main frame. Now how to make the previous frame blurred? Exactly like the background in the image :

推荐答案

现在如何使前一帧变得模糊?

Now how to make the previous frame blurred?

> GlassPane ,或者使用 JViewport (不正确的方法,但是良好的Swing GUI在JFrame/JDialog/JWindow中包含JScrollPane作为第一个JComponent)

similair effect is possible with GlassPane, or with JViewport (not proper of ways, but good Swing GUI contains JScrollPane as 1st. JComponent in JFrame / JDialog / JWindow)

这篇关于如何在Java中使JFrame模糊?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆