Swing dsl

DSL for creating swing GUIs

License

License

MIT
GroupId

GroupId

com.github.weisj
ArtifactId

ArtifactId

swing-dsl
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

Swing dsl
DSL for creating swing GUIs
Project URL

Project URL

https://github.com/weisJ/swing-dsl
Project Organization

Project Organization

com.github.weisj
Source Code Management

Source Code Management

https://github.com/weisJ/swing-dsl

Download swing-dsl

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.weisj/swing-dsl/ -->
<dependency>
    <groupId>com.github.weisj</groupId>
    <artifactId>swing-dsl</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.weisj/swing-dsl/
implementation 'com.github.weisj:swing-dsl:0.1.0'
// https://jarcasting.com/artifacts/com.github.weisj/swing-dsl/
implementation ("com.github.weisj:swing-dsl:0.1.0")
'com.github.weisj:swing-dsl:jar:0.1.0'
<dependency org="com.github.weisj" name="swing-dsl" rev="0.1.0">
  <artifact name="swing-dsl" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.weisj', module='swing-dsl', version='0.1.0')
)
libraryDependencies += "com.github.weisj" % "swing-dsl" % "0.1.0"
[com.github.weisj/swing-dsl "0.1.0"]

Dependencies

compile (1)

Group / Artifact Type Version
com.github.weisj : swing-dsl-core jar 0.1.0

runtime (2)

Group / Artifact Type Version
com.github.weisj : swing-dsl-laf-support jar 0.1.0
com.miglayout : miglayout-swing jar 5.2

Project Modules

There are no modules declared in this project.

CI Autostyle Sonarlint Maven Central

Swing DSL

A standalone library port of the IntelliJ plugin api UI builder dsl.

See https://plugins.jetbrains.com/docs/intellij/kotlin-ui-dsl.html for more information.

This library doesn't implement the full DSL as available in the IntelliJ API as this library was created to meet my own demands for a DSL, and I did need the additional functionality. If there is interest in some specific features fell free to create an issue for it.

The other main difference to the IntelliJ API is the usage of Text instead of String for displayed text content (although 'String' is still supported). To support content localization without having to rebuild the entire UI or manually update all components one can make use of the InternationalizedText.

Currently, the produced layout is only tested with Darklaf however it should also work with almost all other LaFs. For better layout results LaFs can implement VisualPaddingProvider for their borders.

To provide more flexibility with the kind of components used for the UI one can specify a custom ComponentFactory.

Versions

Version
0.1.0