How do I get an app to not be full screen (jvm)?
# doodle
s
How do I get an app to not be full screen (jvm)?
and also, different question entirely, are there any debounce mechanisms for things like
keyChanged
?
n
yes, you can change the window size using the
main
property on
WindowGroup
. this is available in the jvm platform only. so you can grab the instance in your jvm main within the application block and set its
size
there. this way your app can remain in common code and this logic only happens for desktop. or, you can inject it into your app (if the app is desktop only) and do the same there. https://nacular.github.io/doodle/docs/platform_specific/desktop
there currently is no debounce. you’d have to decide how to handle that in your app. curious about the use case though.
s
awesome. thank you very much. debounce is for taking data in one field (the textarea field I added to doodle locally just to prove out something) and then when the user stops typing a service runs with that data and updates another pane. service has the potential to run slowly so don’t want to run it on every keystroke.