About 390,000 results
Open links in new tab
  1. Kotlin Swing - creating Swing GUI applications in Kotlin - ZetCode

    Jan 29, 2024 · This article shows how to create Swing GUI applications in Kotlin. The code examples and image are available at the author's Github Kotlin-Swing repository. Swing is the principal GUI toolkit for JVM. It is a library which enables us to create powerful GUI applications. In the first example, we show a basic window on the screen.

  2. Kotlin for Desktop Applications: Using Kotlin and Swing

    Jan 12, 2025 · Swing is a GUI library for Java that provides a comprehensive set of components and tools for building desktop applications. Kotlin for Desktop Applications uses the Swing library to create desktop applications. Kotlin code is compiled to …

  3. GitHub - xemantic/xemantic-kotlin-swing-dsl: Express your Swing

    Jan 2, 2014 · Express your Swing code easily in Kotlin. Why? Kotlin provides incredible language sugar over pure Java. Using Kotlin for writing Swing UI already makes the code more concise, but what if the Swing was written from scratch, to provide Kotlin-idiomatic way of doing things?

  4. A Kotlin/Swing GUI example (uses JFrame, JScrollPane, and …

    Jul 8, 2020 · Here’s a little Kotlin example that uses Java Swing, including a JFrame, JScrollPane, and JTextArea: val textArea = JTextArea("Hello, Kotlin/Swing world") val scrollPane = JScrollPane(textArea) val frame = JFrame("Hello, Kotlin/Swing") frame.getContentPane().add(scrollPane, BorderLayout.CENTER) frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)

  5. Swing interoperability | Kotlin Multiplatform Development

    Nov 29, 2024 · With interoperability, you can combine Swing and Compose Multiplatform in both ways: adding Swing components to a Compose Multiplatform application and adding Compose Multiplatform components to a Swing application.

  6. How would I use a button in kotlin using Swing?

    Feb 21, 2018 · Here is an example in Java and the same example in Kotlin: Java: import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; public class SwingJ { private JFrame mainFrame; private JLabel headerLabel; private JLabel ...

  7. The Programmers Guide To Kotlin - Using Swing

    Feb 26, 2024 · At the moment pure Kotlin programs that target the JVM and make no use of Java code are are rare. In this extract from the book on Kotlin by Mike James we look at how to use a general Java library - Swing - to use Java code within Kotlin programs.

  8. A library for handy work with Java Swing in Kotlin - GitHub

    This library allow you work with Java Swing in more handy Kotlin way. It shows how flexible Kotlin is. With Lambda's and Extension functions you can build much more flexible and powerful Apps powered on Java Virtual Machine :)

  9. Use jshell (or Kotlin) for playing with AWT, Swing or SWT

    Sep 3, 2018 · JShell is a Java language REPL console shipped along newer versions of JDK. If you have access to it you can have fun using it for playing with GUI toolkits. I will demonstrate a simple use of AWT, Swing and SWT using JShell.

  10. Kotlin Swing - 极客教程

    Kotlin Swing 教程展示了如何在 Kotlin 中创建 Swing GUI 应用。 代码示例和图像可从作者的 Github Kotlin-Swing 存储库中获得。 Swing 是 Java 编程语言的主要 GUI 工具包。

Refresh