General - maliut/mgui GitHub Wiki
MGUI is a GUI system based on Java Swing. It can be used to build games or Java applications with much fewer code lines and no anonymous inner classes which makes your codes more beautiful.
MGUI includes a special concept called "Scene". The scene is implemented by Panel, which extends JPanel, where you can put other component like buttons, labels, etc. You can call frame.pushScene(scene)
to switch to the new scene and frame.popScene()
to return to the former scene.
MGUI also use "Style" to determine the style of components, instead of calling component.setXXX()
all the time, so it can easily be reused. And we provide many preset styles for panels, image buttons, labels, etc. You can directly use it or modify on it. Old Swing style is also accessible.