imgui-java
compose-multiplatform
imgui-java | compose-multiplatform | |
---|---|---|
5 | 96 | |
535 | 14,969 | |
- | 1.8% | |
6.3 | 9.6 | |
18 days ago | 7 days ago | |
Java | Kotlin | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
imgui-java
- Lets-Plot: An open-source plotting library by JetBrains
-
JavaFX 19 Released
So this makes me wonder: how common is desktop app development with Java these days? I imagine there is still a lot done for internal app, but is it still viable to ship Java apps to end users? How you handle JRE distribution in that case?
Anyway also wanna shout out Dear ImGui[0]. I've been using it recently to build an interactive UI to quite complicated networking code. So far it been great for manual testing and demos, and it's fairly low maintenance once running.
[0] https://github.com/SpaiR/imgui-java
- Basic ClickGUI
-
A go-to GUI library for Kotlin
If you aren't off-put by the Blender/Unity UI style, there's also ImGUI a possibility as it has some java bindings available.
-
GUI in LWJGL
If you want a library that has an active community and a lot of examples try out imgui (java port: https://github.com/SpaiR/imgui-java). It is a C based language but seems like the port are pretty close to the original api so you can follow not only the java docs but the c/c++ ones as well. There are a few game engines that utilizes imgui in the editor because it is lightweight, easy to extend, theme and use.
compose-multiplatform
-
Understanding file associations in JVM apps
So, to add file associations, we need to be able to pass both the .properties file and the --file-associations option. At the time of writing this article, the org.jetbrains.compose plugin doesn't provide such a mechanism. There is an open issue on GitHub that describes a possible workaround, which, unfortunately seems to not work on macOS.
-
Compose cannot be used for large amount of text
JetBrains has a simplified example of a general-purpose Compose text viewer here: https://github.com/JetBrains/compose-multiplatform/blob/master/examples/codeviewer/shared/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/editor/Editor.kt
-
[Compose Multiplatform] Disable a button according to a list of flow values
![image](https://github.com/JetBrains/compose-multiplatform/assets/1382241/6747a3f6-53b9-43da-8d97-ab1e1e31170f)
- Compose Multiplatform 1.5.0-beta01
-
Timeline with Scrollbar in LazyColumn Compose
Compose for desktop has a scrollbar component available. You probably can't use that directly on Android, but you could probably steal most of its code.
- How good is Compose Multiplatform in production especially in creating Desktop apps?
-
Kotlin for a desktop App
My company uses https://github.com/JetBrains/compose-multiplatform to make a desktop app in Kotlin. It's amazing and fantastic. It's basically as mature as using Kotlin in an Android app.
-
Kamel v0.5.0 released with Kotlin Native and JS support
Kamel is an asynchronous media loading library for Compose Multiplatform.
-
Ksoup - Kotlin Multiplatform HTML Parser ⚡
Kotlin Compose Multiplatform is the way to do Desktop apps. https://github.com/JetBrains/compose-multiplatform
-
JetBrains Compose is now Compose Multiplatform
As for missing controls, a common one is a grid. They have built in grids, but again they are built for Android and don't make any sense in a desktop app. There is no simple way to create an Excel-like Data Grid like you might see in Windows Forms, although it can be done. https://github.com/JetBrains/compose-multiplatform/issues/344.
What are some alternatives?
LWJGL - LWJGL is a Java library that enables cross-platform access to popular native APIs useful in the development of graphics (OpenGL, Vulkan, bgfx), audio (OpenAL, Opus), parallel computing (OpenCL, CUDA) and XR (OpenVR, LibOVR, OpenXR) applications.
javafx-examples - A large collection of JavaFX examples demonstrating basic + advanced features of JavaFX.
LWJGUI - Simple UI solution for LWJGL3
tornadofx - Lightweight JavaFX Framework for Kotlin
Vulkan-Tutorial-Java - Vulkan tutorial by Alexander Overvoorde ported to Java
skiko - Kotlin MPP bindings to Skia
darklaf - Darklaf - A themeable swing Look and Feel based on Darcula-Laf
javafx-gradle-plugin - Gradle plugin that makes it easy to work with JavaFX 11+
jnativehook - Global keyboard and mouse listeners for Java.
Jetpack-Compose-Playground - Community-driven collection of Jetpack Compose example code and tutorials :rocket: https://foso.github.io/compose
ImFrame - dear imgui + glfw framework
tornadofx2 - TornadoFX 2.0