util
Clone or download
Modified Files
--- 'a/pom.xml'
+++ b/pom.xml
@@ -43,11 +43,6 @@
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
- <CommonsBeanUtilsVersion>1.9.4</CommonsBeanUtilsVersion>
- <CommonsConfigurationVersion>2.7</CommonsConfigurationVersion>
-
- <SL4JVersion>1.7.30</SL4JVersion>
-
<IkonliVersion>11.5.0</IkonliVersion>
<IkonliFA5PackVersion>11.5.0</IkonliFA5PackVersion>
@@ -59,29 +54,6 @@
<dependencies>
<dependency>
- <groupId>commons-beanutils</groupId>
- <artifactId>commons-beanutils</artifactId>
- <version>${CommonsBeanUtilsVersion}</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.commons</groupId>
- <artifactId>commons-configuration2</artifactId>
- <version>${CommonsConfigurationVersion}</version>
- </dependency>
-
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <version>${SL4JVersion}</version>
- </dependency>
-
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- <version>${SL4JVersion}</version>
- </dependency>
- <dependency>
<groupId>org.kordamp.ikonli</groupId>
<artifactId>ikonli-fontawesome5-pack</artifactId>
<version>${IkonliFA5PackVersion}</version>
--- 'a/src/main/java/com/StreamPi/Util/FormHelper/HBoxInputBox.java'
+++ b/src/main/java/com/StreamPi/Util/FormHelper/HBoxInputBox.java
@@ -10,9 +10,9 @@ import javafx.scene.layout.Region;
public class HBoxInputBox extends HBox {
private TextField textField;
- public HBoxInputBox(String labelText, TextField textField, CheckBox enablerCheckBox)
+ public HBoxInputBox(String labelText, TextField textField, int prefWidth, CheckBox enablerCheckBox)
{
- textField.setPrefWidth(100);
+ textField.setPrefWidth(prefWidth);
Label label = new Label(labelText);
@@ -29,11 +29,22 @@ public class HBoxInputBox extends HBox {
this.textField = textField;
}
+ public HBoxInputBox(String labelText, TextField textField, CheckBox enablerCheckBox)
+ {
+ this(labelText, textField, 100, enablerCheckBox);
+ }
+
public HBoxInputBox(String labelText, TextField textField)
{
- this(labelText, textField, null);
+ this(labelText, textField, 100, null);
}
+ public HBoxInputBox(String labelText, TextField textField, int prefWidth)
+ {
+ this(labelText, textField, prefWidth, null);
+ }
+
+
public TextField getTextField()
{
return textField;
--- 'a/src/main/java/com/StreamPi/Util/FormHelper/HBoxInputBoxWithFileChooser.java'
+++ b/src/main/java/com/StreamPi/Util/FormHelper/HBoxInputBoxWithFileChooser.java
@@ -17,17 +17,13 @@ import java.io.File;
public class HBoxInputBoxWithFileChooser extends HBox {
public HBoxInputBoxWithFileChooser(String labelText, TextField textField, CheckBox enablerCheckBox, FileChooser.ExtensionFilter extensionFilter)
{
- HBoxInputBox hBoxInputBox = new HBoxInputBox(labelText, textField);
+ textField.setDisable(true);
+ HBoxInputBox hBoxInputBox = new HBoxInputBox(labelText, textField, 300);
setHgrow(hBoxInputBox, Priority.ALWAYS);
getChildren().addAll(hBoxInputBox);
setSpacing(5.0);
- TextField tf = hBoxInputBox.getTextField();
- tf.setPrefWidth(300);
- tf.setDisable(true);
-
-
Button button = new Button();
FontIcon fontIcon = new FontIcon("far-folder");
//fontIcon.setIconColor(Paint.valueOf(iconColorHex));
--- 'a/src/main/java/module-info.java'
+++ b/src/main/java/module-info.java
@@ -1,6 +1,4 @@
module com.StreamPi.Util {
- requires org.apache.commons.configuration2;
- requires org.slf4j;
requires org.kordamp.ikonli.javafx;
requires org.kordamp.ikonli.fontawesome5;