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);

Recommended Answers

(do this before making visible etc)

Jump to Post

All 2 Replies

(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 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.