Skip to content
Snippets Groups Projects
Commit 11b905fc authored by Kyrylo Lipkovych's avatar Kyrylo Lipkovych
Browse files

added some classes for future functionality

parent e424c765
No related branches found
No related tags found
No related merge requests found
Showing
with 27 additions and 2 deletions
File added
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
File added
package hellofx;
// import java.util.ArrayList;
public class Calculator {
// private ArrayList<Value> values; maybe in future
private Value first = new Value();
private Value second = new Value();
}
\ No newline at end of file
......@@ -37,6 +37,9 @@ public class Controller {
@FXML
private Button zero;
/*
* the function reacts on clicked Buttons
*/
private void setButtons(){
one.setOnAction(new EventHandler<ActionEvent>(){
......
......@@ -7,12 +7,12 @@ import javafx.scene.Scene;
import javafx.stage.Stage;
public class Main extends Application {
@Override
public void start(Stage primaryStage) throws Exception{
Parent root = FXMLLoader.load(getClass().getResource("hellofx.fxml"));
primaryStage.setTitle("Calculator");
primaryStage.setScene(new Scene(root, 400, 300));
primaryStage.setScene(new Scene(root, 400, 350));
primaryStage.show();
}
......
package hellofx;
public class Value {
private int selfValue = 0;
private int dec = 0;
// Value(int _v, int _d){
// this.selfValue = _v;
// }
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment