Using resource files

There are lot of hard coded numeric values inside the code. Like thresholds.

  1. Use following code to access About.properties

    Map<String, String> resources = Util.loadResourceBundle(Application.getAdaptor().getResourceURL("About.properties"));
    System.out.println(resources);
  2. Inspect About.properties file in your resource directory: src/xal/app/rflearning/resources/ to understand its structure.

  3. Create a new property file settings.properties in your resource directory

  4. Put all hard coded values in the new file and create code to read and use them in the application