package net.hexid.jfx;

import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Priority;

public class LabeledField extends HBox {
	private TextField field;

	public TextField getField() {
		return field;
	}

	public void setText(String text) {
		field.setText(text);
	}
	public String getText() {
		return field.getText();
	}

	public LabeledField(Class<? extends TextField> cls, String label) {
		super(3.0);
		HBox.setHgrow(this, Priority.ALWAYS);
		UtilsFX.setVBoxMargin(this);

		try {
			field = cls.newInstance();
		} catch(InstantiationException | IllegalAccessException ex) {
			field = new TextField();
		}
		HBox.setHgrow(field, Priority.ALWAYS);

		getChildren().addAll(new Label(label), field);
	}
}
@@ -227,16 +227,85 @@
 riority;
+%0Aimport javafx.scene.layout.VBox;%0Aimport net.hexid.hexbot.bot.BotTab;
 %0A%0Apublic
@@ -665,34 +665,42 @@
 ;%0A%09%09
-UtilsFX.setVBoxMargin(this
+VBox.setMargin(this, BotTab.INSETS
 );%0A%0A

Change from using UtilsFX to BotTab for static variables