GUI( JavaFX Scene Builder )38 Controller(2_Java_FXML) 2022. 8. 22. Controller(2_Java_Controller) package ex2; import java.net.URL; import java.util.ResourceBundle; import javafx.fxml.FXML; import javafx.fxml.Initializable; import javafx.scene.control.Button; import javafx.scene.control.PasswordField; import javafx.scene.control.TextField; public class Ex3Controller implements Initializable { @FXML private Button loginButton; @FXML private TextField idField; @FXML private PasswordField pwFie.. 2022. 8. 22. Controller(2_Java_Main) package ex1; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.stage.Stage; public class Ex3 extends Application { public static void main(String[] args) { launch(args); } @Override public void start(Stage primaryStage) throws Exception { FXMLLoader loader = new FXMLLoader(getClass().getResource("Ex3.fxml")).. 2022. 8. 22. Controller(1_Java_FXML) 2022. 8. 22. 이전 1 2 3 4 ··· 10 다음