This commit is contained in:
Mykola Fesenko
2025-07-29 08:08:23 +02:00
commit 899a05907b
355 changed files with 11002 additions and 0 deletions

BIN
2/Lenj/BruttoNetto.class Normal file

Binary file not shown.

96
2/Lenj/BruttoNetto.java Normal file
View File

@@ -0,0 +1,96 @@
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
import javafx.scene.control.*;
import je.NumberField;
import javafx.scene.text.*;
import javafx.scene.text.Font;
import javafx.event.*;
/**
*
* Beschreibung
*
* @version 1.0 vom 06.11.2024
* @author
*/
public class BruttoNetto extends Application {
// Anfang Attribute
private NumberField gehaltField = new NumberField();
private NumberField steuerField = new NumberField();
private Label lEndGehalt = new Label();
private Label lSteuer = new Label();
private Button bRechnen = new Button();
// Ende Attribute
public void start(Stage primaryStage) {
Pane root = new Pane();
Scene scene = new Scene(root, 268, 224);
// Anfang Komponenten
gehaltField.setLayoutX(8);
gehaltField.setLayoutY(16);
gehaltField.setPrefHeight(24);
gehaltField.setPrefWidth(80);
gehaltField.setFont(Font.font("Dialog", 11));
gehaltField.setPromptText("Gehalt");
gehaltField.setText("3000");
root.getChildren().add(gehaltField);
steuerField.setLayoutX(8);
steuerField.setLayoutY(48);
steuerField.setPrefHeight(24);
steuerField.setPrefWidth(80);
steuerField.setFont(Font.font("Dialog", 11));
steuerField.setText("19.0");
root.getChildren().add(steuerField);
lEndGehalt.setLayoutX(120);
lEndGehalt.setLayoutY(16);
lEndGehalt.setPrefHeight(24);
lEndGehalt.setPrefWidth(112);
lEndGehalt.setText("End Gehalt: 0");
lEndGehalt.setFont(Font.font("Dialog", 11));
root.getChildren().add(lEndGehalt);
lSteuer.setLayoutX(120);
lSteuer.setLayoutY(48);
lSteuer.setPrefHeight(24);
lSteuer.setPrefWidth(112);
lSteuer.setText("Steuer");
lSteuer.setFont(Font.font("Dialog", 11));
root.getChildren().add(lSteuer);
bRechnen.setLayoutX(72);
bRechnen.setLayoutY(96);
bRechnen.setPrefHeight(24);
bRechnen.setPrefWidth(80);
bRechnen.setText("Rechnen");
bRechnen.setOnAction(
(event) -> {bRechnen_Action(event);}
);
bRechnen.setFont(Font.font("Dialog", 11));
root.getChildren().add(bRechnen);
// Ende Komponenten
primaryStage.setOnCloseRequest(e -> System.exit(0));
primaryStage.setTitle("BruttoNetto");
primaryStage.setScene(scene);
primaryStage.show();
} // end of public BruttoNetto
// Anfang Methoden
public static void main(String[] args) {
launch(args);
} // end of main
public void bRechnen_Action(Event evt) {
int gehalt = gehaltField.getInt();
double steuer = steuerField.getDouble();
steuer = steuer + 1;
lEndGehalt.setText("End Gehalt: " + (gehalt/steuer)));
lSteuer.setText("Steuer: " + ((double)gehalt * steuer ));
} // end of bRechnen_Action
// Ende Methoden
} // end of class BruttoNetto

210
2/Lenj/BruttoNetto.jfm Normal file
View File

@@ -0,0 +1,210 @@
object FGUIForm: TFXGuiForm
Tag = 180
Left = 915
Top = 458
BorderIcons = [biSystemMenu]
Caption = 'BruttoNetto'
ClientHeight = 223
ClientWidth = 268
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Segoe UI'
Font.Style = []
FormStyle = fsStayOnTop
Position = poDesigned
Visible = True
OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged
OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged
OnClose = FormClose
OnCloseQuery = FormCloseQuery
OnCreate = FormCreate
OnMouseActivate = FormMouseActivate
OnResize = FormResize
FrameType = 8
Modified = False
Resizable = True
Undecorated = False
Background = clBtnFace
Title = 'BruttoNetto'
X = 0
Y = 0
FullScreen = False
AlwaysOnTop = False
Iconified = False
MaxHeight = 0
MaxWidth = 0
MinHeight = 0
MinWidth = 0
showing = ''
TextHeight = 15
object gehaltField: TFXNumberField
Tag = 103
Left = 8
Top = 16
Width = 80
Height = 24
Cursor = crIBeam
Hint = 'numberField1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clWhite
JavaType = 'NumberField'
LayoutX = 8
LayoutY = 16
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Text = '3000'
Editable = True
PromptText = 'Gehalt'
Alignment = CENTER_LEFT
PrefColumnCount = 12
action = ''
end
object steuerField: TFXNumberField
Tag = 103
Left = 8
Top = 48
Width = 80
Height = 24
Cursor = crIBeam
Hint = 'numberField2'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clWhite
JavaType = 'NumberField'
LayoutX = 8
LayoutY = 48
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Text = '19.0'
Editable = True
Alignment = CENTER_LEFT
PrefColumnCount = 12
action = ''
end
object lEndGehalt: TFXLabel
Tag = 101
Left = 120
Top = 16
Width = 112
Height = 24
Hint = 'label1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Label'
LayoutX = 120
LayoutY = 16
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 112
SnapToPixel = False
Alignment = CENTER_LEFT
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'End Gehalt: 0'
TextAlignment = _TA_LEFT
WrapText = False
end
object lSteuer: TFXLabel
Tag = 101
Left = 120
Top = 48
Width = 112
Height = 24
Hint = 'label2'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Label'
LayoutX = 120
LayoutY = 48
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 112
SnapToPixel = False
Alignment = CENTER_LEFT
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'Steuer'
TextAlignment = _TA_LEFT
WrapText = False
end
object bRechnen: TFXButton
Tag = 105
Left = 72
Top = 96
Width = 80
Height = 24
Hint = 'button1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Button'
LayoutX = 72
LayoutY = 96
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Alignment = CENTER
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'Rechnen'
TextAlignment = _TA_LEFT
WrapText = False
action = 'bRechnen_Action'
CancelButton = False
DefaultButton = False
end
object GNUgettextMarker: TGnuGettextComponentMarker
end
end

96
2/Lenj/BruttoNetto.~ava Normal file
View File

@@ -0,0 +1,96 @@
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
import javafx.scene.control.*;
import je.NumberField;
import javafx.scene.text.*;
import javafx.scene.text.Font;
import javafx.event.*;
/**
*
* Beschreibung
*
* @version 1.0 vom 06.11.2024
* @author
*/
public class BruttoNetto extends Application {
// Anfang Attribute
private NumberField gehaltField = new NumberField();
private NumberField steuerField = new NumberField();
private Label lEndGehalt = new Label();
private Label lSteuer = new Label();
private Button bRechnen = new Button();
// Ende Attribute
public void start(Stage primaryStage) {
Pane root = new Pane();
Scene scene = new Scene(root, 268, 224);
// Anfang Komponenten
gehaltField.setLayoutX(8);
gehaltField.setLayoutY(16);
gehaltField.setPrefHeight(24);
gehaltField.setPrefWidth(80);
gehaltField.setFont(Font.font("Dialog", 11));
gehaltField.setPromptText("Gehalt");
gehaltField.setText("3000");
root.getChildren().add(gehaltField);
steuerField.setLayoutX(8);
steuerField.setLayoutY(48);
steuerField.setPrefHeight(24);
steuerField.setPrefWidth(80);
steuerField.setFont(Font.font("Dialog", 11));
steuerField.setText("19.0");
root.getChildren().add(steuerField);
lEndGehalt.setLayoutX(120);
lEndGehalt.setLayoutY(16);
lEndGehalt.setPrefHeight(24);
lEndGehalt.setPrefWidth(112);
lEndGehalt.setText("End Gehalt: 0");
lEndGehalt.setFont(Font.font("Dialog", 11));
root.getChildren().add(lEndGehalt);
lSteuer.setLayoutX(120);
lSteuer.setLayoutY(48);
lSteuer.setPrefHeight(24);
lSteuer.setPrefWidth(112);
lSteuer.setText("Steuer");
lSteuer.setFont(Font.font("Dialog", 11));
root.getChildren().add(lSteuer);
bRechnen.setLayoutX(72);
bRechnen.setLayoutY(96);
bRechnen.setPrefHeight(24);
bRechnen.setPrefWidth(80);
bRechnen.setText("Rechnen");
bRechnen.setOnAction(
(event) -> {bRechnen_Action(event);}
);
bRechnen.setFont(Font.font("Dialog", 11));
root.getChildren().add(bRechnen);
// Ende Komponenten
primaryStage.setOnCloseRequest(e -> System.exit(0));
primaryStage.setTitle("BruttoNetto");
primaryStage.setScene(scene);
primaryStage.show();
} // end of public BruttoNetto
// Anfang Methoden
public static void main(String[] args) {
launch(args);
} // end of main
public void bRechnen_Action(Event evt) {
int gehalt = gehaltField.getInt();
double steuer = steuerField.getDouble();
steuer = steuer * .01;
lEndGehalt.setText("End Gehalt: " + (gehalt - ((double)gehalt * steuer )));
lSteuer.setText("Steuer: " + ((double)gehalt * steuer ));
} // end of bRechnen_Action
// Ende Methoden
} // end of class BruttoNetto

