views:

282

answers:

2

I would like to have a normal JFrame with its full functionalities (decoration, title, icon, resizing, minimizing, maximizing, etc.), with the only thing that it wouldn't appear in the system's taskbar.

(Typically, there would be another program opening and managing them).

Is it possible ? And if yes, what is the best way to do that ?

+3  A: 

Use a non-modal JDialog instead of a JFrame.

bruno conde
I'm not sure if I can do same with a JDialog, though. If I remember, I can't set a specific icon, or have the minimize and maximize buttons.
Gnoupi
A: 

hi, i'm traying a jdialog on linux, but it still appears in my taskbar. this is the code? what's wrong?

import javax.swing.JDialog;

public class Main {
    public static void main(String [] args) {
        new mydialog();
    }

    private static class mydialog extends JDialog {
        public mydialog() {
            super();
            setSize(200,200);
            setLocationByPlatform(true);
            setAlwaysOnTop(false);
            setUndecorated(true);
            setVisible(true);
        }
    }
}
Syco
Please ask this in a separate question. Answers should be only used to answer questions.
Gnoupi