Frame - maliut/mgui GitHub Wiki
Create a frame by following methods:
// frame with size 544 * 416
Frame f1 = new Frame(544, 416);
// frame with size and title 'my app'
Frame f2 = new Frame(544, 416, "my app");
// frame with size and title and an icon
Frame f3 = new Frame(544, 416, "my app", new ImageIcon(icon.png));
You can use pushScene(scene)``popScene()
to switch scenes. Besides, you can use all the methods defined in JFrame. But above the popular methods, we not recommend you to use add()
because you should only add scenes(panels) on it using pushScene function.