Can someone halp me? (JAVA)
When i write this code in eclipse it work perfectly, but when i tried to write it in sololearner it doesn't. Can someone halp me, and tell me where is a mistake? This is code(it's java): import javafx.application.Application; import javafx.event.ActionEvent; import javafx.geometry.Pos; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.Label; import javafx.scene.control.TextField; import javafx.scene.layout.GridPane; import javafx.stage.Stage; public class MathFX extends Application { TextField txtnum1, txtnum2; Button btnadd, btnsub, btndiv, btnmul, btnclear; Label lblanswer; @Override public void start(Stage primaryStage) { //pravim kontrole txtnum1=new TextField(); txtnum2=new TextField(); btnadd=new Button("+"); btnsub=new Button("-"); btnmul=new Button("x"); btndiv=new Button("/"); btnclear=new Button("Clear"); lblanswer=new Label("?"); //center text in label lblanswer.setAlignment(Pos.CENTER); //apply ccs-like style to label (yes, you can) lblanswer.setStyle("-fx-border-color: #000; -fx-padding: 5px;"); //make container for app GridPane root = new GridPane(); //put container in middle of scene root.setAlignment(Pos.CENTER); //setspacing between controls in grid root.setHgap(10); root.setVgap(10); //add to grid, cell by cell root.add(btnadd,0,0); root.add(btnsub,1,0); root.add(btnmul,0,1); root.add(btndiv,1,1); root.add(txtnum1, 0,2); root.add(txtnum2,1,2); //last 2 rows span across 2 columns //col, rol, colspan, rowspan root.add(lblanswer,0,3,2,1); root.add(btnclear,0,4,2,1); //set widths of all controls in separate m