title: My button can't open my class
body: <p>Basically, the problem is I created an interface with Java Scene Builder. And from FXML button I wanted to open my class.</p>
  
  <pre><code>    @FXML
      public void pressButton(ActionEvent event) throws Exception {
      Platform.runLater(() -&gt; {
          try{
              new SerialChart().start(new Stage());
          } catch (Exception e) {
              e.printStackTrace();
          }
      });
  
      }
  
      @FXML
      public void pressButton2(ActionEvent event) throws Exception {                      
      Platform.runLater(() -&gt; {
           try {
              new Main().start(new Stage());
          } catch (Exception e) {
              e.printStackTrace();
          }
      });
      }
  </code></pre>
  
  <p>And my Main can be open, but my SerialChart can't be opened. It says "The constructor SerialChart() is undefined". So here is the problem I think</p>
  
  <pre><code>    public SerialChart(String title) {  
      super(title);
  </code></pre>
  
  <p>I think this is the problem why I can't open. Please help me... I can show you the whole code if you need.</p>