# How to keep .kt files not too long

**URL:** <https://openrndr.discourse.group/t/how-to-keep-kt-files-not-too-long/55>\
**Category:** How to?\
**Created:** [March 18, 2020, 4:07pm UTC](https://openrndr.discourse.group/t/how-to-keep-kt-files-not-too-long/55 "2020-03-18T16:07:25Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![edwin](https://avatars.discourse-cdn.com/v4/letter/e/73ab20/32.png) [@edwin](https://openrndr.discourse.group/u/edwin)\
**Post date:** [July 20, 2020, 8:40am UTC](https://openrndr.discourse.group/t/how-to-keep-kt-files-not-too-long/55/7 "2020-07-20T08:40:44Z")

</div>

We recently developed tools for `orx-panel` to simplify the creation of data-driven UIs. The tools are called `WatchListDiv`, `WatchPropertyDiv` and `WatchObjectDiv` and fit in nicely with the state class example I demonstrated before.

A demo for `WatchListDiv` including the loading and saving of state to json files:

> <https://github.com/openrndr/orx/blob/master/orx-jvm/orx-panel/src/demo/kotlin/DemoWatchDiv01.kt>

A demo for `WatchObjectDiv`:

> <https://github.com/openrndr/orx/blob/master/orx-jvm/orx-panel/src/demo/kotlin/DemoWatchObjectDiv01.kt>

---

_[View the full topic](https://openrndr.discourse.group/t/how-to-keep-kt-files-not-too-long/55)._
