Commit f4dc1920 authored by mahdikarami0111's avatar mahdikarami0111

initial commit

parents
Pipeline #6060 failed with stages
# Default ignored files
/shelf/
/workspace.xml
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<option name="DEFAULT_COMPILER" value="Javac" />
<resourceExtensions />
<wildcardResourcePatterns>
<entry name="!?*.java" />
<entry name="!?*.form" />
<entry name="!?*.class" />
<entry name="!?*.groovy" />
<entry name="!?*.scala" />
<entry name="!?*.flex" />
<entry name="!?*.kt" />
<entry name="!?*.clj" />
</wildcardResourcePatterns>
<annotationProcessing>
<profile default="true" name="Default" enabled="false">
<processorPath useClasspath="true" />
</profile>
</annotationProcessing>
</component>
</project>
<html>Simple <b>JavaFX 2.0</b> application that includes simple .fxml file with attached controller and Main class to quick start. Artifact to build JavaFX application is provided.
</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="PROJECT" charset="UTF-8" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
</project>
\ No newline at end of file
<component name="libraryTable">
<library name="lib">
<CLASSES>
<root url="file://F:/GAMES/javafx-sdk-16/lib" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="file://F:/GAMES/javafx-sdk-16/lib" />
</SOURCES>
<jarDirectory url="file://F:/GAMES/javafx-sdk-16/lib" recursive="false" />
<jarDirectory url="file://F:/GAMES/javafx-sdk-16/lib" recursive="false" type="SOURCES" />
</library>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectKey">
<option name="state" value="project://e79810c8-c5c8-43b1-b19c-90c1f4095425" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_15" default="true" project-jdk-name="15" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/100.iml" filepath="$PROJECT_DIR$/100.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Palette2">
<group name="Swing">
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
</item>
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
</item>
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
</item>
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
<initial-values>
<property name="text" value="Button" />
</initial-values>
</item>
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="RadioButton" />
</initial-values>
</item>
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="CheckBox" />
</initial-values>
</item>
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
<initial-values>
<property name="text" value="Label" />
</initial-values>
</item>
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
</item>
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
</item>
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
<preferred-size width="-1" height="20" />
</default-constraints>
</item>
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
</item>
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
</item>
</group>
</component>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="lib" level="project" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.text.Font?>
<GridPane alignment="center" prefHeight="350.0" prefWidth="350.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/16" fx:controller="sample.Controller">
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="70.0" valignment="CENTER" />
<RowConstraints minHeight="10.0" prefHeight="70.0" valignment="CENTER" />
<RowConstraints minHeight="10.0" prefHeight="70.0" valignment="CENTER" />
<RowConstraints minHeight="10.0" prefHeight="70.0" valignment="CENTER" />
<RowConstraints minHeight="10.0" prefHeight="70.0" valignment="CENTER" />
</rowConstraints>
<columnConstraints>
<ColumnConstraints halignment="CENTER" minWidth="10.0" prefWidth="70.0" />
<ColumnConstraints halignment="CENTER" minWidth="10.0" prefWidth="70.0" />
<ColumnConstraints halignment="CENTER" minWidth="10.0" prefWidth="70.0" />
<ColumnConstraints halignment="CENTER" minWidth="10.0" prefWidth="70.0" />
<ColumnConstraints halignment="CENTER" minWidth="10.0" prefWidth="70.0" />
</columnConstraints>
<children>
<Button mnemonicParsing="false" onAction="#processOperator" prefHeight="140.0" prefWidth="70.0" text="+" GridPane.columnIndex="4" GridPane.rowIndex="3" GridPane.rowSpan="2">
<font>
<Font size="25.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#ProcessNumber" prefHeight="70.0" prefWidth="70.0" text="7" GridPane.rowIndex="1">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#ProcessNumber" prefHeight="70.0" prefWidth="70.0" text="8" GridPane.columnIndex="1" GridPane.rowIndex="1">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#ProcessNumber" prefHeight="70.0" prefWidth="70.0" text="9" GridPane.columnIndex="2" GridPane.rowIndex="1">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#processOperator" prefHeight="70.0" prefWidth="70.0" text="Cos" GridPane.columnIndex="3" GridPane.rowIndex="1">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#allClear" prefHeight="70.0" prefWidth="70.0" text="Ac" GridPane.columnIndex="4" GridPane.rowIndex="1">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#ProcessNumber" prefHeight="70.0" prefWidth="70.0" text="4" GridPane.rowIndex="2">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#ProcessNumber" prefHeight="70.0" prefWidth="70.0" text="5" GridPane.columnIndex="1" GridPane.rowIndex="2">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#ProcessNumber" prefHeight="70.0" prefWidth="70.0" text="6" GridPane.columnIndex="2" GridPane.rowIndex="2">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#processOperator" prefHeight="70.0" prefWidth="70.0" text="/" GridPane.columnIndex="3" GridPane.rowIndex="2">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#processOperator" prefHeight="70.0" prefWidth="70.0" text="Sin" GridPane.columnIndex="4" GridPane.rowIndex="2">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#ProcessNumber" prefHeight="70.0" prefWidth="70.0" text="1" GridPane.rowIndex="3">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#ProcessNumber" prefHeight="70.0" prefWidth="70.0" text="2" GridPane.columnIndex="1" GridPane.rowIndex="3">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#ProcessNumber" prefHeight="70.0" prefWidth="70.0" text="3" GridPane.columnIndex="2" GridPane.rowIndex="3">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#processOperator" prefHeight="70.0" prefWidth="70.0" text="*" GridPane.columnIndex="3" GridPane.rowIndex="3">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#ProcessNumber" prefHeight="70.0" prefWidth="70.0" text="." GridPane.rowIndex="4">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#ProcessNumber" prefHeight="70.0" prefWidth="70.0" text="0" GridPane.columnIndex="1" GridPane.rowIndex="4">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#processOperator" prefHeight="70.0" prefWidth="70.0" text="=" GridPane.columnIndex="2" GridPane.rowIndex="4">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#processOperator" prefHeight="70.0" prefWidth="70.0" text="-" GridPane.columnIndex="3" GridPane.rowIndex="4">
<font>
<Font size="20.0" />
</font>
</Button>
<TextField fx:id="textField" editable="false" prefHeight="60.0" prefWidth="350.0" GridPane.columnSpan="5">
<font>
<Font size="20.0" />
</font>
</TextField>
</children>
</GridPane>
package sample;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
public class Controller {
@FXML
private TextField textField;
private String number1 = "";
private String number2 = "";
private String operator = "";
@FXML
void ProcessNumber(ActionEvent event) {
if(operator.isEmpty()){
String number = ((Button)event.getSource()).getText();
number1 += number;
textField.setText(textField.getText()+number);
}else {
String number = ((Button)event.getSource()).getText();
number2 += number;
textField.setText(textField.getText()+ number);
}
}
@FXML
void processOperator(ActionEvent event) {
String temp = ((Button)event.getSource()).getText();
if( temp.equals("Sin")){
if(operator.isEmpty()){
if(number1.isEmpty()){
return;
}else {
number1 = String.valueOf(Math.sin(Double.parseDouble(number1)));
textField.setText(number1);
}
}else {
if(number2.isEmpty()){
return;
}else {
number2 = String.valueOf(Math.sin(Double.parseDouble(number2)));
textField.setText(number1+operator+number2);
}
}
return;
}
if( temp.equals("Cos")){
if(operator.isEmpty()){
if(number1.isEmpty()){
return;
}else {
number1 = String.valueOf(Math.cos(Double.parseDouble(number1)));
textField.setText(number1);
}
}else {
if(number2.isEmpty()){
return;
}else {
number2 = String.valueOf(Math.cos(Double.parseDouble(number2)));
textField.setText(number1+operator+number2);
}
}
return;
}
if(number1.isEmpty()){
return;
}
if(operator.isEmpty()){
if(temp.equals("=")){
return;
}
operator = temp;
textField.setText(number1+operator);
}else {
if(number2.isEmpty()){
return;
}
calculate();
if(temp.equals("=")){
operator = "";
textField.setText(number1);
}else {
operator = temp;
textField.setText(number1+operator);
}
}
}
public void calculate(){
double n1 = Double.parseDouble(number1);
double n2 = Double.parseDouble(number2);
double result = 0;
switch (operator){
case "+":
result = n1+n2;
break;
case "-":
result = n1-n2;
break;
case "*":
result = n1*n2;
break;
case "/":
if(n2 == 0){
break;
}
result = n1/n2;
break;
}
number1 = String.valueOf(result);
number2 = "";
}
@FXML
void allClear(ActionEvent event){
number1 = "";
number2 = "";
operator = "";
textField.setText("");
}
}
package sample;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
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("sample.fxml"));
primaryStage.setTitle("Calculator");
primaryStage.setScene(new Scene(root, 300, 275));
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.text.Font?>
<GridPane alignment="center" prefHeight="350.0" prefWidth="350.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/16" fx:controller="sample.Controller">
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="70.0" valignment="CENTER" />
<RowConstraints minHeight="10.0" prefHeight="70.0" valignment="CENTER" />
<RowConstraints minHeight="10.0" prefHeight="70.0" valignment="CENTER" />
<RowConstraints minHeight="10.0" prefHeight="70.0" valignment="CENTER" />
<RowConstraints minHeight="10.0" prefHeight="70.0" valignment="CENTER" />
</rowConstraints>
<columnConstraints>
<ColumnConstraints halignment="CENTER" minWidth="10.0" prefWidth="70.0" />
<ColumnConstraints halignment="CENTER" minWidth="10.0" prefWidth="70.0" />
<ColumnConstraints halignment="CENTER" minWidth="10.0" prefWidth="70.0" />
<ColumnConstraints halignment="CENTER" minWidth="10.0" prefWidth="70.0" />
<ColumnConstraints halignment="CENTER" minWidth="10.0" prefWidth="70.0" />
</columnConstraints>
<children>
<Button mnemonicParsing="false" onAction="#processOperator" prefHeight="140.0" prefWidth="70.0" text="+" GridPane.columnIndex="4" GridPane.rowIndex="3" GridPane.rowSpan="2">
<font>
<Font size="25.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#ProcessNumber" prefHeight="70.0" prefWidth="70.0" text="7" GridPane.rowIndex="1">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#ProcessNumber" prefHeight="70.0" prefWidth="70.0" text="8" GridPane.columnIndex="1" GridPane.rowIndex="1">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#ProcessNumber" prefHeight="70.0" prefWidth="70.0" text="9" GridPane.columnIndex="2" GridPane.rowIndex="1">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#processOperator" prefHeight="70.0" prefWidth="70.0" text="Cos" GridPane.columnIndex="3" GridPane.rowIndex="1">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#allClear" prefHeight="70.0" prefWidth="70.0" text="Ac" GridPane.columnIndex="4" GridPane.rowIndex="1">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#ProcessNumber" prefHeight="70.0" prefWidth="70.0" text="4" GridPane.rowIndex="2">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#ProcessNumber" prefHeight="70.0" prefWidth="70.0" text="5" GridPane.columnIndex="1" GridPane.rowIndex="2">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#ProcessNumber" prefHeight="70.0" prefWidth="70.0" text="6" GridPane.columnIndex="2" GridPane.rowIndex="2">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#processOperator" prefHeight="70.0" prefWidth="70.0" text="/" GridPane.columnIndex="3" GridPane.rowIndex="2">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#processOperator" prefHeight="70.0" prefWidth="70.0" text="Sin" GridPane.columnIndex="4" GridPane.rowIndex="2">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#ProcessNumber" prefHeight="70.0" prefWidth="70.0" text="1" GridPane.rowIndex="3">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#ProcessNumber" prefHeight="70.0" prefWidth="70.0" text="2" GridPane.columnIndex="1" GridPane.rowIndex="3">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#ProcessNumber" prefHeight="70.0" prefWidth="70.0" text="3" GridPane.columnIndex="2" GridPane.rowIndex="3">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#processOperator" prefHeight="70.0" prefWidth="70.0" text="*" GridPane.columnIndex="3" GridPane.rowIndex="3">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#ProcessNumber" prefHeight="70.0" prefWidth="70.0" text="." GridPane.rowIndex="4">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#ProcessNumber" prefHeight="70.0" prefWidth="70.0" text="0" GridPane.columnIndex="1" GridPane.rowIndex="4">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#processOperator" prefHeight="70.0" prefWidth="70.0" text="=" GridPane.columnIndex="2" GridPane.rowIndex="4">
<font>
<Font size="20.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#processOperator" prefHeight="70.0" prefWidth="70.0" text="-" GridPane.columnIndex="3" GridPane.rowIndex="4">
<font>
<Font size="20.0" />
</font>
</Button>
<TextField fx:id="textField" editable="false" prefHeight="60.0" prefWidth="350.0" GridPane.columnSpan="5">
<font>
<Font size="20.0" />
</font>
</TextField>
</children>
</GridPane>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment