×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Ellirabeth Dzhurko
Added: Jul 19, 2016 6:42 AM
Modified: Jul 22, 2016 12:32 PM
Views: 10
Tags: no tags
New scene
  1. public class main extends Application {
  2.  
  3.     @Override
  4.     public void start(Stage stage) throws Exception
  5.     {
  6.         Stage st = new Stage();
  7.         AnchorPane ap = new AnchorPane();
  8.         final Scene sc = new Scene( ap );
  9.         st.setScene( sc );
  10.         st.show( );
  11.  
  12.     }
  13.  
  14.     public static void main(String[] args) {
  15.         launch(args);
  16.     }
  17. }