JAVA | JFrame | Frame = [height of a display] minus [Height of widows taskbar]

0

Previously ask this question: - > Java | Jframe | Generate with anchor to the right of the screen

Now what I want to do is [Well, the high one I already have thanks to Johnny who solved me] that the height of the JFrame does not take into account the Windows taskbar.

Thank you.

    
asked by José Herrera Avila 19.07.2017 в 18:58
source

1 answer

0

With this you can go playing and go see the position:

Dimension pantalla = Toolkit.getDefaultToolkit().getScreenSize();
        setSize( (int) pantalla.getWidth(), (int) pantalla.getHeight() - 40 );
        setLocation( (int) pantalla.getWidth() - getWidth(), 0 );

In the setting of the size, setSize , in the second parameter you will be subtracting it and adjusting it to your screen. I do not know if that's what you're looking for or I'm misunderstanding the question

    
answered by 19.07.2017 / 22:32
source