Class StaticMethods

java.lang.Object
ntnu.team1.application.helpers.StaticMethods

public class StaticMethods extends Object
Class for a lot of static methods used multiple times
  • 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 images
      button - button The button to add the images to
      width - width of the image
      height - height of the image
      Throws:
      FileNotFoundException - Throws if file is not found