Untitled
unknown
plain_text
2 years ago
403 B
5
Indexable
@FXML TextField chatTextField; @FXML Text opponentsText; @FXML AnchorPane chatPane; public void updateChat(){ opponentsText.setText(Main.enemyChatText); String enemyTextString = opponentsText.toString(); String[] lines = enemyTextString.split("\n"); int lineCount = lines.length; chatPane.setPrefHeight(200 + lineCount * 15); }
Editor is loading...