Java startup process only in the background

Now I have a frame in full-screen exclusive mode that controls the entire screen. There is a button on the panel that launches its own Windows calculator program (for testing purposes only). Is it possible that this process starts completely in the background? Right now I have this:

    this.parent.setAlwaysOnTop(true);
    try {
    Process p = Runtime.getRuntime().exec("calc");
    } catch (IOException e1) {
    ErrorDialog error = new ErrorDialog("Error handling your shell action");
    e1.printStackTrace();
    System.exit(0);
    }
    this.parent.setAlwaysOnTop(false);

It does what I need, but does not make it beautiful. First, it “minimizes” my window, then it starts calculating, and then it enlarges my window again. Everything happens quickly, but things blink all the time. Is it possible to run calc in the background without touching my main window and making it completely seamless?

+3
source share
2 answers

, , , , X- (, Linux Unix ).

, , , . .

, , , , , " " .

KDE ( KDE), kstart --onbottom ... kstart --minimize ..., , . ( kstart, --window --windowclass .)

+1

Linux, , . Windows, .

, , Java, , . .

+1

All Articles