fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public GridPane addGridPaneRight() {
  11.  
  12. GridPane gridpane = new GridPane();
  13. gridpane.getStyleClass().add("pane"); //styling panels
  14. gridpane.setHgap(5);
  15. gridpane.setVgap(5);
  16.  
  17. table.setEditable(true);
  18.  
  19. TableColumn firstNameCol = new TableColumn("First Name");
  20. TableColumn lastNameCol = new TableColumn("Last Name");
  21. TableColumn emailCol = new TableColumn("Email");
  22. TableColumn emailCol1 = new TableColumn("Email");
  23.  
  24. table.getColumns().addAll(firstNameCol, lastNameCol, emailCol, emailCol1, emailCol1);
  25. table.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
  26.  
  27. gridpane.getChildren().addAll(table);
  28.  
  29. return gridpane;
  30. }
  31.  
  32. public static void main (String[] args) throws java.lang.Exception
  33. {
  34. BorderPane border = new BorderPane();
  35. GridPane gridpaneleft = addGridPaneLeft();
  36. GridPane gridpaneright = addGridPaneRight();
  37.  
  38. border.setLeft(gridpaneleft);
  39. border.setCenter(gridpaneright);
  40.  
  41. BorderPane.setMargin(gridpaneright, new Insets(12,12,12,12));
  42. border.getStyleClass().add("pane");
  43.  
  44. Scene scene = new Scene(border, 700, 300);
  45. }
  46. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:10: error: cannot find symbol
	public GridPane addGridPaneRight() { 
	       ^
  symbol:   class GridPane
  location: class Ideone
Main.java:12: error: cannot find symbol
    GridPane gridpane = new GridPane();
    ^
  symbol:   class GridPane
  location: class Ideone
Main.java:12: error: cannot find symbol
    GridPane gridpane = new GridPane();
                            ^
  symbol:   class GridPane
  location: class Ideone
Main.java:17: error: cannot find symbol
    table.setEditable(true);
    ^
  symbol:   variable table
  location: class Ideone
Main.java:19: error: cannot find symbol
    TableColumn firstNameCol = new TableColumn("First Name");
    ^
  symbol:   class TableColumn
  location: class Ideone
Main.java:19: error: cannot find symbol
    TableColumn firstNameCol = new TableColumn("First Name");
                                   ^
  symbol:   class TableColumn
  location: class Ideone
Main.java:20: error: cannot find symbol
    TableColumn lastNameCol = new TableColumn("Last Name");
    ^
  symbol:   class TableColumn
  location: class Ideone
Main.java:20: error: cannot find symbol
    TableColumn lastNameCol = new TableColumn("Last Name");
                                  ^
  symbol:   class TableColumn
  location: class Ideone
Main.java:21: error: cannot find symbol
    TableColumn emailCol = new TableColumn("Email");
    ^
  symbol:   class TableColumn
  location: class Ideone
Main.java:21: error: cannot find symbol
    TableColumn emailCol = new TableColumn("Email");
                               ^
  symbol:   class TableColumn
  location: class Ideone
Main.java:22: error: cannot find symbol
    TableColumn emailCol1 = new TableColumn("Email");
    ^
  symbol:   class TableColumn
  location: class Ideone
Main.java:22: error: cannot find symbol
    TableColumn emailCol1 = new TableColumn("Email");
                                ^
  symbol:   class TableColumn
  location: class Ideone
Main.java:24: error: cannot find symbol
    table.getColumns().addAll(firstNameCol, lastNameCol, emailCol, emailCol1, emailCol1);
    ^
  symbol:   variable table
  location: class Ideone
Main.java:25: error: cannot find symbol
    table.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
                                ^
  symbol:   variable TableView
  location: class Ideone
Main.java:25: error: cannot find symbol
    table.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
    ^
  symbol:   variable table
  location: class Ideone
Main.java:27: error: cannot find symbol
    gridpane.getChildren().addAll(table);
                                  ^
  symbol:   variable table
  location: class Ideone
Main.java:34: error: cannot find symbol
		BorderPane border = new BorderPane();
		^
  symbol:   class BorderPane
  location: class Ideone
Main.java:34: error: cannot find symbol
		BorderPane border = new BorderPane();
		                        ^
  symbol:   class BorderPane
  location: class Ideone
Main.java:35: error: cannot find symbol
        GridPane gridpaneleft = addGridPaneLeft();
        ^
  symbol:   class GridPane
  location: class Ideone
Main.java:35: error: cannot find symbol
        GridPane gridpaneleft = addGridPaneLeft();
                                ^
  symbol:   method addGridPaneLeft()
  location: class Ideone
Main.java:36: error: cannot find symbol
        GridPane gridpaneright = addGridPaneRight();
        ^
  symbol:   class GridPane
  location: class Ideone
Main.java:36: error: non-static method addGridPaneRight() cannot be referenced from a static context
        GridPane gridpaneright = addGridPaneRight();
                                 ^
Main.java:41: error: cannot find symbol
        BorderPane.setMargin(gridpaneright, new Insets(12,12,12,12)); 
                                                ^
  symbol:   class Insets
  location: class Ideone
Main.java:41: error: cannot find symbol
        BorderPane.setMargin(gridpaneright, new Insets(12,12,12,12)); 
        ^
  symbol:   variable BorderPane
  location: class Ideone
Main.java:44: error: cannot find symbol
        Scene scene = new Scene(border, 700, 300);
        ^
  symbol:   class Scene
  location: class Ideone
Main.java:44: error: cannot find symbol
        Scene scene = new Scene(border, 700, 300);
                          ^
  symbol:   class Scene
  location: class Ideone
26 errors
stdout
Standard output is empty