Package ntnu.team1.application.helpers
Class StaticMethods
java.lang.Object
ntnu.team1.application.helpers.StaticMethods
Class for a lot of static methods used multiple times
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addImageToButton(String path, javafx.scene.control.Button button, int width, int height)
/** Adds the images to buttons
-
Constructor Details
-
StaticMethods
public StaticMethods()
-
-
Method Details
-
addImageToButton
public static void addImageToButton(String path, javafx.scene.control.Button button, int width, int height) throws FileNotFoundException/** Adds the images to buttons- Parameters:
path
- path Path of the imagesbutton
- button The button to add the images towidth
- width of the imageheight
- height of the image- Throws:
FileNotFoundException
- Throws if file is not found
-