This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ResizableHTMLEditor extends Application { | |
private HTMLEditor htmlEditor = new HTMLEditor(); | |
private static AnchorPane anchorPane = new AnchorPane(); | |
private Scene scene = new Scene(anchorPane, 420, 565, Color.TRANSPARENT); | |
@Override | |
public void start(Stage stage) throws Exception { | |
htmlEditor.setPrefWidth(360); | |
//add listener for change size a html editor, if a window size is changed | |
ChangeListener<Number> stageSizeListener = (observable, oldValue, newValue) -> |