mutiple panels in Java using Netbeans 2

preview_player
Показать описание
We extend the panelisation of our frame (I made that word up, I think). 1 class MyPanel is used over and over to make 5 panels as before but we add a clickable button. We also show how to centre the frame and make it finish running when it is closed. We look ahead to the next tutorial when we have 5 different panels, each a class of its own. We observe panels have a default FlowLayout() built-in.

Code:
Рекомендации по теме
Комментарии
Автор

put the LocationRelativeTo before setVisible and setSize

markemmanuelmisodiel
welcome to shbcf.ru