Registry / utility / ui-desktop

ui-desktop

JSON →
library1.10.3javamavenunverified

Compose UI primitives for desktop applications, providing drawing, measurement, and layout capabilities.

<dependency> <groupId>org.jetbrains.compose.ui</groupId> <artifactId>ui-desktop</artifactId> <version>1.10.3</version> </dependency>
INSTALL
IMPORT
SIG · UI-DESKTOP
U
ui-desktop
utilityjavav1.10.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Modifier
androidx.compose.ui.Modifier

Minimal example showing a Compose Desktop window with centered text.

import androidx.compose.ui.Modifier; import androidx.compose.foundation.layout.Box; import androidx.compose.material.Text; import androidx.compose.ui.unit.dp; import androidx.compose.ui.Alignment; import androidx.compose.ui.window.Window; import androidx.compose.ui.window.application; public class Quickstart { public static void main(String[] args) { application { Window(onCloseRequest = ::exitApplication) { Box(modifier = Modifier.fillMaxSize(), contentAlignment = Alignment.Center) { Text("Hello, Compose Desktop!") } } } } }
Debug
Known issues
gotchaRequires JDK 11+ and may have rendering issues on some Linux window managers.
fix
Use JDK 11 or later and test on supported platforms (Windows, macOS, Linux with X11).
affects: all
Upgrade
Version history
1.10.3latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
ui-desktop — mvn dependency:get ui-desktop · libregistry