210
2/Lenj/BruttoNetto.~fm Normal file
View File

@@ -0,0 +1,210 @@
object FGUIForm: TFXGuiForm
Tag = 180
Left = 915
Top = 458
BorderIcons = [biSystemMenu]
Caption = 'BruttoNetto'
ClientHeight = 223
ClientWidth = 268
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Segoe UI'
Font.Style = []
FormStyle = fsStayOnTop
Position = poDesigned
Visible = True
OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged
OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged
OnClose = FormClose
OnCloseQuery = FormCloseQuery
OnCreate = FormCreate
OnMouseActivate = FormMouseActivate
OnResize = FormResize
FrameType = 8
Modified = False
Resizable = True
Undecorated = False
Background = clBtnFace
Title = 'BruttoNetto'
X = 0
Y = 0
FullScreen = False
AlwaysOnTop = False
Iconified = False
MaxHeight = 0
MaxWidth = 0
MinHeight = 0
MinWidth = 0
showing = ''
TextHeight = 15
object gehaltField: TFXNumberField
Tag = 103
Left = 8
Top = 16
Width = 80
Height = 24
Cursor = crIBeam
Hint = 'numberField1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clWhite
JavaType = 'NumberField'
LayoutX = 8
LayoutY = 16
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Text = '3000'
Editable = True
PromptText = 'Gehalt'
Alignment = CENTER_LEFT
PrefColumnCount = 12
action = ''
end
object steuerField: TFXNumberField
Tag = 103
Left = 8
Top = 48
Width = 80
Height = 24
Cursor = crIBeam
Hint = 'numberField2'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clWhite
JavaType = 'NumberField'
LayoutX = 8
LayoutY = 48
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Text = '19.0'
Editable = True
Alignment = CENTER_LEFT
PrefColumnCount = 12
action = ''
end
object lEndGehalt: TFXLabel
Tag = 101
Left = 120
Top = 16
Width = 112
Height = 24
Hint = 'label1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Label'
LayoutX = 120
LayoutY = 16
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 112
SnapToPixel = False
Alignment = CENTER_LEFT
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'End Gehalt: 0'
TextAlignment = _TA_LEFT
WrapText = False
end
object lSteuer: TFXLabel
Tag = 101
Left = 120
Top = 48
Width = 112
Height = 24
Hint = 'label2'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Label'
LayoutX = 120
LayoutY = 48
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 112
SnapToPixel = False
Alignment = CENTER_LEFT
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'Steuer'
TextAlignment = _TA_LEFT
WrapText = False
end
object bRechnen: TFXButton
Tag = 105
Left = 72
Top = 96
Width = 80
Height = 24
Hint = 'button1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Button'
LayoutX = 72
LayoutY = 96
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Alignment = CENTER
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'Rechnen'
TextAlignment = _TA_LEFT
WrapText = False
action = 'bRechnen_Action'
CancelButton = False
DefaultButton = False
end
object GNUgettextMarker: TGnuGettextComponentMarker
end
end

Binary file not shown.

View File

@@ -0,0 +1,88 @@
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
import javafx.scene.control.*;
import je.NumberField;
import javafx.scene.text.*;
import javafx.scene.text.Font;
import javafx.event.*;
/**
*
* Beschreibung
*
* @version 1.0 vom 06.11.2024
* @author
*/
public class Kraftstoffverbrauch extends Application {
// Anfang Attribute
private NumberField kmField = new NumberField();
private NumberField kraftstoffField = new NumberField();
private Button bRechnen = new Button();
private Label lErgebnis = new Label();
// Ende Attribute
public void start(Stage primaryStage) {
Pane root = new Pane();
Scene scene = new Scene(root, 268, 224);
// Anfang Komponenten
kmField.setLayoutX(8);
kmField.setLayoutY(24);
kmField.setPrefHeight(24);
kmField.setPrefWidth(80);
kmField.setFont(Font.font("Dialog", 11));
kmField.setPromptText("Km");
kmField.setText("56");
root.getChildren().add(kmField);
kraftstoffField.setLayoutX(128);
kraftstoffField.setLayoutY(24);
kraftstoffField.setPrefHeight(24);
kraftstoffField.setPrefWidth(80);
kraftstoffField.setFont(Font.font("Dialog", 11));
kraftstoffField.setPromptText("l");
kraftstoffField.setText("10");
root.getChildren().add(kraftstoffField);
bRechnen.setLayoutX(72);
bRechnen.setLayoutY(64);
bRechnen.setPrefHeight(24);
bRechnen.setPrefWidth(80);
bRechnen.setText("Rechnen");
bRechnen.setOnAction(
(event) -> {bRechnen_Action(event);}
);
bRechnen.setFont(Font.font("Dialog", 11));
root.getChildren().add(bRechnen);
lErgebnis.setLayoutX(16);
lErgebnis.setLayoutY(112);
lErgebnis.setPrefHeight(24);
lErgebnis.setPrefWidth(248);
lErgebnis.setText("");
lErgebnis.setFont(Font.font("Dialog", 11));
root.getChildren().add(lErgebnis);
// Ende Komponenten
primaryStage.setOnCloseRequest(e -> System.exit(0));
primaryStage.setTitle("Kraftstoffverbrauch");
primaryStage.setScene(scene);
primaryStage.show();
} // end of public Kraftstoffverbrauch
// Anfang Methoden
public static void main(String[] args) {
launch(args);
} // end of main
public void bRechnen_Action(Event evt) {
double gefahreneKm = kmField.getDouble();
double kraftstoffmenge = kraftstoffField.getDouble();
lErgebnis.setText("Ergebniss: " + ((kraftstoffmenge/gefahreneKm)*100));
} // end of bRechnen_Action
// Ende Methoden
} // end of class Kraftstoffverbrauch

View File

@@ -0,0 +1,177 @@
object FGUIForm_1: TFXGuiForm
Tag = 180
Left = 1077
Top = 425
BorderIcons = [biSystemMenu]
Caption = 'Kraftstoffverbrauch'
ClientHeight = 223
ClientWidth = 268
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Segoe UI'
Font.Style = []
FormStyle = fsStayOnTop
Position = poDesigned
Visible = True
OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged
OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged
OnClose = FormClose
OnCloseQuery = FormCloseQuery
OnCreate = FormCreate
OnMouseActivate = FormMouseActivate
OnResize = FormResize
FrameType = 8
Modified = False
Resizable = True
Undecorated = False
Background = clBtnFace
Title = 'Kraftstoffverbrauch'
X = 0
Y = 0
FullScreen = False
AlwaysOnTop = False
Iconified = False
MaxHeight = 0
MaxWidth = 0
MinHeight = 0
MinWidth = 0
showing = ''
TextHeight = 15
object kmField: TFXNumberField
Tag = 103
Left = 8
Top = 24
Width = 80
Height = 24
Cursor = crIBeam
Hint = 'numberField1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clWhite
JavaType = 'NumberField'
LayoutX = 8
LayoutY = 24
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Text = '56'
Editable = True
PromptText = 'Km'
Alignment = CENTER_LEFT
PrefColumnCount = 12
action = ''
end
object kraftstoffField: TFXNumberField
Tag = 103
Left = 128
Top = 24
Width = 80
Height = 24
Cursor = crIBeam
Hint = 'numberField2'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clWhite
JavaType = 'NumberField'
LayoutX = 128
LayoutY = 24
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Text = '10'
Editable = True
PromptText = 'l'
Alignment = CENTER_LEFT
PrefColumnCount = 12
action = ''
end
object bRechnen: TFXButton
Tag = 105
Left = 72
Top = 64
Width = 80
Height = 24
Hint = 'button1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Button'
LayoutX = 72
LayoutY = 64
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Alignment = CENTER
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'Rechnen'
TextAlignment = _TA_LEFT
WrapText = False
action = 'bRechnen_Action'
CancelButton = False
DefaultButton = False
end
object lErgebnis: TFXLabel
Tag = 101
Left = 16
Top = 112
Width = 248
Height = 24
Hint = 'label1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Label'
LayoutX = 16
LayoutY = 112
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 248
SnapToPixel = False
Alignment = CENTER_LEFT
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = ''
TextAlignment = _TA_LEFT
WrapText = False
end
object GNUgettextMarker: TGnuGettextComponentMarker
end
end

