Window frame covering graphics content

前端 未结 3 1328
Happy的楠姐
Happy的楠姐 2021-01-21 02:01

this is my first post here and I have a question that seems really nooby, but this has been troubling me for the past hour or so.

I\'m making a simple JFrame with a JPa

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-21 02:38

    Verify that WIDTH and HEIGHT are > 0.

    Try this:

    //add(rs, "center");
    add(rs, BorderLayout.CENTER);
    

提交回复
热议问题