如何限制比在任务栏1 java应用程序的图标吗? [英] how to restrict more than one java application icon on taskbar?

查看:231
本文介绍了如何限制比在任务栏1 java应用程序的图标吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Java中创建具有几种形式的应用程序。
在应用程序启动变得按钮单击事件打开了新的形式,在Windows中的任务栏上的这种形式获得的增加图标的数目。
我要的只是applicatoin图标应显示任务栏上的一个形式是打开还是一个以上。

I have created an application in java which have several forms. During application start getting open new form on button click event,On windows's taskbar the number of icons of that form getting increases. what I want is only applicatoin icon should be displayed on task bar whether one form is open or more than one.

推荐答案

这个问题是因为每个的JFrame 获得一个任务栏图标。请参见多JFrames,好/坏实践用?的链接,多种解决方案。

The problem happens because each JFrame gets a task-bar icon. See The Use of Multiple JFrames, Good/Bad Practice? for links to a multitude of solutions.

这篇关于如何限制比在任务栏1 java应用程序的图标吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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