Hy ,

Is there any way to remove the windows borders (the upper with the name and (space) close , minimize , maximize ,the right one , left , down) from an java app?
I develop the app in NetBeans , so here is my code for opening the "main" window where are all the buttons , menus .
I also determine the size of frame , location where to open.

@Override protected void startup() {
        //show(new GestiuneView(this));
        GestiuneView myFrame = new GestiuneView(this);
        // Get the size of the screen
        Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
        // Determine the new location of the window
        int w = myFrame.getFrame().getSize().width;
        int h = myFrame.getFrame().getSize().height;
        int x =  (dim.width-w)/2;
        int y = ((dim.height-h)/2)-30;
        // Move the window
        myFrame.getFrame().setLocation(x, y);
Attachments poza.png 22.08 KB
This question has already been answered. Start a new discussion instead.