显示Jframe但不在任务栏上显示标题栏 [英] show Jframe but not show title bar on task bar

查看:288
本文介绍了显示Jframe但不在任务栏上显示标题栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我在屏幕的一角显示一个Jframe以通知。
我想只显示Jframe并且不在任务栏显示标题栏。

In my application, I show a Jframe at the corner of screen for notification. And I want to show only Jframe and do not display a title bar at task bar.

我该怎么做?

推荐答案

如果您希望窗口只显示并且既没有标题栏也没有出现在任务栏中,请使用 JWindow

If you want the window to just appear and have neither a title bar nor appear in the taskbar, use a JWindow.

如果您希望窗口出现并有标题栏但未显示在任务栏中,请使用 JDialog

If you want the window to appear and have a title bar but to not appear in the taskbar, use a JDialog.

这篇关于显示Jframe但不在任务栏上显示标题栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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