74677

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

Question:

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

Answer1:

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

Recommend

  • Win32: How do I enumerate all the threads belonging to a process in C++? [duplicate]
  • Which's better: MDI children, or modeless dialogs?
  • Memory profiling tool for Delphi?
  • How can I hide the Windows 7 logo in the taskbar?
  • Can I use PropertyChanged and LostFocus together?
  • How can I generate integers that satisfy some restrictions?
  • Async Controllers in ASP.NET MVC
  • How to show underscore (shortcut) without holding Alt?
  • qt how to know that a pushbutton is clicked?
  • css font-size and line-height not matching the baseline
  • LNK1104: cannot open file 'kernel32.lib'
  • How to protect an asp:textbox from user input?
  • Passing information to server-side function in a Google Docs Add On
  • Certain Arabic text gets incorrectly shown while other Arabic text gets showed normally?
  • Invert string in Rust
  • Changing media screen makes div overlay
  • Less Conflicting Session Manager for Zope 2
  • How to implement Deep Linking in Roku SG application?
  • What's the syntax to inherit documentation from another indexer?
  • Consuming a WCF service in a Java Client using wsHttpBinding
  • Azure table store snapshot/backup capability
  • Bash if statement with multiple conditions
  • calculate gradient output for Theta update rule
  • Tamper-proof configuration files in .NET?
  • ActiveRecord query for a count of new users by day
  • Record samples being played with OpenAL
  • Exception “firebase.functions() takes … no argument …” when specifying a region for a Cloud Function
  • Highlight one bar in a series in highcharts?
  • Is there any way to access browser form field suggestions from JavaScript?
  • Sony Xperia Z Tablet not found by adb
  • Sending data from AppleScript to FileMaker records
  • Javascript convert timezone issue
  • Why is the timeout on a windows udp receive socket always 500ms longer than set by SO_RCVTIMEO?
  • jQuery tmpl and DataLink beta
  • Calling of Constructors in a Java
  • PHP: When would you need the self:: keyword?
  • KeystoneJS: Relationships in Admin UI not updating
  • AngularJs get employee from factory
  • Load html files in TinyMce
  • How do you join a server to an Active Directory (domain)?