View File

@@ -0,0 +1,88 @@
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
import javafx.scene.control.*;
import je.NumberField;
import javafx.scene.text.*;
import javafx.scene.text.Font;
import javafx.event.*;
/**
*
* Beschreibung
*
* @version 1.0 vom 06.11.2024
* @author
*/
public class Kraftstoffverbrauch extends Application {
// Anfang Attribute
private NumberField kmField = new NumberField();
private NumberField kraftstoffField = new NumberField();
private Button bRechnen = new Button();
private Label lErgebnis = new Label();
// Ende Attribute
public void start(Stage primaryStage) {
Pane root = new Pane();
Scene scene = new Scene(root, 268, 224);
// Anfang Komponenten
kmField.setLayoutX(8);
kmField.setLayoutY(24);
kmField.setPrefHeight(24);
kmField.setPrefWidth(80);
kmField.setFont(Font.font("Dialog", 11));
kmField.setPromptText("Km");
kmField.setText("56");
root.getChildren().add(kmField);
kraftstoffField.setLayoutX(128);
kraftstoffField.setLayoutY(24);
kraftstoffField.setPrefHeight(24);
kraftstoffField.setPrefWidth(80);
kraftstoffField.setFont(Font.font("Dialog", 11));
kraftstoffField.setPromptText("l");
kraftstoffField.setText("10");
root.getChildren().add(kraftstoffField);
bRechnen.setLayoutX(72);
bRechnen.setLayoutY(64);
bRechnen.setPrefHeight(24);
bRechnen.setPrefWidth(80);
bRechnen.setText("Rechnen");
bRechnen.setOnAction(
(event) -> {bRechnen_Action(event);}
);
bRechnen.setFont(Font.font("Dialog", 11));
root.getChildren().add(bRechnen);
lErgebnis.setLayoutX(16);
lErgebnis.setLayoutY(112);
lErgebnis.setPrefHeight(24);
lErgebnis.setPrefWidth(248);
lErgebnis.setText("");
lErgebnis.setFont(Font.font("Dialog", 11));
root.getChildren().add(lErgebnis);
// Ende Komponenten
primaryStage.setOnCloseRequest(e -> System.exit(0));
primaryStage.setTitle("Kraftstoffverbrauch");
primaryStage.setScene(scene);
primaryStage.show();
} // end of public Kraftstoffverbrauch
// Anfang Methoden
public static void main(String[] args) {
launch(args);
} // end of main
public void bRechnen_Action(Event evt) {
double gefahreneKm = kmField.getDouble();
double kraftstoffmenge = kraftstoffField.getDouble();
lErgebnis.setText("Kraftstoffverbrauch: " + ((kraftstoffmenge/gefahreneKm)*100));
} // end of bRechnen_Action
// Ende Methoden
} // end of class Kraftstoffverbrauch

View File

@@ -0,0 +1,174 @@
object FGUIForm_1: TFXGuiForm
Tag = 180
Left = 1077
Top = 425
BorderIcons = [biSystemMenu]
Caption = 'Kraftstoffverbrauch'
ClientHeight = 223
ClientWidth = 268
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Segoe UI'
Font.Style = []
FormStyle = fsStayOnTop
Position = poDesigned
Visible = True
OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged
OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged
OnClose = FormClose
OnCloseQuery = FormCloseQuery
OnMouseActivate = FormMouseActivate
OnResize = FormResize
FrameType = 8
Modified = False
Resizable = True
Undecorated = False
Background = clBtnFace
Title = 'Kraftstoffverbrauch'
X = 0
Y = 0
FullScreen = False
AlwaysOnTop = False
Iconified = False
MaxHeight = 0
MaxWidth = 0
MinHeight = 0
MinWidth = 0
showing = ''
TextHeight = 15
object kmField: TFXNumberField
Tag = 103
Left = 8
Top = 24
Width = 80
Height = 24
Cursor = crIBeam
Hint = 'numberField1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clWhite
JavaType = 'NumberField'
LayoutX = 8
LayoutY = 24
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Text = '56'
Editable = True
PromptText = 'Km'
Alignment = CENTER_LEFT
PrefColumnCount = 12
action = ''
end
object kraftstoffField: TFXNumberField
Tag = 103
Left = 128
Top = 24
Width = 80
Height = 24
Cursor = crIBeam
Hint = 'numberField2'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clWhite
JavaType = 'NumberField'
LayoutX = 128
LayoutY = 24
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Text = '10'
Editable = True
PromptText = 'l'
Alignment = CENTER_LEFT
PrefColumnCount = 12
action = ''
end
object bRechnen: TFXButton
Tag = 105
Left = 72
Top = 64
Width = 80
Height = 24
Hint = 'button1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Button'
LayoutX = 72
LayoutY = 64
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Alignment = CENTER
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'Rechnen'
TextAlignment = _TA_LEFT
WrapText = False
action = 'bRechnen_Action'
CancelButton = False
DefaultButton = False
end
object lErgebnis: TFXLabel
Tag = 101
Left = 16
Top = 112
Width = 248
Height = 24
Hint = 'label1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Label'
LayoutX = 16
LayoutY = 112
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 248
SnapToPixel = False
Alignment = CENTER_LEFT
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = ''
TextAlignment = _TA_LEFT
WrapText = False
end
end

BIN
2/Lenj/Quadratzahlen.class Normal file

Binary file not shown.

72
2/Lenj/Quadratzahlen.java Normal file
View File

@@ -0,0 +1,72 @@
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
import javafx.scene.control.*;
import javafx.event.*;
import javafx.scene.text.*;
import javafx.scene.text.Font;
import javafx.collections.*;
/**
*
* Beschreibung
*
* @version 1.0 vom 19.11.2024
* @author
*/
public class Quadratzahlen extends Application {
// Anfang Attribute
private Button bStart = new Button();
private ListView<String> listView1 = new ListView<>();
private ObservableList<String> listView1ObservableList =
FXCollections.observableArrayList();
// Ende Attribute
public void start(Stage primaryStage) {
Pane root = new Pane();
Scene scene = new Scene(root, 198, 448);
// Anfang Komponenten
bStart.setLayoutX(32);
bStart.setLayoutY(32);
bStart.setPrefHeight(24);
bStart.setPrefWidth(80);
bStart.setText("Start");
bStart.setOnAction(
(event) -> {bStart_Action(event);}
);
bStart.setFont(Font.font("Dialog", 11));
root.getChildren().add(bStart);
listView1.setLayoutX(16);
listView1.setLayoutY(80);
listView1.setPrefHeight(360);
listView1.setPrefWidth(128);
listView1.setItems(listView1ObservableList);
root.getChildren().add(listView1);
// Ende Komponenten
primaryStage.setOnCloseRequest(e -> System.exit(0));
primaryStage.setTitle("Quadratzahlen");
primaryStage.setScene(scene);
primaryStage.show();
} // end of public Quadratzahlen
// Anfang Methoden
public static void main(String[] args) {
launch(args);
} // end of main
public void bStart_Action(Event evt) {
listView1ObservableList.removeAll();
for (int i = 1; i < 21; i++) {
listView1ObservableList.add(i+". " + i*i);
}
} // end of bStart_Action
// Ende Methoden
} // end of class Quadratzahlen

