mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
added PropertyInjector
This commit is contained in:
+11
@@ -9,6 +9,7 @@ import javax.swing.UIManager;
|
||||
import org.apache.log4j.PropertyConfigurator;
|
||||
|
||||
import com.diyfever.diylc.gui.MainFrame;
|
||||
import com.diyfever.gui.miscutils.PropertyInjector;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -28,6 +29,16 @@ public class DIYLCStarter {
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
url = DIYLCStarter.class.getResource("config.properties");
|
||||
properties = new Properties();
|
||||
try {
|
||||
properties.load(url.openStream());
|
||||
PropertyInjector.injectProperties(properties);
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
try {
|
||||
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
|
||||
|
||||
Reference in New Issue
Block a user