JFrame inside another JFrame

后端 未结 5 696
[愿得一人]
[愿得一人] 2020-12-19 10:55

I have a game of chess. I have written 3 classes. 1st if for game. (chessboard, pieces, and so on) And another one is for menu. (buttons like new, open, set time)

Bo

5条回答
  •  甜味超标
    2020-12-19 11:20

    You can use JPanels for that. It's easier that way... use a JFrame for the main window and for menu items use a JPanel inside it. Search for tutorials on JPanel usage.

提交回复
热议问题