113
2/Lenj/Quadratzahlen.jfm Normal file
View File

@@ -0,0 +1,113 @@
object FGUIForm: TFXGuiForm
Tag = 180
Left = 852
Top = 239
BorderIcons = [biSystemMenu]
Caption = 'Quadratzahlen'
ClientHeight = 447
ClientWidth = 198
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Segoe UI'
Font.Style = []
FormStyle = fsStayOnTop
Position = poDesigned
Visible = True
OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged
OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged
OnClose = FormClose
OnCloseQuery = FormCloseQuery
OnCreate = FormCreate
OnMouseActivate = FormMouseActivate
OnResize = FormResize
FrameType = 8
Modified = False
Resizable = True
Undecorated = False
Background = clBtnFace
Title = 'Quadratzahlen'
X = 0
Y = 0
FullScreen = False
AlwaysOnTop = False
Iconified = False
MaxHeight = 0
MaxWidth = 0
MinHeight = 0
MinWidth = 0
showing = ''
TextHeight = 15
object bStart: TFXButton
Tag = 105
Left = 32
Top = 32
Width = 80
Height = 24
Hint = 'button1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Button'
LayoutX = 32
LayoutY = 32
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Alignment = CENTER
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'Start'
TextAlignment = _TA_LEFT
WrapText = False
action = 'bStart_Action'
CancelButton = False
DefaultButton = False
end
object listView1: TFXListView
Tag = 109
Left = 16
Top = 80
Width = 128
Height = 360
Hint = 'listView1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = 13158600
JavaType = 'ListView'
LayoutX = 16
LayoutY = 80
Disable = False
Cache = False
dragOver = ''
PrefHeight = 360
PrefWidth = 128
SnapToPixel = False
Editable = False
FixedCellSize = -1
Items.Strings = (
'Amerika'
'Europa'
'Asien')
Orientation = VERTICAL
SelectionMode = SINGLE
end
object GNUgettextMarker: TGnuGettextComponentMarker
end
end

72
2/Lenj/Quadratzahlen.~ava Normal file
View File

@@ -0,0 +1,72 @@
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
import javafx.scene.control.*;
import javafx.event.*;
import javafx.scene.text.*;
import javafx.scene.text.Font;
import javafx.collections.*;
/**
*
* Beschreibung
*
* @version 1.0 vom 19.11.2024
* @author
*/
public class Quadratzahlen extends Application {
// Anfang Attribute
private Button bStart = new Button();
private ListView<String> listView1 = new ListView<>();
private ObservableList<String> listView1ObservableList =
FXCollections.observableArrayList();
// Ende Attribute
public void start(Stage primaryStage) {
Pane root = new Pane();
Scene scene = new Scene(root, 198, 448);
// Anfang Komponenten
bStart.setLayoutX(32);
bStart.setLayoutY(32);
bStart.setPrefHeight(24);
bStart.setPrefWidth(80);
bStart.setText("Start");
bStart.setOnAction(
(event) -> {bStart_Action(event);}
);
bStart.setFont(Font.font("Dialog", 11));
root.getChildren().add(bStart);
listView1.setLayoutX(16);
listView1.setLayoutY(80);
listView1.setPrefHeight(360);
listView1.setPrefWidth(128);
listView1.setItems(listView1ObservableList);
root.getChildren().add(listView1);
// Ende Komponenten
primaryStage.setOnCloseRequest(e -> System.exit(0));
primaryStage.setTitle("Quadratzahlen");
primaryStage.setScene(scene);
primaryStage.show();
} // end of public Quadratzahlen
// Anfang Methoden
public static void main(String[] args) {
launch(args);
} // end of main
public void bStart_Action(Event evt) {
listView1ObservableList.remove(0,20);
for (int i = 1; i < 21; i++) {
listView1ObservableList.add(i+". " + i*i);
}
} // end of bStart_Action
// Ende Methoden
} // end of class Quadratzahlen

113
2/Lenj/Quadratzahlen.~fm Normal file
View File

@@ -0,0 +1,113 @@
object FGUIForm: TFXGuiForm
Tag = 180
Left = 852
Top = 239
BorderIcons = [biSystemMenu]
Caption = 'Quadratzahlen'
ClientHeight = 447
ClientWidth = 198
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Segoe UI'
Font.Style = []
FormStyle = fsStayOnTop
Position = poDesigned
Visible = True
OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged
OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged
OnClose = FormClose
OnCloseQuery = FormCloseQuery
OnCreate = FormCreate
OnMouseActivate = FormMouseActivate
OnResize = FormResize
FrameType = 8
Modified = False
Resizable = True
Undecorated = False
Background = clBtnFace
Title = 'Quadratzahlen'
X = 0
Y = 0
FullScreen = False
AlwaysOnTop = False
Iconified = False
MaxHeight = 0
MaxWidth = 0
MinHeight = 0
MinWidth = 0
showing = ''
TextHeight = 15
object bStart: TFXButton
Tag = 105
Left = 32
Top = 32
Width = 80
Height = 24
Hint = 'button1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Button'
LayoutX = 32
LayoutY = 32
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Alignment = CENTER
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'Start'
TextAlignment = _TA_LEFT
WrapText = False
action = 'bStart_Action'
CancelButton = False
DefaultButton = False
end
object listView1: TFXListView
Tag = 109
Left = 16
Top = 80
Width = 128
Height = 360
Hint = 'listView1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = 13158600
JavaType = 'ListView'
LayoutX = 16
LayoutY = 80
Disable = False
Cache = False
dragOver = ''
PrefHeight = 360
PrefWidth = 128
SnapToPixel = False
Editable = False
FixedCellSize = -1
Items.Strings = (
'Amerika'
'Europa'
'Asien')
Orientation = VERTICAL
SelectionMode = SINGLE
end
object GNUgettextMarker: TGnuGettextComponentMarker
end
end

133
2/Lenj/Steigung.java Normal file
View File

@@ -0,0 +1,133 @@
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
import javafx.scene.control.*;
import je.NumberField;
import javafx.scene.text.*;
import javafx.scene.text.Font;
import javafx.event.*;
/**
*
* Beschreibung
*
* @version 1.0 vom 06.11.2024
* @author
*/
public class Steigung extends Application {
// Anfang Attribute
private NumberField numberField1 = new NumberField();
private NumberField numberField2 = new NumberField();
private NumberField numberField3 = new NumberField();
private NumberField numberField4 = new NumberField();
private Button bRechnen = new Button();
private Label lergebnis = new Label();
private Label lX = new Label();
private Label lY = new Label();
private Label lX21 = new Label();
private Label lY21 = new Label();
// Ende Attribute
public void start(Stage primaryStage) {
Pane root = new Pane();
Scene scene = new Scene(root, 313, 242);
// Anfang Komponenten
numberField1.setLayoutX(8);
numberField1.setLayoutY(40);
numberField1.setPrefHeight(24);
numberField1.setPrefWidth(80);
numberField1.setFont(Font.font("Dialog", 11));
root.getChildren().add(numberField1);
numberField2.setLayoutX(8);
numberField2.setLayoutY(88);
numberField2.setPrefHeight(24);
numberField2.setPrefWidth(80);
numberField2.setFont(Font.font("Dialog", 11));
root.getChildren().add(numberField2);
numberField3.setLayoutX(184);
numberField3.setLayoutY(40);
numberField3.setPrefHeight(24);
numberField3.setPrefWidth(80);
numberField3.setFont(Font.font("Dialog", 11));
root.getChildren().add(numberField3);
numberField4.setLayoutX(184);
numberField4.setLayoutY(88);
numberField4.setPrefHeight(24);
numberField4.setPrefWidth(80);
numberField4.setFont(Font.font("Dialog", 11));
root.getChildren().add(numberField4);
bRechnen.setLayoutX(104);
bRechnen.setLayoutY(136);
bRechnen.setPrefHeight(24);
bRechnen.setPrefWidth(80);
bRechnen.setText("Rechnen");
bRechnen.setOnAction(
(event) -> {bRechnen_Action(event);}
);
bRechnen.setFont(Font.font("Dialog", 11));
root.getChildren().add(bRechnen);
lergebnis.setLayoutX(16);
lergebnis.setLayoutY(184);
lergebnis.setPrefHeight(24);
lergebnis.setPrefWidth(168);
lergebnis.setText("ergebnis");
lergebnis.setFont(Font.font("Dialog", 11));
root.getChildren().add(lergebnis);
lX.setLayoutX(8);
lX.setLayoutY(16);
lX.setPrefHeight(24);
lX.setPrefWidth(80);
lX.setText("X1");
lX.setFont(Font.font("Dialog", 11));
root.getChildren().add(lX);
lY.setLayoutX(8);
lY.setLayoutY(64);
lY.setPrefHeight(24);
lY.setPrefWidth(80);
lY.setText("Y2");
lY.setFont(Font.font("Dialog", 11));
root.getChildren().add(lY);
lX21.setLayoutX(184);
lX21.setLayoutY(16);
lX21.setPrefHeight(24);
lX21.setPrefWidth(80);
lX21.setText("X2");
lX21.setFont(Font.font("Dialog", 11));
root.getChildren().add(lX21);
lY21.setLayoutX(184);
lY21.setLayoutY(64);
lY21.setPrefHeight(24);
lY21.setPrefWidth(80);
lY21.setText("Y2");
lY21.setFont(Font.font("Dialog", 11));
root.getChildren().add(lY21);
// Ende Komponenten
primaryStage.setOnCloseRequest(e -> System.exit(0));
primaryStage.setTitle("Steigung");
primaryStage.setScene(scene);
primaryStage.show();
} // end of public Steigung
// Anfang Methoden
public static void main(String[] args) {
launch(args);
} // end of main
public void bRechnen_Action(Event evt) {
double x1 = 4;
double y1 = 2;
double x2 = 6;
double y2 = 7;
System.out.println("Steigung: " + ((y2 - y1)/(x2 - x1)));
} // end of bRechnen_Action
// Ende Methoden
} // end of class Steigung

