Compose for Desktop is modern toolkit for building native declarative UI made by JetBrains. It's based on Google's Jetpack Compose
Questions tagged [compose-desktop]
147 questions
0
votes
0 answers
Compose desktop "ClassNotFoundException" when using "verticalScroll" modifier
I am getting ClassNotFoundException error when using verticalScroll modifier, I am getting the same error when using LazyColumn too.
Caused by: java.lang.ClassNotFoundException: androidx.compose.ui.input.mouse.MouseScrollFilter_skikoKt
I am using…

Porush Manjhi
- 135
- 12
0
votes
0 answers
How to render pdf file directly inside UI in compose desktop application?
I'm building an application using jetpack compose Desktop for windows os, I want to know how to open PDF files directly inside my own UI?

george Yaney
- 1
- 2
0
votes
1 answer
Problem with Kotlin compose for desktop Window
I'm trying to make a chess engine desktop app with an ui component to it.
The game() method that I mention is a simple while loop that allows me to ask for moves in algebraic notation and make the moves if they are valid ones.
I have the following…

Tp323
- 29
- 11
0
votes
0 answers
Kotlin Internal Error java.lang.IllegalStateException with Jetbrains Compose
Hi I'm new to kotlin and trying to get a Jetpack compose desktop calculator application up and running. I wrote some JUnit tests and attempted to run them, but I am met with an internal error instead. This is the IntelliJ output:
Kotlin: [Internal…

ryanflynn001
- 19
- 3
0
votes
1 answer
How to best show a popup menu on Jetpack Compose for Desktop?
So I have the concept of a popup menu...
@Composable
expect fun PopupMenu(
menuItems: List,
onClickCallbacks: List<() -> Unit>,
showMenu: Boolean,
onDismiss: () -> Unit,
toggle: @Composable () -> Unit,
)
And I have a…

Hakanai
- 12,010
- 10
- 62
- 132
0
votes
1 answer
Problems Loading image in Kotlin Compose desktop
I'm having problems loading images in kotlin compose for desktop
It gives the following error:
image.png resource not found
I have the file on the src folder of the project
I'm not sure if the problem is with the code or the way i imported the…

Tp323
- 29
- 11
0
votes
1 answer
How to get the rgb value on the screen
I have here my code which just displays a simple color palette:
@Composable
fun ColorPicker(modifier: Modifier = Modifier) {
Box(
modifier = modifier
.fillMaxSize()
.background(Brush.horizontalGradient(colors()))
…

Jan
- 9
- 4
0
votes
1 answer
Jetbrains Compose Desktop Elements Overlap
I am writing a compose desktop app.
I have a main window:
Window(size = IntSize(600, 600)) {
// snip logic
Column(horizontalAlignment = Alignment.CenterHorizontally) {
ChessBoard(board.value, modifier = Modifier.fillMaxWidth(0.8f))
…

DownloadPizza
- 3,307
- 1
- 12
- 27
0
votes
1 answer
Network calls not working in EXE distribution build of Compose for Desktop Application
I have used Ktor JVM Client for doing network calls in Compose for Desktop Application.
Network calls are working fine in Debug build means when I am just running the application it's working fine.
But when I create the EXE distribution file, by…

Avijit Karmakar
- 8,890
- 6
- 44
- 59
0
votes
1 answer
Can't build/run Jetpack Compose Multiplatform's desktop version, even on brand new projects on the latest version of IntelliJ
Basically title, I can run Jetpack Compose Desktop projects, but not the desktop part of JCMP, although the Android part runs fine.
Clicking the build button does nothing as well.
Android and Desktop's gradle are unchanged from the project…

Sir
- 99
- 1
- 9
0
votes
1 answer
kotlin.NotImplementedError: An operation is not implemented: not implemented AlertDialog
I was trying to practice a little with desktop compose for kotlin and when i was trying to implement AlertDialog element I got this exception:
Exception in thread "AWT-EventQueue-0 @coroutine#3" kotlin.NotImplementedError: An operation is not…

Arek Kubiński
- 143
- 1
- 10
-1
votes
0 answers
How can I upgrade ProGuard version used in Compose for Desktop?
I use Compose for Desktop and I need to use JDK>18. Unfortunately, build task proguardReleaseJars uses ProGuard version 7.2.2 which support at most 18 version.
How can I use latest version of ProGuard?
My question might seem similaro to this one but…

Alexey Subbota
- 938
- 6
- 23