开发者

JFrame invisible border issue

开发者 https://www.devze.com 2023-04-07 21:40 出处:网络
I´ve a little issue I would like to get solved. On my JFrame there seems to be like an invisible border around the frame. So when something should be invisible or stop at ykoord = 0 e.g., it becomes

I´ve a little issue I would like to get solved.

On my JFrame there seems to be like an invisible border around the frame. So when something should be invisible or stop at ykoord = 0 e.g., it becomes invisible/stops like 20 pixels from the borders you see. Although the background is painted correctly...

Maybe I need to add something here:

 public Game()
    {
        add(new Board());
        setTitle("Game");
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize(BOARD_WIDTH, BOARD_HEIGTH);
        setLocationRelativeTo(null);
        setVisible(true);
开发者_开发技巧        setResizable(false);
    }

Please help!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号