371
2/Lenj/Steigung.jfm Normal file
View File

@@ -0,0 +1,371 @@
object FGUIForm_2: TFXGuiForm
Tag = 180
Left = 664
Top = 372
BorderIcons = [biSystemMenu]
Caption = 'Steigung'
ClientHeight = 241
ClientWidth = 313
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Segoe UI'
Font.Style = []
FormStyle = fsStayOnTop
Position = poDesigned
Visible = True
OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged
OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged
OnClose = FormClose
OnCloseQuery = FormCloseQuery
OnCreate = FormCreate
OnMouseActivate = FormMouseActivate
OnResize = FormResize
FrameType = 8
Modified = False
Resizable = True
Undecorated = False
Background = clBtnFace
Title = 'Steigung'
X = 0
Y = 0
FullScreen = False
AlwaysOnTop = False
Iconified = False
MaxHeight = 0
MaxWidth = 0
MinHeight = 0
MinWidth = 0
showing = ''
TextHeight = 15
object numberField1: TFXNumberField
Tag = 103
Left = 8
Top = 40
Width = 80
Height = 24
Cursor = crIBeam
Hint = 'numberField1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clWhite
JavaType = 'NumberField'
LayoutX = 8
LayoutY = 40
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Text = ''
Editable = True
Alignment = CENTER_LEFT
PrefColumnCount = 12
action = ''
end
object numberField2: TFXNumberField
Tag = 103
Left = 8
Top = 88
Width = 80
Height = 24
Cursor = crIBeam
Hint = 'numberField2'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clWhite
JavaType = 'NumberField'
LayoutX = 8
LayoutY = 88
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Text = ''
Editable = True
Alignment = CENTER_LEFT
PrefColumnCount = 12
action = ''
end
object numberField3: TFXNumberField
Tag = 103
Left = 184
Top = 40
Width = 80
Height = 24
Cursor = crIBeam
Hint = 'numberField3'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clWhite
JavaType = 'NumberField'
LayoutX = 184
LayoutY = 40
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Text = ''
Editable = True
Alignment = CENTER_LEFT
PrefColumnCount = 12
action = ''
end
object numberField4: TFXNumberField
Tag = 103
Left = 184
Top = 88
Width = 80
Height = 24
Cursor = crIBeam
Hint = 'numberField4'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clWhite
JavaType = 'NumberField'
LayoutX = 184
LayoutY = 88
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Text = ''
Editable = True
Alignment = CENTER_LEFT
PrefColumnCount = 12
action = ''
end
object bRechnen: TFXButton
Tag = 105
Left = 104
Top = 136
Width = 80
Height = 24
Hint = 'button1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Button'
LayoutX = 104
LayoutY = 136
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Alignment = CENTER
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'Rechnen'
TextAlignment = _TA_LEFT
WrapText = False
action = 'bRechnen_Action'
CancelButton = False
DefaultButton = False
end
object lergebnis: TFXLabel
Tag = 101
Left = 16
Top = 184
Width = 168
Height = 24
Hint = 'label1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Label'
LayoutX = 16
LayoutY = 184
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 168
SnapToPixel = False
Alignment = CENTER_LEFT
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'ergebnis'
TextAlignment = _TA_LEFT
WrapText = False
end
object lX: TFXLabel
Tag = 101
Left = 8
Top = 16
Width = 80
Height = 24
Hint = 'label2'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Label'
LayoutX = 8
LayoutY = 16
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Alignment = CENTER_LEFT
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'X1'
TextAlignment = _TA_LEFT
WrapText = False
end
object lY: TFXLabel
Tag = 101
Left = 8
Top = 64
Width = 80
Height = 24
Hint = 'label3'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Label'
LayoutX = 8
LayoutY = 64
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Alignment = CENTER_LEFT
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'Y2'
TextAlignment = _TA_LEFT
WrapText = False
end
object lX21: TFXLabel
Tag = 101
Left = 184
Top = 16
Width = 80
Height = 24
Hint = 'label4'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Label'
LayoutX = 184
LayoutY = 16
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Alignment = CENTER_LEFT
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'X2'
TextAlignment = _TA_LEFT
WrapText = False
end
object lY21: TFXLabel
Tag = 101
Left = 184
Top = 64
Width = 80
Height = 24
Hint = 'label5'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Label'
LayoutX = 184
LayoutY = 64
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Alignment = CENTER_LEFT
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'Y2'
TextAlignment = _TA_LEFT
WrapText = False
end
object GNUgettextMarker: TGnuGettextComponentMarker
end
end

133
2/Lenj/Steigung.~ava Normal file
View File

