开发者

How do I prevent JDialog from showing in gnome-panel(Linux)?

I have a class:

public class ANote extends JDialog{...}

In GNOME(Linux) it shows an entry in the gnome-panel. I want it to show nothing (under Windows the instances of JDialog show nothing in the Windows taskbar), because there may be present several instances of the class simultaneously, and this overcrowds the gnome-panel.

How do I prevent it from showing an instance in the gnome-panel?

EDIT: So far开发者_如何学JAVA I have tried playing with the modality, which hides it from the gnome-panel, but blocks the main frame of the application behind the ANote instances.

EDIT2 - edited the post for clarity


I have found a workaround; instead of instantiating the class with:

new ANote();

I call the class as:

JWindow aNoteWindow = new JWindow(new ANote());

which no more overcrowds the gnome-panel with instances of this class. It also works as expected on Windows XP (no entries in the taskbar).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