From 20bbc7e843b1b4921581b5e51c03d5dfadc6d7e4 Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Sat, 21 Jan 2023 14:08:29 +0000 Subject: [PATCH] fixed gui stuff --- src/main/kotlin/Main.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/kotlin/Main.kt b/src/main/kotlin/Main.kt index 5dd93b5..90e5b53 100644 --- a/src/main/kotlin/Main.kt +++ b/src/main/kotlin/Main.kt @@ -7,6 +7,7 @@ import filter.EchoFilter import filter.Limiter import gui.SimpleEx import random.RandomDisplacementFractal +import java.awt.event.WindowAdapter import javax.swing.JSlider import kotlin.math.cos import kotlin.math.pow @@ -93,8 +94,10 @@ fun main(args: Array) { frame.add_slider("Property 1", 0, 100, 50).addChangeListener { e -> val value = (e.source as JSlider).value + println(value) } + frame.isVisible = true }