@@ -0,0 +1,133 @@
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
import javafx.scene.control.*;
import je.NumberField;
import javafx.scene.text.*;
import javafx.scene.text.Font;
import javafx.event.*;
/**
*
* Beschreibung
*
* @version 1.0 vom 06.11.2024
* @author
*/
public class Steigung extends Application {
// Anfang Attribute
private NumberField numberField1 = new NumberField();
private NumberField numberField2 = new NumberField();
private NumberField numberField3 = new NumberField();
private NumberField numberField4 = new NumberField();
private Button bRechnen = new Button();
private Label lergebnis = new Label();
private Label lX = new Label();
private Label lY = new Label();
private Label lX21 = new Label();
private Label lY21 = new Label();
// Ende Attribute
public void start(Stage primaryStage) {
Pane root = new Pane();
Scene scene = new Scene(root, 313, 242);
// Anfang Komponenten
numberField1.setLayoutX(8);
numberField1.setLayoutY(40);
numberField1.setPrefHeight(24);
numberField1.setPrefWidth(80);
numberField1.setFont(Font.font("Dialog", 11));
root.getChildren().add(numberField1);
numberField2.setLayoutX(8);
numberField2.setLayoutY(88);
numberField2.setPrefHeight(24);
numberField2.setPrefWidth(80);
numberField2.setFont(Font.font("Dialog", 11));
root.getChildren().add(numberField2);
numberField3.setLayoutX(184);
numberField3.setLayoutY(40);
numberField3.setPrefHeight(24);
numberField3.setPrefWidth(80);
numberField3.setFont(Font.font("Dialog", 11));
root.getChildren().add(numberField3);
numberField4.setLayoutX(184);
numberField4.setLayoutY(88);
numberField4.setPrefHeight(24);
numberField4.setPrefWidth(80);
numberField4.setFont(Font.font("Dialog", 11));
root.getChildren().add(numberField4);
bRechnen.setLayoutX(104);
bRechnen.setLayoutY(136);
bRechnen.setPrefHeight(24);
bRechnen.setPrefWidth(80);
bRechnen.setText("Rechnen");
bRechnen.setOnAction(
(event) -> {bRechnen_Action(event);}
);
bRechnen.setFont(Font.font("Dialog", 11));
root.getChildren().add(bRechnen);
lergebnis.setLayoutX(16);
lergebnis.setLayoutY(184);
lergebnis.setPrefHeight(24);
lergebnis.setPrefWidth(168);
lergebnis.setText("ergebnis");
lergebnis.setFont(Font.font("Dialog", 11));
root.getChildren().add(lergebnis);
lX.setLayoutX(8);
lX.setLayoutY(16);
lX.setPrefHeight(24);
lX.setPrefWidth(80);
lX.setText("X1");
lX.setFont(Font.font("Dialog", 11));
root.getChildren().add(lX);
lY.setLayoutX(8);
lY.setLayoutY(64);
lY.setPrefHeight(24);
lY.setPrefWidth(80);
lY.setText("Y2");
lY.setFont(Font.font("Dialog", 11));
root.getChildren().add(lY);
lX21.setLayoutX(184);
lX21.setLayoutY(16);
lX21.setPrefHeight(24);
lX21.setPrefWidth(80);
lX21.setText("X2");
lX21.setFont(Font.font("Dialog", 11));
root.getChildren().add(lX21);
lY21.setLayoutX(184);
lY21.setLayoutY(64);
lY21.setPrefHeight(24);
lY21.setPrefWidth(80);
lY21.setText("Y2");
lY21.setFont(Font.font("Dialog", 11));
root.getChildren().add(lY21);
// Ende Komponenten
primaryStage.setOnCloseRequest(e -> System.exit(0));
primaryStage.setTitle("Steigung");
primaryStage.setScene(scene);
primaryStage.show();
} // end of public Steigung
// Anfang Methoden
public static void main(String[] args) {
launch(args);
} // end of main
public void bRechnen_Action(Event evt) {
double x1 = ;
double y1 = 2;
double x2 = 6;
double y2 = 7;
System.out.println("Steigung: " + ((y2 - y1)/(x2 - x1)));
} // end of bRechnen_Action
// Ende Methoden
} // end of class Steigung

368
2/Lenj/Steigung.~fm Normal file
View File

@@ -0,0 +1,368 @@
object FGUIForm: TFXGuiForm
Tag = 180
Left = 664
Top = 372
BorderIcons = [biSystemMenu]
Caption = 'Steigung'
ClientHeight = 241
ClientWidth = 313
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Segoe UI'
Font.Style = []
FormStyle = fsStayOnTop
Position = poDesigned
Visible = True
OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged
OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged
OnClose = FormClose
OnCloseQuery = FormCloseQuery
OnMouseActivate = FormMouseActivate
OnResize = FormResize
FrameType = 8
Modified = False
Resizable = True
Undecorated = False
Background = clBtnFace
Title = 'Steigung'
X = 0
Y = 0
FullScreen = False
AlwaysOnTop = False
Iconified = False
MaxHeight = 0
MaxWidth = 0
MinHeight = 0
MinWidth = 0
showing = ''
TextHeight = 15
object numberField1: TFXNumberField
Tag = 103
Left = 8
Top = 40
Width = 80
Height = 24
Cursor = crIBeam
Hint = 'numberField1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clWhite
JavaType = 'NumberField'
LayoutX = 8
LayoutY = 40
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Text = ''
Editable = True
Alignment = CENTER_LEFT
PrefColumnCount = 12
action = ''
end
object numberField2: TFXNumberField
Tag = 103
Left = 8
Top = 88
Width = 80
Height = 24
Cursor = crIBeam
Hint = 'numberField2'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clWhite
JavaType = 'NumberField'
LayoutX = 8
LayoutY = 88
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Text = ''
Editable = True
Alignment = CENTER_LEFT
PrefColumnCount = 12
action = ''
end
object numberField3: TFXNumberField
Tag = 103
Left = 184
Top = 40
Width = 80
Height = 24
Cursor = crIBeam
Hint = 'numberField3'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clWhite
JavaType = 'NumberField'
LayoutX = 184
LayoutY = 40
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Text = ''
Editable = True
Alignment = CENTER_LEFT
PrefColumnCount = 12
action = ''
end
object numberField4: TFXNumberField
Tag = 103
Left = 184
Top = 88
Width = 80
Height = 24
Cursor = crIBeam
Hint = 'numberField4'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clWhite
JavaType = 'NumberField'
LayoutX = 184
LayoutY = 88
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Text = ''
Editable = True
Alignment = CENTER_LEFT
PrefColumnCount = 12
action = ''
end
object bRechnen: TFXButton
Tag = 105
Left = 104
Top = 136
Width = 80
Height = 24
Hint = 'button1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Button'
LayoutX = 104
LayoutY = 136
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Alignment = CENTER
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'Rechnen'
TextAlignment = _TA_LEFT
WrapText = False
action = 'bRechnen_Action'
CancelButton = False
DefaultButton = False
end
object lergebnis: TFXLabel
Tag = 101
Left = 16
Top = 184
Width = 168
Height = 24
Hint = 'label1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Label'
LayoutX = 16
LayoutY = 184
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 168
SnapToPixel = False
Alignment = CENTER_LEFT
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'ergebnis'
TextAlignment = _TA_LEFT
WrapText = False
end
object lX: TFXLabel
Tag = 101
Left = 8
Top = 16
Width = 80
Height = 24
Hint = 'label2'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Label'
LayoutX = 8
LayoutY = 16
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Alignment = CENTER_LEFT
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'X1'
TextAlignment = _TA_LEFT
WrapText = False
end
object lY: TFXLabel
Tag = 101
Left = 8
Top = 64
Width = 80
Height = 24
Hint = 'label3'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Label'
LayoutX = 8
LayoutY = 64
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Alignment = CENTER_LEFT
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'Y2'
TextAlignment = _TA_LEFT
WrapText = False
end
object lX21: TFXLabel
Tag = 101
Left = 184
Top = 16
Width = 80
Height = 24
Hint = 'label4'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Label'
LayoutX = 184
LayoutY = 16
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Alignment = CENTER_LEFT
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'X2'
TextAlignment = _TA_LEFT
WrapText = False
end
object lY21: TFXLabel
Tag = 101
Left = 184
Top = 64
Width = 80
Height = 24
Hint = 'label5'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Label'
LayoutX = 184
LayoutY = 64
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Alignment = CENTER_LEFT
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'Y2'
TextAlignment = _TA_LEFT
WrapText = False
end
end

0
2/Lenj/error.txt Normal file
View File

Binary file not shown.

BIN
2/Lenj/game.class Normal file

Binary file not shown.

96
2/Lenj/game.java Normal file
View File

@@ -0,0 +1,96 @@
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
import javafx.scene.canvas.*;
import javafx.scene.control.*;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.paint.Color;
import java.lang.Thread;
import javafx.animation.AnimationTimer;
import javafx.scene.input.*;
import javafx.event.*;
import javafx.scene.input.KeyCodeCombination;
/**
*
* Beschreibung
*
* @version 1.0 vom 19.11.2024
* @author
*/
public class game extends Application {
// Anfang Attribute
public int gameWidth = 1000;
public int gameHeight = 720;
private AnimationTimer timer;
private int X = 0;
private Canvas main = new Canvas();
// Ende Attribute
public void start(Stage primaryStage) {
Pane root = new Pane();
Scene scene = new Scene(root, gameWidth, gameHeight);
// Anfang Komponenten
main.setLayoutX(0);
main.setLayoutY(0);
main.setWidth(gameWidth);
main.setHeight(gameHeight);
main.setOnKeyPressed(
(event) -> {main_KeyPressed(event);}
);
root.getChildren().add(main);
main.setOnMouseClicked(
(event) -> {main_MouseClicked(event);}
);
// Ende Komponenten
primaryStage.setOnCloseRequest(e -> System.exit(0));
primaryStage.setTitle("game");
primaryStage.setScene(scene);
primaryStage.show();
timer = new TimerMethod();
timer.start();
} // end of public game
// Anfang Methoden
public static void main(String[] args){
launch(args);
// end of while
} // end of main
public void draw(GraphicsContext context) {
context.setFill(Color.BLUE);
context.fillRect(X,0,X+100,100);
context.clearRect(0,0,gameWidth,gameHeight);
}
public void main_MouseClicked(MouseEvent evt) {
X+=10;
} // end of main_MouseClicked
public void main_KeyPressed(KeyEvent evt) {
if(evt.getCode() == KeyCode.ENTER) {
timer.stop();
}
} // end of main_KeyPressed
// Ende Methoden
public class TimerMethod extends AnimationTimer {
@Override
public void handle(long now) {
mainLoop();
}
}
public void mainLoop() {
draw(main.getGraphicsContext2D());
}
} // end of class game

