0

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);
        
        
        
    }
Attachments poza.png 22.08 KB
2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by nsyncpilu
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.