Skip to content

Commit

Permalink
🚸 add run command, and fix path not found
Browse files Browse the repository at this point in the history
  • Loading branch information
kamontat committed Dec 27, 2017
1 parent ac53758 commit c42d89c
Show file tree
Hide file tree
Showing 5 changed files with 813 additions and 782 deletions.
24 changes: 24 additions & 0 deletions src/code/constant/FileLocation.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package code.constant;

import gui.main.MainPage;

import java.net.URL;

/**
* @author kamontat
* @version 1.0
* @since Wed 27/Dec/2017 - 13:08
*/
public class FileLocation {
private static ClassLoader mainClass = MainPage.class.getClassLoader();

public static String TEXT_FOLDER = "textfile";

public static String CUSTOMER_FILENAME = "Customer.txt";
public static String PRODUCT_FILENAME = "Product.txt";
public static String STORE_FILENAME = "StoreInfo.txt";

public static URL CUSTOMER_PATH = mainClass.getResource(TEXT_FOLDER + "/" + CUSTOMER_FILENAME);
public static URL PRODUCT_PATH = mainClass.getResource(TEXT_FOLDER + "/" + PRODUCT_FILENAME);
public static URL STORE_PATH = mainClass.getResource(TEXT_FOLDER + "/" + STORE_FILENAME);
}
Loading

0 comments on commit c42d89c

Please sign in to comment.