67
2/Lenj/game.jfm Normal file
View File

@@ -0,0 +1,67 @@
object FGUIForm: TFXGuiForm
Tag = 180
Left = 747
Top = 452
BorderIcons = [biSystemMenu]
Caption = 'game'
ClientHeight = 434
ClientWidth = 534
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Segoe UI'
Font.Style = []
FormStyle = fsStayOnTop
Position = poDesigned
Visible = True
OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged
OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged
OnClose = FormClose
OnCloseQuery = FormCloseQuery
OnCreate = FormCreate
OnMouseActivate = FormMouseActivate
OnResize = FormResize
FrameType = 8
Modified = False
Resizable = True
Undecorated = False
Background = clBtnFace
Title = 'game'
X = 0
Y = 0
FullScreen = False
AlwaysOnTop = False
Iconified = False
MaxHeight = 0
MaxWidth = 0
MinHeight = 0
MinWidth = 0
showing = ''
TextHeight = 15
object main: TFXCanvas
Tag = 114
Left = 0
Top = 0
Width = 536
Height = 432
Hint = 'canvas1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Canvas'
LayoutX = 0
LayoutY = 0
Disable = False
Cache = False
dragOver = ''
keyPressed = 'main_KeyPressed'
mouseClicked = 'main_MouseClicked'
end
object GNUgettextMarker: TGnuGettextComponentMarker
end
end

96
2/Lenj/game.~ava Normal file
View File

@@ -0,0 +1,96 @@
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
import javafx.scene.canvas.*;
import javafx.scene.control.*;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.paint.Color;
import java.lang.Thread;
import javafx.animation.AnimationTimer;
import javafx.scene.input.*;
import javafx.event.*;
import javafx.scene.input.KeyCodeCombination;
/**
*
* Beschreibung
*
* @version 1.0 vom 19.11.2024
* @author
*/
public class game extends Application {
// Anfang Attribute
public int gameWidth = 1000;
public int gameHeight = 720;
private AnimationTimer timer;
private int X = 0;
private Canvas main = new Canvas();
// Ende Attribute
public void start(Stage primaryStage) {
Pane root = new Pane();
Scene scene = new Scene(root, gameWidth, gameHeight);
// Anfang Komponenten
main.setLayoutX(0);
main.setLayoutY(0);
main.setWidth(gameWidth);
main.setHeight(gameHeight);
main.setOnKeyPressed(
(event) -> {main_KeyPressed(event);}
);
root.getChildren().add(main);
main.setOnMouseClicked(
(event) -> {main_MouseClicked(event);}
);
// Ende Komponenten
primaryStage.setOnCloseRequest(e -> System.exit(0));
primaryStage.setTitle("game");
primaryStage.setScene(scene);
primaryStage.show();
timer = new TimerMethod();
timer.start();
draw(main.getGraphicsContext2D());
} // end of public game
// Anfang Methoden
public static void main(String[] args){
launch(args);
// end of while
} // end of main
public void draw(GraphicsContext context) {
context.setFill(Color.BLUE);
context.fillRect(X,0,X+100,100);
context.clearRect(0,0,gameWidth,gameHeight);
}
public void main_MouseClicked(MouseEvent evt) {
X+=10;
} // end of main_MouseClicked
public void main_KeyPressed(KeyEvent evt) {
if(evt.getCode() == KeyCode.ENTER) {
timer.stop();
}
} // end of main_KeyPressed
// Ende Methoden
public class TimerMethod extends AnimationTimer {
@Override
public void handle(long now) {
mainLoop();
}
}
public void mainLoop() {
draw(main.getGraphicsContext2D());
}
} // end of class game

67
2/Lenj/game.~fm Normal file
View File

@@ -0,0 +1,67 @@
object FGUIForm: TFXGuiForm
Tag = 180
Left = 747
Top = 452
BorderIcons = [biSystemMenu]
Caption = 'game'
ClientHeight = 434
ClientWidth = 534
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Segoe UI'
Font.Style = []
FormStyle = fsStayOnTop
Position = poDesigned
Visible = True
OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged
OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged
OnClose = FormClose
OnCloseQuery = FormCloseQuery
OnCreate = FormCreate
OnMouseActivate = FormMouseActivate
OnResize = FormResize
FrameType = 8
Modified = False
Resizable = True
Undecorated = False
Background = clBtnFace
Title = 'game'
X = 0
Y = 0
FullScreen = False
AlwaysOnTop = False
Iconified = False
MaxHeight = 0
MaxWidth = 0
MinHeight = 0
MinWidth = 0
showing = ''
TextHeight = 15
object main: TFXCanvas
Tag = 114
Left = 0
Top = 0
Width = 536
Height = 432
Hint = 'canvas1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Canvas'
LayoutX = 0
LayoutY = 0
Disable = False
Cache = False
dragOver = ''
keyPressed = 'main_KeyPressed'
mouseClicked = 'main_MouseClicked'
end
object GNUgettextMarker: TGnuGettextComponentMarker
end
end

BIN
2/Lenj/test.class Normal file

Binary file not shown.

95
2/Lenj/test.java Normal file
View File

@@ -0,0 +1,95 @@
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
import javafx.scene.control.*;
import javafx.scene.text.*;
import javafx.scene.text.Font;
import je.NumberField;
import javafx.event.*;
import javafx.collections.*;
/**
*
* Beschreibung
*
* @version 1.0 vom 06.11.2024
* @author
*/
public class test extends Application {
// Anfang Attribute
public Label title = new Label();
private int windowWidth = 500;
private int windowHeight = 300;
private NumberField field1 = new NumberField();
private Button button1 = new Button();
private ListView<String> listView1 = new ListView<>();
private ObservableList<String> listView1ObservableList =
FXCollections.observableArrayList();
// Ende Attribute
public void start(Stage primaryStage) {
Pane root = new Pane();
Scene scene = new Scene(root, windowWidth, windowHeight);
// Anfang Komponenten
title.setLayoutX(8);
title.setLayoutY(8);
title.setPrefHeight(24);
title.setPrefWidth(264);
title.setText("Just Testing");
title.setFont(Font.font("Dialog", 15));
title.setContentDisplay(ContentDisplay.CENTER);
root.getChildren().add(title);
field1.setLayoutX(8);
field1.setLayoutY(40);
field1.setPrefHeight(24);
field1.setPrefWidth(136);
field1.setFont(Font.font("Dialog", 14));
field1.setPromptText("Number");
root.getChildren().add(field1);
button1.setLayoutX(88);
button1.setLayoutY(80);
button1.setPrefHeight(24);
button1.setPrefWidth(80);
button1.setText("Button");
button1.setOnAction(
(event) -> {button1_Action(event);}
);
button1.setFont(Font.font("Dialog", 11));
root.getChildren().add(button1);
listView1.setLayoutX(0);
listView1.setLayoutY(104);
listView1.setPrefHeight(112);
listView1.setPrefWidth(120);
listView1.setItems(listView1ObservableList);
listView1ObservableList.add("Amerika");
listView1ObservableList.add("Europa");
listView1ObservableList.add("Asien");
root.getChildren().add(listView1);
// Ende Komponenten
primaryStage.setOnCloseRequest(e -> System.exit(0));
primaryStage.setTitle("test");
primaryStage.setScene(scene);
primaryStage.show();
} // end of public test
// Anfang Methoden
public static void main(String[] args) {
launch(args);
} // end of main
public void button1_Action(Event evt) {
title.setText("wadaw");
System.out.println(field1.getInt() * 123);
listView1ObservableList.add("Asien");
} // end of button1_Action
// Ende Methoden
} // end of class test

179
2/Lenj/test.jfm Normal file
View File

