fork download
  1. package blowfish.endecrypter;
  2.  
  3. import javafx.application.*;
  4. import javafx.fxml.*;
  5. import javafx.scene.*;
  6. import javafx.stage.*;
  7. import java.io.*;
  8. import java.net.*;
  9.  
  10. public final class NewUser extends Application{
  11. private Window owner;
  12. private URL view;
  13.  
  14. public static NewUser FromWindow(Window owner){
  15.  
  16. return new NewUser(owner);
  17. }
  18.  
  19. private NewUser(Window owner){
  20.  
  21. this.owner = owner;
  22. view = getClass().getResource("NewUser.fxml");
  23. }
  24.  
  25.  
  26. @Override public void start(Stage primaryStage) throws IOException{
  27.  
  28. primaryStage.setScene(new Scene(FXMLLoader.load(view)));
  29. primaryStage.initModality(Modality.WINDOW_MODAL);
  30. primaryStage.initOwner(owner);
  31. primaryStage.setTitle("New user");
  32. primaryStage.setResizable(false);
  33. primaryStage.show();
  34. }
  35. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:10: error: class NewUser is public, should be declared in a file named NewUser.java
public final class NewUser extends Application{
             ^
Main.java:3: error: package javafx.application does not exist
import javafx.application.*;
^
Main.java:4: error: package javafx.fxml does not exist
import javafx.fxml.*;
^
Main.java:5: error: package javafx.scene does not exist
import javafx.scene.*;
^
Main.java:6: error: package javafx.stage does not exist
import javafx.stage.*;
^
Main.java:10: error: cannot find symbol
public final class NewUser extends Application{
                                   ^
  symbol: class Application
Main.java:11: error: cannot find symbol
    private Window owner;
            ^
  symbol:   class Window
  location: class NewUser
Main.java:14: error: cannot find symbol
    public static NewUser FromWindow(Window owner){
                                     ^
  symbol:   class Window
  location: class NewUser
Main.java:19: error: cannot find symbol
    private NewUser(Window owner){
                    ^
  symbol:   class Window
  location: class NewUser
Main.java:26: error: cannot find symbol
    @Override public void start(Stage primaryStage) throws IOException{
                                ^
  symbol:   class Stage
  location: class NewUser
Main.java:22: error: cannot find symbol
        view = getClass().getResource("NewUser.fxml");
               ^
  symbol:   method getClass()
  location: class NewUser
Main.java:26: error: method does not override or implement a method from a supertype
    @Override public void start(Stage primaryStage) throws IOException{
    ^
Main.java:28: error: cannot find symbol
        primaryStage.setScene(new Scene(FXMLLoader.load(view)));
                                  ^
  symbol:   class Scene
  location: class NewUser
Main.java:28: error: cannot find symbol
        primaryStage.setScene(new Scene(FXMLLoader.load(view)));
                                        ^
  symbol:   variable FXMLLoader
  location: class NewUser
Main.java:29: error: cannot find symbol
        primaryStage.initModality(Modality.WINDOW_MODAL);
                                  ^
  symbol:   variable Modality
  location: class NewUser
15 errors
stdout
Standard output is empty