Package org.fxmisc.richtext

Examples of org.fxmisc.richtext.InlineCssTextArea


        launch(args);
    }

    @Override
    public void start(Stage primaryStage) {
        InlineCssTextArea area = new InlineCssTextArea("Hello popup!");
        area.setWrapText(true);

        Popup popup = new Popup();
        popup.getContent().add(new Button("I am a popup button!"));
        area.setPopupWindow(popup);
        area.setPopupAlignment(PopupAlignment.SELECTION_BOTTOM_CENTER);
        area.setPopupAnchorOffset(new Point2D(4, 4));

        primaryStage.setScene(new Scene(new StackPane(area), 200, 200));
        primaryStage.setTitle("Popup Demo");
        primaryStage.show();
        popup.show(primaryStage);
View Full Code Here

TOP

Related Classes of org.fxmisc.richtext.InlineCssTextArea

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.