All Projects → JetBrains → projector-demo

JetBrains / projector-demo

Licence: GPL-2.0 License
A simple sample application demonstrating running Swing applications remotely

Programming Languages

kotlin
9241 projects

Labels

Projects that are alternatives of or similar to projector-demo

Compose Jb
Jetpack Compose for Desktop and Web, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
Stars: ✭ 7,562 (+23531.25%)
Mutual labels:  swing, awt
java-notes
Complete Java Note for colleges in Nepal.
Stars: ✭ 30 (-6.25%)
Mutual labels:  swing, awt
Emoji-Tools
Multiple useful tools to help Android and iOS/OSX developers with creating and modifying Emoji Font files.
Stars: ✭ 102 (+218.75%)
Mutual labels:  swing
spring-boot-java-swing-reservations
The project aims to present how to connect Spring Boot 2 and Java Swing GUI widget toolkit. All application dependencies are provided by Docker Compose. There are also static code analysis tools like FindBugs and Checkstyle.
Stars: ✭ 86 (+168.75%)
Mutual labels:  swing
swing-material
A collection of Material Design components and utilities for Swing.
Stars: ✭ 52 (+62.5%)
Mutual labels:  swing
TS-game
A game about Tsinghua-style life, about to be published on steam
Stars: ✭ 14 (-56.25%)
Mutual labels:  swing
JxBrowser-Examples
JxBrowser Examples & Tutorials
Stars: ✭ 49 (+53.13%)
Mutual labels:  swing
SwingOSC
An OpenSoundControl (OSC) server to dynamically instantiate and control Java objects. Its main application is a GUI library for SuperCollider.
Stars: ✭ 22 (-31.25%)
Mutual labels:  swing
uno
UNO - Card Game with Java
Stars: ✭ 70 (+118.75%)
Mutual labels:  swing
MooInfo
Visual implementation of OSHI, to view information about the system and hardware.
Stars: ✭ 83 (+159.38%)
Mutual labels:  swing
Java-Swing-Examples
Java Swing code examples
Stars: ✭ 26 (-18.75%)
Mutual labels:  swing
SimpleMVC
Example of MVC pattern in Java (Swing)
Stars: ✭ 20 (-37.5%)
Mutual labels:  swing
CI-Calculator
CI-Calculator, A scientific calculator, built using JAVA. Front-end has been designed by java swing API.
Stars: ✭ 16 (-50%)
Mutual labels:  swing
PlantsVsZombies
My own clone of Plants Vs. Zombies game using Java/Swing
Stars: ✭ 46 (+43.75%)
Mutual labels:  swing
PasswordSafe
Cross platform password manager.
Stars: ✭ 14 (-56.25%)
Mutual labels:  swing
easyposter
一个简单的,便于扩展的awt绘制海报小项目
Stars: ✭ 34 (+6.25%)
Mutual labels:  awt
willsautoclick
Fastest Java autoclicker in the entire west
Stars: ✭ 12 (-62.5%)
Mutual labels:  swing
github-graffiti
Create awesome github graffiti for yourself or someone else
Stars: ✭ 52 (+62.5%)
Mutual labels:  swing
KTU-Java
Learn Java easily. A collection of simple programs primarily focusing on the KTU syllabus for Java
Stars: ✭ 13 (-59.37%)
Mutual labels:  awt
Sort-Algorithm-Visualiser
A sort algorithm visualisation GUI, created using Java and the Swing framework.
Stars: ✭ 58 (+81.25%)
Mutual labels:  swing

projector-demo

JetBrains incubator project Builds status badge

A simple sample application demonstrating running Swing applications remotely.

Documentation | Issue tracker

Building and running

We use Gradle. So you can run Gradle tasks as follows:

# example of running `build` task:
./gradlew build

App

There is OriginalMain class, which is an example of a custom Swing application. Also, there is HeadlessSupportingMain class, which demonstrates lines added to run the demo app in the headless mode.

How to run projector-demo

Here are several ways to run this demo app. Using them, you can understand how to run your own app.

Run configuration
Gradle task
Main class VM option
(UI) OriginalMain
runUiOriginalMain
org.jetbrains.projector.demo.OriginalMain Blank
(UI) HeadlessSupportingMain
runUiHeadlessSupportingMain
org.jetbrains.projector.demo.HeadlessSupportingMain Blank
(Headless) HeadlessSupportingMain
runHeadlessHeadlessSupportingMain
org.jetbrains.projector.demo.HeadlessSupportingMain -Dorg.jetbrains.projector.server.enable=true
(Headless) ProjectorLauncher
runHeadlessProjectorLauncher
org.jetbrains.projector.server.ProjectorLauncher -Dorg.jetbrains.projector.server.classToLaunch=org.jetbrains.projector.demo.OriginalMain

To access headlessly run app, you can use Projector web client. It will be available on http://localhost:8887. Or you can use any other way of connection, feel free to check the corresponding documentation page.

Artifacts

There are two run configurations. Jars will be built in the build/libs dir.

Build HeadlessSupporting jar

Gradle task: jarHeadlessSupport.

Its main class is HeadlessSupportingMain and it contains the projector-server module. To run headlessly, add a JVM option -Dorg.jetbrains.projector.server.enable=true.

Build Original jar

Gradle task: jarOriginal.

Its main class is OriginalMain.

To launch the original version with UI, run:

java \
-classpath projector-demo-original.jar \
org.jetbrains.projector.demo.OriginalMain

To launch the original version headlessly, place the classpath of projector-server into libs dir and run:

java \
-classpath projector-demo-original.jar:libs/* \
-Dorg.jetbrains.projector.server.classToLaunch=org.jetbrains.projector.demo.OriginalMain \
org.jetbrains.projector.server.ProjectorLauncher

License

GPLv2.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].