This file contains 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 Controller extends PircBot implements Initializable{ | |
@FXML | |
TextArea textArea; | |
@FXML | |
TextField textField; | |
public void onTextFieldAction(){ | |
textArea.setText(textArea.getText() + "\n" + textField.getText()); | |
sendMessage("##CoderdojoBots", textField.getText()); //Sends message | |
textField.clear(); // Clears input field |
This file contains 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
package sample; | |
import javafx.fxml.FXML; | |
import javafx.fxml.Initializable; | |
import javafx.scene.control.TextArea; | |
import javafx.scene.control.TextField; | |
import java.net.URL; | |
import java.util.ResourceBundle; |