views:

91

answers:

1

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 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

A: 

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).

aeter