INNER CODE UNIT · Kotlin
createSwingContent
fjossinet/RNArtist · src/main/kotlin/RNArtist.kt:670
private fun createSwingContent(swingNode: SwingNode) {
Platform.runLater {
val canvas = SwingCanvas2D(mediator)
swingNode.content = canvas
swingNode.isCache = true
swingNode.cacheHint = CacheHint.SPEED
}
}
private inner class UpperLeftPanel() : VerticalMainPanel() {
val drawingConfigurationPanel = DrawingConfigurationPanel()
val settingsPanel = SettingsPanel()
init {
this.addMenuBarButton("fas-paint-brush:15", "Theme panel for the full 2D", drawingConfigurationPanel)
//this.addMenuBarButton("fas-tools:15", settingsPanel)
}