fixed gui stuff

master
Anton Lydike 2 years ago
parent f3c678f589
commit 20bbc7e843

@ -7,6 +7,7 @@ import filter.EchoFilter
import filter.Limiter import filter.Limiter
import gui.SimpleEx import gui.SimpleEx
import random.RandomDisplacementFractal import random.RandomDisplacementFractal
import java.awt.event.WindowAdapter
import javax.swing.JSlider import javax.swing.JSlider
import kotlin.math.cos import kotlin.math.cos
import kotlin.math.pow import kotlin.math.pow
@ -93,8 +94,10 @@ fun main(args: Array<String>) {
frame.add_slider("Property 1", 0, 100, 50).addChangeListener { e -> frame.add_slider("Property 1", 0, 100, 50).addChangeListener { e ->
val value = (e.source as JSlider).value val value = (e.source as JSlider).value
println(value)
} }
frame.isVisible = true
} }

Loading…
Cancel
Save