All Projects → dmpe → Javafx

dmpe / Javafx

Licence: mit
JavaFX projects, mostly samples and examples

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Javafx

Flowless
Efficient VirtualFlow for JavaFX
Stars: ✭ 120 (-31.43%)
Mutual labels:  javafx
Wechat
仿QQ即时通讯系统客户端
Stars: ✭ 144 (-17.71%)
Mutual labels:  javafx
Tools Ocr
树洞 OCR 文字识别(一款跨平台的 OCR 小工具)
Stars: ✭ 2,303 (+1216%)
Mutual labels:  javafx
Jcsg
Java implementation of BSP based CSG (Constructive Solid Geometry)
Stars: ✭ 121 (-30.86%)
Mutual labels:  javafx
Pchwrm client
PC Hardware Resource Monitor For Raspberry Pi
Stars: ✭ 130 (-25.71%)
Mutual labels:  javafx
Fxdesktopsearch
A JavaFX based desktop search application.
Stars: ✭ 147 (-16%)
Mutual labels:  javafx
Binjr
A Time Series Data Browser
Stars: ✭ 119 (-32%)
Mutual labels:  javafx
Speedment
Speedment is a Stream ORM Java Toolkit and Runtime
Stars: ✭ 1,978 (+1030.29%)
Mutual labels:  javafx
Terasologylauncher
Terasology Launcher is the official launcher for the open source game Terasology.
Stars: ✭ 132 (-24.57%)
Mutual labels:  javafx
Jfx Browser
JFx Browser is a multi tab browser. In its first version HTML to PDF, Downloading , History, Bookmarks and Account creation facility available. We are not still working on this project.
Stars: ✭ 157 (-10.29%)
Mutual labels:  javafx
Spring Javafx Examples
Example apps for springboot-javafx-support. See
Stars: ✭ 124 (-29.14%)
Mutual labels:  javafx
School Management System Javafx
A sample JavaFX management system GUI
Stars: ✭ 126 (-28%)
Mutual labels:  javafx
Customstage
A JavaFX UI framework to create fully customized undecorated windows
Stars: ✭ 148 (-15.43%)
Mutual labels:  javafx
Downlords Faf Client
Official client for Forged Alliance Forever
Stars: ✭ 121 (-30.86%)
Mutual labels:  javafx
Fxgraphics2d
A JavaFX library that allows Java2D code (Graphics2D) to be used to draw to a Canvas node.
Stars: ✭ 157 (-10.29%)
Mutual labels:  javafx
Youtube Comment Suite
Download YouTube comments from numerous videos, playlists, and channels for archiving, general search, and showing activity.
Stars: ✭ 120 (-31.43%)
Mutual labels:  javafx
Everywhere
🔧 A tool can really search everywhere for you.
Stars: ✭ 147 (-16%)
Mutual labels:  javafx
Pchwrm server
PC Hardware Resource Monitor for Raspberry Pi
Stars: ✭ 164 (-6.29%)
Mutual labels:  javafx
Fakeimagedetection
Fake Image Detection Using Machine Learning
Stars: ✭ 158 (-9.71%)
Mutual labels:  javafx
Fxgl
Stars: ✭ 2,378 (+1258.86%)
Mutual labels:  javafx

JavaFX

Java FX Exercises

JavaFX is a cross platform GUI toolkit for Java, and is the successor to the Java Swing libraries.

Installation

If you already develop applications with Java, you probably don't need to download anything at all: JavaFX has been included with the standard JDK (Java Development Kit) bundle since JDK version 7u6 (August 2012). If you haven't updated your Java installation in a while, head to the Java download website for the latest version.

Basic Framework Classes

Creating a JavaFX program begins with the Application class, from which all JavaFX applications are extended. Your main class should call the launch() method, which will then call the init() method and then the start() method, wait for the application to finish, and then call the stop() method. Of these methods, only the start() method is abstract and must be overridden.

The Stage class is the top level JavaFX container. When an Application is launched, an initial Stage is created and passed to the Application's start method. Stages control basic window properties such as title, icon, visibility, resizability, fullscreen mode, and decorations; the latter is configured using StageStyle. Additional Stages may be constructed as necessary. After a Stage is configured and the content is added, the show() method is called.

Knowing all this, we can write a minimal example that launches a window in JavaFX:

import javafx.application.Application;
import javafx.stage.Stage;
 
public class Example1 extends Application 
{
    public static void main(String[] args) 
    {
        launch(args);
    }
 
    public void start(Stage theStage) 
    {
        theStage.setTitle("Hello, World!");
        theStage.show();
    }
}

Structuring Content

Content in JavaFX (such as text, images, and UI controls) is organized using a tree-like data structure known as a scene graph, which groups and arranges the elements of a graphical scene.

A general element of a scene graph in JavaFX is called a Node. Every Node in a tree has a single "parent" node, with the exception of a special Node designated as the "root". A Group is a Node which can have many "child" Node elements. Graphical transformations (translation, rotation, and scale) and effects applied to a Group also apply to its children. Nodes can be styled using JavaFX Cascading Style Sheets (CSS), quite similar to the CSS used to format HTML documents.

The Scene class contains all content for a scene graph, and requires a root Node to be set (in practice, this is often a Group). You can set the size of a Scene specifically; otherwise, the size of a Scene will be automatically calculated based on its content. A Scene object must be passed to the Stage (by the setScene() method) in order to be displayed.

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].