backup
This commit is contained in:
2
fx/.gitingore
Normal file
2
fx/.gitingore
Normal file
@@ -0,0 +1,2 @@
|
||||
*.class
|
||||
*.~ava
|
||||
0
fx/error.txt
Normal file
0
fx/error.txt
Normal file
BIN
fx/sed.class
Normal file
BIN
fx/sed.class
Normal file
Binary file not shown.
90
fx/sed.java
Normal file
90
fx/sed.java
Normal file
@@ -0,0 +1,90 @@
|
||||
import javafx.application.Application;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.layout.Pane;
|
||||
import javafx.stage.Stage;
|
||||
import javafx.collections.*;
|
||||
import javafx.scene.control.*;
|
||||
import javafx.scene.control.cell.TextFieldListCell;
|
||||
import javafx.util.StringConverter;
|
||||
import javafx.util.converter.DefaultStringConverter;
|
||||
import javafx.scene.text.*;
|
||||
import javafx.scene.text.Font;
|
||||
import javafx.event.*;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
*
|
||||
* Beschreibung
|
||||
*
|
||||
* @version 1.0 vom 22.01.2025
|
||||
* @author
|
||||
*/
|
||||
|
||||
public class sed extends Application {
|
||||
// Anfang Attribute
|
||||
private ListView<String> listView1 = new ListView<>();
|
||||
private ObservableList<String> zahlen =
|
||||
FXCollections.observableArrayList();
|
||||
private Label label1 = new Label();
|
||||
private Button button1 = new Button();
|
||||
// Ende Attribute
|
||||
|
||||
public void start(Stage primaryStage) {
|
||||
Pane root = new Pane();
|
||||
Scene scene = new Scene(root, 447, 224);
|
||||
|
||||
StringConverter<String> converter = new DefaultStringConverter();
|
||||
// Anfang Komponenten
|
||||
|
||||
listView1.setLayoutX(16);
|
||||
listView1.setLayoutY(8);
|
||||
listView1.setPrefHeight(176);
|
||||
listView1.setPrefWidth(120);
|
||||
listView1.setItems(zahlen);
|
||||
listView1.setEditable(true);
|
||||
listView1.setCellFactory(param -> new TextFieldListCell<>(converter));
|
||||
|
||||
zahlen.add("1000");
|
||||
zahlen.add("182");
|
||||
zahlen.add("14");
|
||||
zahlen.add("341");
|
||||
zahlen.add("161");
|
||||
root.getChildren().add(listView1);
|
||||
label1.setLayoutX(160);
|
||||
label1.setLayoutY(16);
|
||||
label1.setPrefHeight(24);
|
||||
label1.setPrefWidth(80);
|
||||
label1.setText("Antwort");
|
||||
label1.setFont(Font.font("Dialog", 11));
|
||||
root.getChildren().add(label1);
|
||||
button1.setLayoutX(160);
|
||||
button1.setLayoutY(48);
|
||||
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);
|
||||
// Ende Komponenten
|
||||
|
||||
primaryStage.setOnCloseRequest(e -> System.exit(0));
|
||||
primaryStage.setTitle("sed");
|
||||
primaryStage.setScene(scene);
|
||||
primaryStage.show();
|
||||
} // end of public sed
|
||||
|
||||
// Anfang Methoden
|
||||
|
||||
public static void main(String[] args) {
|
||||
launch(args);
|
||||
} // end of main
|
||||
|
||||
public void button1_Action(Event evt) {
|
||||
zahlen.sorted()
|
||||
|
||||
} // end of button1_Action
|
||||
|
||||
// Ende Methoden
|
||||
} // end of class sed
|
||||
149
fx/sed.jfm
Normal file
149
fx/sed.jfm
Normal file
@@ -0,0 +1,149 @@
|
||||
object FGUIForm: TFXGuiForm
|
||||
Tag = 180
|
||||
Left = 985
|
||||
Top = 436
|
||||
BorderIcons = [biSystemMenu]
|
||||
Caption = 'sed'
|
||||
ClientHeight = 224
|
||||
ClientWidth = 451
|
||||
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
|
||||
OnCanResize = FormCanResize
|
||||
OnClose = FormClose
|
||||
OnCloseQuery = FormCloseQuery
|
||||
OnCreate = FormCreate
|
||||
OnMouseActivate = FormMouseActivate
|
||||
OnResize = FormResize
|
||||
FrameType = 8
|
||||
Modified = False
|
||||
Resizable = True
|
||||
Undecorated = False
|
||||
Background = clBtnFace
|
||||
Title = 'sed'
|
||||
FontSize = 11
|
||||
X = 0
|
||||
Y = 0
|
||||
FullScreen = False
|
||||
AlwaysOnTop = False
|
||||
Iconified = False
|
||||
MaxHeight = 0
|
||||
MaxWidth = 0
|
||||
MinHeight = 0
|
||||
MinWidth = 0
|
||||
showing = ''
|
||||
TextHeight = 15
|
||||
object listView1: TFXListView
|
||||
Tag = 109
|
||||
Left = 16
|
||||
Top = 8
|
||||
Width = 120
|
||||
Height = 176
|
||||
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 = 8
|
||||
Disable = False
|
||||
Cache = False
|
||||
dragOver = ''
|
||||
PrefHeight = 176
|
||||
PrefWidth = 120
|
||||
SnapToPixel = False
|
||||
Editable = False
|
||||
FixedCellSize = -1
|
||||
Items.Strings = (
|
||||
'Amerika'
|
||||
'Europa'
|
||||
'Asien')
|
||||
Orientation = VERTICAL
|
||||
SelectionMode = SINGLE
|
||||
end
|
||||
object label1: TFXLabel
|
||||
Tag = 101
|
||||
Left = 160
|
||||
Top = 16
|
||||
Width = 80
|
||||
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 = 160
|
||||
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 = 'Label'
|
||||
TextAlignment = _TA_LEFT
|
||||
WrapText = False
|
||||
end
|
||||
object button1: TFXButton
|
||||
Tag = 105
|
||||
Left = 160
|
||||
Top = 48
|
||||
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 = 160
|
||||
LayoutY = 48
|
||||
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 GNUgettextMarker: TGnuGettextComponentMarker
|
||||
end
|
||||
end
|
||||
89
fx/sed.~ava
Normal file
89
fx/sed.~ava
Normal file
@@ -0,0 +1,89 @@
|
||||
import javafx.application.Application;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.layout.Pane;
|
||||
import javafx.stage.Stage;
|
||||
import javafx.collections.*;
|
||||
import javafx.scene.control.*;
|
||||
import javafx.scene.control.cell.TextFieldListCell;
|
||||
import javafx.util.StringConverter;
|
||||
import javafx.util.converter.DefaultStringConverter;
|
||||
import javafx.scene.text.*;
|
||||
import javafx.scene.text.Font;
|
||||
import javafx.event.*;
|
||||
|
||||
/**
|
||||
*
|
||||
* Beschreibung
|
||||
*
|
||||
* @version 1.0 vom 22.01.2025
|
||||
* @author
|
||||
*/
|
||||
|
||||
public class sed extends Application {
|
||||
// Anfang Attribute
|
||||
private ListView<String> listView1 = new ListView<>();
|
||||
private ObservableList<String> zahlen =
|
||||
FXCollections.observableArrayList();
|
||||
private Label label1 = new Label();
|
||||
private Button button1 = new Button();
|
||||
// Ende Attribute
|
||||
|
||||
public void start(Stage primaryStage) {
|
||||
Pane root = new Pane();
|
||||
Scene scene = new Scene(root, 447, 224);
|
||||
|
||||
StringConverter<String> converter = new DefaultStringConverter();
|
||||
// Anfang Komponenten
|
||||
|
||||
listView1.setLayoutX(16);
|
||||
listView1.setLayoutY(8);
|
||||
listView1.setPrefHeight(176);
|
||||
listView1.setPrefWidth(120);
|
||||
listView1.setItems(zahlen);
|
||||
listView1.setEditable(true);
|
||||
listView1.setCellFactory(param -> new TextFieldListCell<>(converter));
|
||||
|
||||
zahlen.add("1000");
|
||||
zahlen.add("182");
|
||||
zahlen.add("14");
|
||||
zahlen.add("341");
|
||||
zahlen.add("161");
|
||||
root.getChildren().add(listView1);
|
||||
label1.setLayoutX(160);
|
||||
label1.setLayoutY(16);
|
||||
label1.setPrefHeight(24);
|
||||
label1.setPrefWidth(80);
|
||||
label1.setText("Antwort");
|
||||
label1.setFont(Font.font("Dialog", 11));
|
||||
root.getChildren().add(label1);
|
||||
button1.setLayoutX(160);
|
||||
button1.setLayoutY(48);
|
||||
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);
|
||||
// Ende Komponenten
|
||||
|
||||
primaryStage.setOnCloseRequest(e -> System.exit(0));
|
||||
primaryStage.setTitle("sed");
|
||||
primaryStage.setScene(scene);
|
||||
primaryStage.show();
|
||||
} // end of public sed
|
||||
|
||||
// Anfang Methoden
|
||||
|
||||
public static void main(String[] args) {
|
||||
launch(args);
|
||||
} // end of main
|
||||
|
||||
public void button1_Action(Event evt) {
|
||||
// TODO hier Quelltext einfügen
|
||||
|
||||
} // end of button1_Action
|
||||
|
||||
// Ende Methoden
|
||||
} // end of class sed
|
||||
149
fx/sed.~fm
Normal file
149
fx/sed.~fm
Normal file
@@ -0,0 +1,149 @@
|
||||
object FGUIForm: TFXGuiForm
|
||||
Tag = 180
|
||||
Left = 985
|
||||
Top = 436
|
||||
BorderIcons = [biSystemMenu]
|
||||
Caption = 'sed'
|
||||
ClientHeight = 224
|
||||
ClientWidth = 451
|
||||
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
|
||||
OnCanResize = FormCanResize
|
||||
OnClose = FormClose
|
||||
OnCloseQuery = FormCloseQuery
|
||||
OnCreate = FormCreate
|
||||
OnMouseActivate = FormMouseActivate
|
||||
OnResize = FormResize
|
||||
FrameType = 8
|
||||
Modified = False
|
||||
Resizable = True
|
||||
Undecorated = False
|
||||
Background = clBtnFace
|
||||
Title = 'sed'
|
||||
FontSize = 11
|
||||
X = 0
|
||||
Y = 0
|
||||
FullScreen = False
|
||||
AlwaysOnTop = False
|
||||
Iconified = False
|
||||
MaxHeight = 0
|
||||
MaxWidth = 0
|
||||
MinHeight = 0
|
||||
MinWidth = 0
|
||||
showing = ''
|
||||
TextHeight = 15
|
||||
object listView1: TFXListView
|
||||
Tag = 109
|
||||
Left = 16
|
||||
Top = 8
|
||||
Width = 120
|
||||
Height = 176
|
||||
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 = 8
|
||||
Disable = False
|
||||
Cache = False
|
||||
dragOver = ''
|
||||
PrefHeight = 176
|
||||
PrefWidth = 120
|
||||
SnapToPixel = False
|
||||
Editable = False
|
||||
FixedCellSize = -1
|
||||
Items.Strings = (
|
||||
'Amerika'
|
||||
'Europa'
|
||||
'Asien')
|
||||
Orientation = VERTICAL
|
||||
SelectionMode = SINGLE
|
||||
end
|
||||
object label1: TFXLabel
|
||||
Tag = 101
|
||||
Left = 160
|
||||
Top = 16
|
||||
Width = 80
|
||||
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 = 160
|
||||
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 = 'Label'
|
||||
TextAlignment = _TA_LEFT
|
||||
WrapText = False
|
||||
end
|
||||
object button1: TFXButton
|
||||
Tag = 105
|
||||
Left = 160
|
||||
Top = 48
|
||||
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 = 160
|
||||
LayoutY = 48
|
||||
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 GNUgettextMarker: TGnuGettextComponentMarker
|
||||
end
|
||||
end
|
||||
BIN
fx/wiederTesten.class
Normal file
BIN
fx/wiederTesten.class
Normal file
Binary file not shown.
171
fx/wiederTesten.java
Normal file
171
fx/wiederTesten.java
Normal file
@@ -0,0 +1,171 @@
|
||||
import javafx.application.Application;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.layout.Pane;
|
||||
import javafx.stage.Stage;
|
||||
import javafx.scene.web.*;
|
||||
import javafx.scene.control.*;
|
||||
import javafx.event.*;
|
||||
import javafx.scene.text.*;
|
||||
import javafx.scene.text.Font;
|
||||
import javafx.scene.input.*;
|
||||
import javafx.event.Event;
|
||||
|
||||
|
||||
import javafx.scene.paint.Color;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Beschreibung
|
||||
*
|
||||
* @version 1.0 vom 17.12.2024
|
||||
* @author
|
||||
*/
|
||||
|
||||
public class wiederTesten extends Application {
|
||||
// Anfang Attribute
|
||||
private Pane pane1 = new Pane();
|
||||
private Button button1 = new Button();
|
||||
private Button button2 = new Button();
|
||||
private MenuBar menuBar1 = new MenuBar();
|
||||
private Menu menuBar1_File = new Menu("File");
|
||||
private Menu menuBar1_File_New = new Menu("New");
|
||||
private MenuItem menuBar1_File_New_Java = new MenuItem("Java");
|
||||
private MenuItem menuBar1_File_New_XML = new MenuItem("XML");
|
||||
private MenuItem menuBar1_File_Load = new MenuItem("Load");
|
||||
private MenuItem menuBar1_File_Save = new MenuItem("Save");
|
||||
private Menu menuBar1_Edit = new Menu("Edit");
|
||||
private MenuItem menuBar1_Edit_Copy = new MenuItem("Copy");
|
||||
private MenuItem menuBar1_Edit_Paste = new MenuItem("Paste");
|
||||
private SeparatorMenuItem menuBar1_Separator1 = new SeparatorMenuItem();
|
||||
private MenuItem menuBar1_Edit_Delete = new MenuItem("Delete");
|
||||
// Ende Attribute
|
||||
|
||||
public void start(Stage primaryStage) {
|
||||
Pane root = new Pane();
|
||||
Scene scene = new Scene(root, 540, 371);
|
||||
scene.setFill(Color.CYAN);
|
||||
// Anfang Komponenten
|
||||
|
||||
pane1.setLayoutX(192);
|
||||
pane1.setLayoutY(152);
|
||||
pane1.setPrefHeight(144);
|
||||
pane1.setPrefWidth(160);
|
||||
root.getChildren().add(pane1);
|
||||
button1.setLayoutX(24);
|
||||
button1.setLayoutY(24);
|
||||
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);
|
||||
root.getChildren().add(menuBar1);
|
||||
menuBar1.getMenus().add(menuBar1_File);
|
||||
menuBar1_File.getItems().add(menuBar1_File_New);
|
||||
menuBar1_File_New.getItems().add(menuBar1_File_New_Java);
|
||||
menuBar1_File_New.getItems().add(menuBar1_File_New_XML);
|
||||
menuBar1_File.getItems().add(menuBar1_File_Load);
|
||||
menuBar1_File.getItems().add(menuBar1_File_Save);
|
||||
menuBar1_File_Save.setAccelerator(KeyCombination.keyCombination("Ctrl+Shift+S"));
|
||||
menuBar1.getMenus().add(menuBar1_Edit);
|
||||
menuBar1_Edit.getItems().add(menuBar1_Edit_Copy);
|
||||
menuBar1_Edit_Copy.setAccelerator(KeyCombination.keyCombination("Ctrl+C"));
|
||||
menuBar1_Edit.getItems().add(menuBar1_Edit_Paste);
|
||||
menuBar1_Edit_Paste.setAccelerator(KeyCombination.keyCombination("Ctrl+V"));
|
||||
menuBar1_Edit.getItems().add(menuBar1_Separator1);
|
||||
menuBar1_Edit.getItems().add(menuBar1_Edit_Delete);
|
||||
menuBar1_File_New_Java.setOnAction(
|
||||
(event) -> {menuBar1_File_New_Java_Action(event);}
|
||||
);
|
||||
menuBar1_File_New_XML.setOnAction(
|
||||
(event) -> {menuBar1_File_New_XML_Action(event);}
|
||||
);
|
||||
menuBar1_File_Load.setOnAction(
|
||||
(event) -> {menuBar1_File_Load_Action(event);}
|
||||
);
|
||||
menuBar1_File_Save.setOnAction(
|
||||
(event) -> {menuBar1_File_Save_Action(event);}
|
||||
);
|
||||
menuBar1_Edit_Copy.setOnAction(
|
||||
(event) -> {menuBar1_Edit_Copy_Action(event);}
|
||||
);
|
||||
menuBar1_Edit_Paste.setOnAction(
|
||||
(event) -> {menuBar1_Edit_Paste_Action(event);}
|
||||
);
|
||||
menuBar1_Edit_Delete.setOnAction(
|
||||
(event) -> {menuBar1_Edit_Delete_Action(event);}
|
||||
);
|
||||
menuBar1.setPrefWidth(4000);
|
||||
// Ende Komponenten
|
||||
|
||||
button2.setLayoutX(0);
|
||||
button2.setLayoutY(0);
|
||||
|
||||
button2.setPrefWidth(100);
|
||||
button2.setPrefHeight(50);
|
||||
button2.setText("Open");
|
||||
button2.setOnAction( (event) -> {open(event);});
|
||||
pane1.getChildren().add(button2);
|
||||
|
||||
|
||||
primaryStage.setOnCloseRequest(e -> System.exit(0));
|
||||
primaryStage.setTitle("wiederTesten");
|
||||
primaryStage.setScene(scene);
|
||||
primaryStage.show();
|
||||
|
||||
} // end of public wiederTesten
|
||||
|
||||
// Anfang Methoden
|
||||
|
||||
public static void main(String[] args) {
|
||||
launch(args);
|
||||
} // end of main
|
||||
public void open(Event evt) {
|
||||
button2.setText("Close");
|
||||
|
||||
}
|
||||
public void button1_Action(Event evt) {
|
||||
// TODO hier Quelltext einfügen
|
||||
|
||||
} // end of button1_Action
|
||||
|
||||
|
||||
public void menuBar1_File_New_Java_Action(Event evt) {
|
||||
|
||||
|
||||
} // end of menuBar1_File_New_Java_Action
|
||||
|
||||
public void menuBar1_File_New_XML_Action(Event evt) {
|
||||
// TODO hier Quelltext einfügen
|
||||
|
||||
} // end of menuBar1_File_New_XML_Action
|
||||
|
||||
public void menuBar1_File_Load_Action(Event evt) {
|
||||
// TODO hier Quelltext einfügen
|
||||
|
||||
} // end of menuBar1_File_Load_Action
|
||||
|
||||
public void menuBar1_File_Save_Action(Event evt) {
|
||||
// TODO hier Quelltext einfügen
|
||||
|
||||
} // end of menuBar1_File_Save_Action
|
||||
|
||||
public void menuBar1_Edit_Copy_Action(Event evt) {
|
||||
// TODO hier Quelltext einfügen
|
||||
|
||||
} // end of menuBar1_Edit_Copy_Action
|
||||
|
||||
public void menuBar1_Edit_Paste_Action(Event evt) {
|
||||
// TODO hier Quelltext einfügen
|
||||
|
||||
} // end of menuBar1_Edit_Paste_Action
|
||||
|
||||
public void menuBar1_Edit_Delete_Action(Event evt) {
|
||||
// TODO hier Quelltext einfügen
|
||||
|
||||
} // end of menuBar1_Edit_Delete_Action
|
||||
// Ende Methoden
|
||||
} // end of class wiederTesten
|
||||
143
fx/wiederTesten.jfm
Normal file
143
fx/wiederTesten.jfm
Normal file
@@ -0,0 +1,143 @@
|
||||
object FGUIForm: TFXGuiForm
|
||||
Tag = 180
|
||||
Left = 794
|
||||
Top = 459
|
||||
BorderIcons = [biSystemMenu]
|
||||
Caption = 'wiederTesten'
|
||||
ClientHeight = 371
|
||||
ClientWidth = 544
|
||||
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
|
||||
OnCanResize = FormCanResize
|
||||
OnClose = FormClose
|
||||
OnCloseQuery = FormCloseQuery
|
||||
OnCreate = FormCreate
|
||||
OnMouseActivate = FormMouseActivate
|
||||
OnResize = FormResize
|
||||
FrameType = 8
|
||||
Modified = False
|
||||
Resizable = True
|
||||
Undecorated = False
|
||||
Background = clBtnFace
|
||||
Title = 'wiederTesten'
|
||||
FontSize = 11
|
||||
X = 0
|
||||
Y = 0
|
||||
FullScreen = False
|
||||
AlwaysOnTop = False
|
||||
Iconified = False
|
||||
MaxHeight = 0
|
||||
MaxWidth = 0
|
||||
MinHeight = 0
|
||||
MinWidth = 0
|
||||
showing = ''
|
||||
TextHeight = 15
|
||||
object pane1: TFXPane
|
||||
Tag = 121
|
||||
Left = 192
|
||||
Top = 152
|
||||
Width = 160
|
||||
Height = 144
|
||||
Hint = 'pane1'
|
||||
Font.Charset = DEFAULT_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = 'Dialog'
|
||||
Font.Style = []
|
||||
Foreground = clBlack
|
||||
Background = clBtnFace
|
||||
JavaType = 'Pane'
|
||||
LayoutX = 192
|
||||
LayoutY = 152
|
||||
Disable = False
|
||||
Cache = False
|
||||
dragOver = ''
|
||||
PrefHeight = 144
|
||||
PrefWidth = 160
|
||||
SnapToPixel = False
|
||||
end
|
||||
object button1: TFXButton
|
||||
Tag = 105
|
||||
Left = 24
|
||||
Top = 24
|
||||
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 = 24
|
||||
LayoutY = 24
|
||||
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 menuBar1: TFXMenuBarWithMenus
|
||||
Tag = 124
|
||||
Left = 0
|
||||
Top = 0
|
||||
Width = 540
|
||||
Height = 23
|
||||
Hint = 'menuBar1'
|
||||
Font.Charset = DEFAULT_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = 'Dialog'
|
||||
Font.Style = []
|
||||
Foreground = clBlack
|
||||
Background = 16053492
|
||||
JavaType = 'MenuBar'
|
||||
LayoutX = 0
|
||||
LayoutY = 0
|
||||
Disable = False
|
||||
Cache = False
|
||||
dragOver = ''
|
||||
PrefHeight = 23
|
||||
PrefWidth = 540
|
||||
SnapToPixel = False
|
||||
MenuItems.Strings = (
|
||||
'File'
|
||||
' New'
|
||||
' Java'
|
||||
' XML'
|
||||
' Load'
|
||||
' Save, Ctrl+Shift+S'
|
||||
'Edit'
|
||||
' Copy, Ctrl+C'
|
||||
' Paste, Ctrl+V'
|
||||
' -'
|
||||
' Delete')
|
||||
end
|
||||
object GNUgettextMarker: TGnuGettextComponentMarker
|
||||
end
|
||||
end
|
||||
171
fx/wiederTesten.~ava
Normal file
171
fx/wiederTesten.~ava
Normal file
@@ -0,0 +1,171 @@
|
||||
import javafx.application.Application;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.layout.Pane;
|
||||
import javafx.stage.Stage;
|
||||
import javafx.scene.web.*;
|
||||
import javafx.scene.control.*;
|
||||
import javafx.event.*;
|
||||
import javafx.scene.text.*;
|
||||
import javafx.scene.text.Font;
|
||||
import javafx.scene.input.*;
|
||||
import javafx.event.Event;
|
||||
import java.awt.Color;
|
||||
|
||||
import javafx.scene.paint.Color;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Beschreibung
|
||||
*
|
||||
* @version 1.0 vom 17.12.2024
|
||||
* @author
|
||||
*/
|
||||
|
||||
public class wiederTesten extends Application {
|
||||
// Anfang Attribute
|
||||
private Pane pane1 = new Pane();
|
||||
private Button button1 = new Button();
|
||||
private Button button2 = new Button();
|
||||
private MenuBar menuBar1 = new MenuBar();
|
||||
private Menu menuBar1_File = new Menu("File");
|
||||
private Menu menuBar1_File_New = new Menu("New");
|
||||
private MenuItem menuBar1_File_New_Java = new MenuItem("Java");
|
||||
private MenuItem menuBar1_File_New_XML = new MenuItem("XML");
|
||||
private MenuItem menuBar1_File_Load = new MenuItem("Load");
|
||||
private MenuItem menuBar1_File_Save = new MenuItem("Save");
|
||||
private Menu menuBar1_Edit = new Menu("Edit");
|
||||
private MenuItem menuBar1_Edit_Copy = new MenuItem("Copy");
|
||||
private MenuItem menuBar1_Edit_Paste = new MenuItem("Paste");
|
||||
private SeparatorMenuItem menuBar1_Separator1 = new SeparatorMenuItem();
|
||||
private MenuItem menuBar1_Edit_Delete = new MenuItem("Delete");
|
||||
// Ende Attribute
|
||||
|
||||
public void start(Stage primaryStage) {
|
||||
Pane root = new Pane();
|
||||
Scene scene = new Scene(root, 540, 371);
|
||||
scene.setFill(Color.CYAN);
|
||||
// Anfang Komponenten
|
||||
|
||||
pane1.setLayoutX(192);
|
||||
pane1.setLayoutY(152);
|
||||
pane1.setPrefHeight(144);
|
||||
pane1.setPrefWidth(160);
|
||||
root.getChildren().add(pane1);
|
||||
button1.setLayoutX(24);
|
||||
button1.setLayoutY(24);
|
||||
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);
|
||||
root.getChildren().add(menuBar1);
|
||||
menuBar1.getMenus().add(menuBar1_File);
|
||||
menuBar1_File.getItems().add(menuBar1_File_New);
|
||||
menuBar1_File_New.getItems().add(menuBar1_File_New_Java);
|
||||
menuBar1_File_New.getItems().add(menuBar1_File_New_XML);
|
||||
menuBar1_File.getItems().add(menuBar1_File_Load);
|
||||
menuBar1_File.getItems().add(menuBar1_File_Save);
|
||||
menuBar1_File_Save.setAccelerator(KeyCombination.keyCombination("Ctrl+Shift+S"));
|
||||
menuBar1.getMenus().add(menuBar1_Edit);
|
||||
menuBar1_Edit.getItems().add(menuBar1_Edit_Copy);
|
||||
menuBar1_Edit_Copy.setAccelerator(KeyCombination.keyCombination("Ctrl+C"));
|
||||
menuBar1_Edit.getItems().add(menuBar1_Edit_Paste);
|
||||
menuBar1_Edit_Paste.setAccelerator(KeyCombination.keyCombination("Ctrl+V"));
|
||||
menuBar1_Edit.getItems().add(menuBar1_Separator1);
|
||||
menuBar1_Edit.getItems().add(menuBar1_Edit_Delete);
|
||||
menuBar1_File_New_Java.setOnAction(
|
||||
(event) -> {menuBar1_File_New_Java_Action(event);}
|
||||
);
|
||||
menuBar1_File_New_XML.setOnAction(
|
||||
(event) -> {menuBar1_File_New_XML_Action(event);}
|
||||
);
|
||||
menuBar1_File_Load.setOnAction(
|
||||
(event) -> {menuBar1_File_Load_Action(event);}
|
||||
);
|
||||
menuBar1_File_Save.setOnAction(
|
||||
(event) -> {menuBar1_File_Save_Action(event);}
|
||||
);
|
||||
menuBar1_Edit_Copy.setOnAction(
|
||||
(event) -> {menuBar1_Edit_Copy_Action(event);}
|
||||
);
|
||||
menuBar1_Edit_Paste.setOnAction(
|
||||
(event) -> {menuBar1_Edit_Paste_Action(event);}
|
||||
);
|
||||
menuBar1_Edit_Delete.setOnAction(
|
||||
(event) -> {menuBar1_Edit_Delete_Action(event);}
|
||||
);
|
||||
menuBar1.setPrefWidth(4000);
|
||||
// Ende Komponenten
|
||||
|
||||
button2.setLayoutX(0);
|
||||
button2.setLayoutY(0);
|
||||
|
||||
button2.setPrefWidth(100);
|
||||
button2.setPrefHeight(50);
|
||||
button2.setText("Open");
|
||||
button2.setOnAction( (event) -> {open(event);});
|
||||
pane1.getChildren().add(button2);
|
||||
|
||||
|
||||
primaryStage.setOnCloseRequest(e -> System.exit(0));
|
||||
primaryStage.setTitle("wiederTesten");
|
||||
primaryStage.setScene(scene);
|
||||
primaryStage.show();
|
||||
|
||||
} // end of public wiederTesten
|
||||
|
||||
// Anfang Methoden
|
||||
|
||||
public static void main(String[] args) {
|
||||
launch(args);
|
||||
} // end of main
|
||||
public void open(Event evt) {
|
||||
button2.setText("Close");
|
||||
|
||||
}
|
||||
public void button1_Action(Event evt) {
|
||||
// TODO hier Quelltext einfügen
|
||||
|
||||
} // end of button1_Action
|
||||
|
||||
|
||||
public void menuBar1_File_New_Java_Action(Event evt) {
|
||||
|
||||
|
||||
} // end of menuBar1_File_New_Java_Action
|
||||
|
||||
public void menuBar1_File_New_XML_Action(Event evt) {
|
||||
// TODO hier Quelltext einfügen
|
||||
|
||||
} // end of menuBar1_File_New_XML_Action
|
||||
|
||||
public void menuBar1_File_Load_Action(Event evt) {
|
||||
// TODO hier Quelltext einfügen
|
||||
|
||||
} // end of menuBar1_File_Load_Action
|
||||
|
||||
public void menuBar1_File_Save_Action(Event evt) {
|
||||
// TODO hier Quelltext einfügen
|
||||
|
||||
} // end of menuBar1_File_Save_Action
|
||||
|
||||
public void menuBar1_Edit_Copy_Action(Event evt) {
|
||||
// TODO hier Quelltext einfügen
|
||||
|
||||
} // end of menuBar1_Edit_Copy_Action
|
||||
|
||||
public void menuBar1_Edit_Paste_Action(Event evt) {
|
||||
// TODO hier Quelltext einfügen
|
||||
|
||||
} // end of menuBar1_Edit_Paste_Action
|
||||
|
||||
public void menuBar1_Edit_Delete_Action(Event evt) {
|
||||
// TODO hier Quelltext einfügen
|
||||
|
||||
} // end of menuBar1_Edit_Delete_Action
|
||||
// Ende Methoden
|
||||
} // end of class wiederTesten
|
||||
143
fx/wiederTesten.~fm
Normal file
143
fx/wiederTesten.~fm
Normal file
@@ -0,0 +1,143 @@
|
||||
object FGUIForm: TFXGuiForm
|
||||
Tag = 180
|
||||
Left = 794
|
||||
Top = 459
|
||||
BorderIcons = [biSystemMenu]
|
||||
Caption = 'wiederTesten'
|
||||
ClientHeight = 371
|
||||
ClientWidth = 544
|
||||
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
|
||||
OnCanResize = FormCanResize
|
||||
OnClose = FormClose
|
||||
OnCloseQuery = FormCloseQuery
|
||||
OnCreate = FormCreate
|
||||
OnMouseActivate = FormMouseActivate
|
||||
OnResize = FormResize
|
||||
FrameType = 8
|
||||
Modified = False
|
||||
Resizable = True
|
||||
Undecorated = False
|
||||
Background = clBtnFace
|
||||
Title = 'wiederTesten'
|
||||
FontSize = 11
|
||||
X = 0
|
||||
Y = 0
|
||||
FullScreen = False
|
||||
AlwaysOnTop = False
|
||||
Iconified = False
|
||||
MaxHeight = 0
|
||||
MaxWidth = 0
|
||||
MinHeight = 0
|
||||
MinWidth = 0
|
||||
showing = ''
|
||||
TextHeight = 15
|
||||
object pane1: TFXPane
|
||||
Tag = 121
|
||||
Left = 192
|
||||
Top = 152
|
||||
Width = 160
|
||||
Height = 144
|
||||
Hint = 'pane1'
|
||||
Font.Charset = DEFAULT_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = 'Dialog'
|
||||
Font.Style = []
|
||||
Foreground = clBlack
|
||||
Background = clBtnFace
|
||||
JavaType = 'Pane'
|
||||
LayoutX = 192
|
||||
LayoutY = 152
|
||||
Disable = False
|
||||
Cache = False
|
||||
dragOver = ''
|
||||
PrefHeight = 144
|
||||
PrefWidth = 160
|
||||
SnapToPixel = False
|
||||
end
|
||||
object button1: TFXButton
|
||||
Tag = 105
|
||||
Left = 24
|
||||
Top = 24
|
||||
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 = 24
|
||||
LayoutY = 24
|
||||
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 menuBar1: TFXMenuBarWithMenus
|
||||
Tag = 124
|
||||
Left = 0
|
||||
Top = 0
|
||||
Width = 540
|
||||
Height = 23
|
||||
Hint = 'menuBar1'
|
||||
Font.Charset = DEFAULT_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = 'Dialog'
|
||||
Font.Style = []
|
||||
Foreground = clBlack
|
||||
Background = 16053492
|
||||
JavaType = 'MenuBar'
|
||||
LayoutX = 0
|
||||
LayoutY = 0
|
||||
Disable = False
|
||||
Cache = False
|
||||
dragOver = ''
|
||||
PrefHeight = 23
|
||||
PrefWidth = 540
|
||||
SnapToPixel = False
|
||||
MenuItems.Strings = (
|
||||
'File'
|
||||
' New'
|
||||
' Java'
|
||||
' XML'
|
||||
' Load'
|
||||
' Save, Ctrl+Shift+S'
|
||||
'Edit'
|
||||
' Copy, Ctrl+C'
|
||||
' Paste, Ctrl+V'
|
||||
' -'
|
||||
' Delete')
|
||||
end
|
||||
object GNUgettextMarker: TGnuGettextComponentMarker
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user