Giter Site home page Giter Site logo

b3ngg / vscode-javafx-template Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5 KB

Develop GUIs directly with JavaFX and the SceneBuilder in VSCode. Without complex setup!

JavaScript 61.14% Java 38.86%
java javafx javafx-application gui vscode template vscode-java

vscode-javafx-template's Introduction

Start experimenting with JavaFX right away!

This template is made for directly writing small sandbox programs with JavaFX in Visual Studio Code.

Features

  • Java development without build tool problems in VSCode
  • Loading and opening SceneBuilder files
  • Setup script for linking the correct packages in the project
  • Ready configured launch script
  • Debug Java in VSCode
  • Extensions recommendations

Who is the template for?

People who are forced to work with Java and use GUI in small sandbox projects. But don't want to use horrible SDKs like Swing for that and at the same time don't want to leave their comfort in VSCode.

Who is the template not for?

People who seriously want to write whole programs in Java and export them as well. They should rather struggle with some build tool.

Get started

  1. Makes sure, you have Java installed

  2. Download JavaFX and extract it somewhere safe

  3. Create a environment variable called $PATH_TO_FX for your path to your JavaFX lib folder

    e.g. on linux/mac

    export PATH_TO_FX=path/to/javafx-sdk-15.0.1/lib
  4. Clone the template (in your projects folder)

    git clone https://github.com/b3ngg/vscode-javafx-template.git my_app
  5. Navigate into your new app

    cd my_app
  6. Run the setup script to automatically link the SDKs

    fx_path=$PATH_TO_FX node setup
  7. Open the project in VSCode

    code .
  8. (Optional) Install recommended extensions

  9. Possibly wait a few seconds for the extensions to settle down to life. You may have to reload the window the first time.

  10. Press F5 to launch your application

You can now write your application inside the src directory and edit the scene.fxml with the SceneBuilder.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.