hBoxTitle.getChildren().add(btnClose);
hBoxTitle.getChildren().add(btnRun);
hBoxTitle.setStyle("-fx-background-color:#dddddd; -fx-padding:4px;");
taSource = new TextArea();
String styleSource = "-fx-font-family:monospace; -fx-font-size:12px; -fx-background-color:white;";
taSource.setStyle(styleSource);
taSource.textProperty().addListener(new ChangeListener<String>()
{
@Override
public void changed(final ObservableValue<? extends String> observable, final String oldValue, final String newValue)
{
setModified(true);
}
});
taSource.focusedProperty().addListener(new ChangeListener<Boolean>()
{
@Override
public void changed(ObservableValue<? extends Boolean> arg0, Boolean oldValue, Boolean newValue)
{
if (Boolean.TRUE.equals(newValue))
{
setVMLanguage();
}
}
});
setTextAreaSaveCombo(taSource);
taLineNumbers = new TextArea();
String styleLineNumber = "-fx-padding:0; -fx-font-family:monospace; -fx-font-size:12px; -fx-background-color:#eeeeee;";
taLineNumbers.setStyle(styleLineNumber);
taLineNumbers.setEditable(false);
taLineNumbers.setWrapText(true);