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:

Profile: common

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicnodeHPosHPosHPos.CENTER

The horizontal position of each node within the ResizableScene.

The horizontal position of each node within the ResizableScene.

This may be overridden for individual nodes by setting the hpos variable on the node's layoutInfo variable.

HPos.CENTER  
publicnodeVPosVPosVPos.CENTER

The vertical position of each node within the ResizableScene.

The vertical position of each node within the ResizableScene.

This may be overridden for individual nodes by setting the vpos variable on the node's layoutInfo variable.

VPos.CENTER  

Inherited Variables

Inherited Functions