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);
        myFrame.getFrame().setSize(1200,700);
        myFrame.getFrame().setVisible(true);
        // Get the size of the screen
        
        //myFrame.getComponent().setb
        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);
        
        
        
    }

Recommended Answers

All 2 Replies

setUndecorated(true);
(do this before making visible etc)

Thank You Very Much

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.