我有一个JFrame,该JFrame在事件发生时会弹出.我有一个功能,当事件发生时,JFrame会弹出,如果我们单击该框架,它将打开相应的框架,但是问题是当事件发生时,如果另一个事件到来,我没有单击弹出的框架它在任务栏中以闪烁状态显示框架,但不是在打开状态,我想按原样显示框架,而在任务栏中框架没有闪烁??? 有任何建议吗?
I have a JFrame which pops up when the event occurs. I am having a functionality which when the event occurs the JFrame pops up and if we click on that Frame it will open the corresponding frame, but the issue is when I am not clicking the popped up frame when the event occurs, if another event comes its displays the frame in the taskbar in a blinking state but not in an open state, I want to display the frame as it is without the frame blinking in the taskbar???? Any suggestions???
推荐答案我已经遇到了这样的问题.尝试致电
I already had such problem. try to call
frame.setAlwaysOnTop(true);
frame.setAlwaysOnTop(true);
然后,如果您不需要此框出现在顶部始终呼叫
Then if you do not need this frame to appear on top always call
frame.setAlwaysOnTop(false);
frame.setAlwaysOnTop(false);
更多推荐
事件发生时要显示JFrame?
发布评论