JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

Overview

Drop-in replacement for a JavaFX Scene that will automatically resize any of its children that extend Resizable to fill the Scene bounds. This is particularly useful when used together with a resizable layout that should fill the scene bounds, such as the following example:

the code:

import org.jfxtras.scene.*;
    import org.jfxtras.scene.layout.*;
    import javafx.ext.swing.*;

    ResizableScene {
        width: 200
        height: 200
        content: Grid {
            rows: Row {
                cells: SwingList {
                    items: SwingListItem {text: "Sample Item"}
                }
            }
        }
    }

produces:

Inherited Variables

Inherited Functions