@@ -0,0 +1,179 @@
object FGUIForm_3: TFXGuiForm
Tag = 180
Left = 727
Top = 322
BorderIcons = [biSystemMenu]
Caption = 'test'
ClientHeight = 217
ClientWidth = 281
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Segoe UI'
Font.Style = []
FormStyle = fsStayOnTop
Position = poDesigned
Visible = True
OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged
OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged
OnClose = FormClose
OnCloseQuery = FormCloseQuery
OnCreate = FormCreate
OnMouseActivate = FormMouseActivate
OnResize = FormResize
FrameType = 8
Modified = False
Resizable = True
Undecorated = False
Background = clBtnFace
Title = 'test'
X = 0
Y = 0
FullScreen = False
AlwaysOnTop = False
Iconified = False
MaxHeight = 0
MaxWidth = 0
MinHeight = 0
MinWidth = 0
showing = ''
TextHeight = 15
object title: TFXLabel
Tag = 101
Left = 8
Top = 8
Width = 264
Height = 24
Hint = 'label1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Label'
LayoutX = 8
LayoutY = 8
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 264
SnapToPixel = False
Alignment = CENTER_LEFT
ContentDisplay = _CD_CENTER
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'Label'
TextAlignment = _TA_LEFT
WrapText = False
LabelFor = 'Just Testing'
end
object field1: TFXNumberField
Tag = 103
Left = 8
Top = 40
Width = 136
Height = 24
Cursor = crIBeam
Hint = 'numberField1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clWhite
JavaType = 'NumberField'
LayoutX = 8
LayoutY = 40
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 136
SnapToPixel = False
Text = ''
Editable = True
PromptText = 'Number'
Alignment = CENTER_LEFT
PrefColumnCount = 12
action = ''
end
object button1: TFXButton
Tag = 105
Left = 88
Top = 80
Width = 80
Height = 24
Hint = 'button1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Button'
LayoutX = 88
LayoutY = 80
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Alignment = CENTER
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'Button'
TextAlignment = _TA_LEFT
WrapText = False
action = 'button1_Action'
CancelButton = False
DefaultButton = False
end
object listView1: TFXListView
Tag = 109
Left = 0
Top = 104
Width = 120
Height = 112
Hint = 'listView1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = 13158600
JavaType = 'ListView'
LayoutX = 0
LayoutY = 104
Disable = False
Cache = False
dragOver = ''
PrefHeight = 112
PrefWidth = 120
SnapToPixel = False
Editable = False
FixedCellSize = -1
Items.Strings = (
'Amerika'
'Europa'
'Asien')
Orientation = VERTICAL
SelectionMode = SINGLE
end
object GNUgettextMarker: TGnuGettextComponentMarker
end
end

95
2/Lenj/test.~ava Normal file
View File

@@ -0,0 +1,95 @@
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
import javafx.scene.control.*;
import javafx.scene.text.*;
import javafx.scene.text.Font;
import je.NumberField;
import javafx.event.*;
import javafx.collections.*;
/**
*
* Beschreibung
*
* @version 1.0 vom 06.11.2024
* @author
*/
public class test extends Application {
// Anfang Attribute
public Label title = new Label();
private int windowWidth = 500;
private int windowHeight = 300;
private NumberField field1 = new NumberField();
private Button button1 = new Button();
private ListView<String> listView1 = new ListView<>();
private ObservableList<String> listView1ObservableList =
FXCollections.observableArrayList();
// Ende Attribute
public void start(Stage primaryStage) {
Pane root = new Pane();
Scene scene = new Scene(root, windowWidth, windowHeight);
// Anfang Komponenten
title.setLayoutX(8);
title.setLayoutY(8);
title.setPrefHeight(24);
title.setPrefWidth(264);
title.setText("Just Testing");
title.setFont(Font.font("Dialog", 15));
title.setContentDisplay(ContentDisplay.CENTER);
root.getChildren().add(title);
field1.setLayoutX(8);
field1.setLayoutY(40);
field1.setPrefHeight(24);
field1.setPrefWidth(136);
field1.setFont(Font.font("Dialog", 14));
field1.setPromptText("Number");
root.getChildren().add(field1);
button1.setLayoutX(88);
button1.setLayoutY(80);
button1.setPrefHeight(24);
button1.setPrefWidth(80);
button1.setText("Button");
button1.setOnAction(
(event) -> {button1_Action(event);}
);
button1.setFont(Font.font("Dialog", 11));
root.getChildren().add(button1);
listView1.setLayoutX(0);
listView1.setLayoutY(104);
listView1.setPrefHeight(112);
listView1.setPrefWidth(120);
listView1.setItems(listView1ObservableList);
listView1ObservableList.add("Amerika");
listView1ObservableList.add("Europa");
listView1ObservableList.add("Asien");
root.getChildren().add(listView1);
// Ende Komponenten
primaryStage.setOnCloseRequest(e -> System.exit(0));
primaryStage.setTitle("test");
primaryStage.setScene(scene);
primaryStage.show();
} // end of public test
// Anfang Methoden
public static void main(String[] args) {
launch(args);
} // end of main
public void button1_Action(Event evt) {
title.setText("wadaw");
System.out.println(field1.getInt() * 123);
listView1ObservableList.add("adfe");
} // end of button1_Action
// Ende Methoden
} // end of class test

176
2/Lenj/test.~fm Normal file
View File

@@ -0,0 +1,176 @@
object FGUIForm: TFXGuiForm
Tag = 180
Left = 727
Top = 322
BorderIcons = [biSystemMenu]
Caption = 'test'
ClientHeight = 217
ClientWidth = 281
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Segoe UI'
Font.Style = []
FormStyle = fsStayOnTop
Position = poDesigned
Visible = True
OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged
OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged
OnClose = FormClose
OnCloseQuery = FormCloseQuery
OnMouseActivate = FormMouseActivate
OnResize = FormResize
FrameType = 8
Modified = False
Resizable = True
Undecorated = False
Background = clBtnFace
Title = 'test'
X = 0
Y = 0
FullScreen = False
AlwaysOnTop = False
Iconified = False
MaxHeight = 0
MaxWidth = 0
MinHeight = 0
MinWidth = 0
showing = ''
TextHeight = 15
object title: TFXLabel
Tag = 101
Left = 8
Top = 8
Width = 264
Height = 24
Hint = 'label1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Label'
LayoutX = 8
LayoutY = 8
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 264
SnapToPixel = False
Alignment = CENTER_LEFT
ContentDisplay = _CD_CENTER
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'Label'
TextAlignment = _TA_LEFT
WrapText = False
LabelFor = 'Just Testing'
end
object field1: TFXNumberField
Tag = 103
Left = 8
Top = 40
Width = 136
Height = 24
Cursor = crIBeam
Hint = 'numberField1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clWhite
JavaType = 'NumberField'
LayoutX = 8
LayoutY = 40
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 136
SnapToPixel = False
Text = ''
Editable = True
PromptText = 'Number'
Alignment = CENTER_LEFT
PrefColumnCount = 12
action = ''
end
object button1: TFXButton
Tag = 105
Left = 88
Top = 80
Width = 80
Height = 24
Hint = 'button1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = clBtnFace
JavaType = 'Button'
LayoutX = 88
LayoutY = 80
Disable = False
Cache = False
dragOver = ''
PrefHeight = 24
PrefWidth = 80
SnapToPixel = False
Alignment = CENTER
ContentDisplay = _CD_LEFT
EllipsisString = '...'
Underline = False
TextFill = 3355443
GraphicTextGap = 4
MnemonicParsing = False
Text = 'Button'
TextAlignment = _TA_LEFT
WrapText = False
action = 'button1_Action'
CancelButton = False
DefaultButton = False
end
object listView1: TFXListView
Tag = 109
Left = 0
Top = 104
Width = 120
Height = 112
Hint = 'listView1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Dialog'
Font.Style = []
Foreground = clBlack
Background = 13158600
JavaType = 'ListView'
LayoutX = 0
LayoutY = 104
Disable = False
Cache = False
dragOver = ''
PrefHeight = 112
PrefWidth = 120
SnapToPixel = False
Editable = False
FixedCellSize = -1
Items.Strings = (
'Amerika'
'Europa'
'Asien')
Orientation = VERTICAL
SelectionMode = SINGLE
end
end