Writing a simple application:
class ExampleApplication(args: Array<String>) : XApplication(args) {
init {
this.title = "Example"
// Add a simple text
this.contentPane.text("Hello, Fusion!")
// Let's change the LookAndFeel
this.uiConfig.lookAndFeel = NimbusLookAndFeel()
}
companion object {
@JvmStatic
fun main(args: Array<String>) {
// No SwingUtilities.invokeLater() required!
val app = ExampleApplication(args)
app.run()
}
}
}
Copyright © 2019 Thomas Orlando, ATPC
Licensed under GNU Lesser General Public License, Version 3
For the full license text, see LICENSE.txt
or https://www.gnu.org/licenses/.