Skip to content

Commit

Permalink
Absolute resource path. Remove splash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Guo Yunhe committed Aug 31, 2016
1 parent 90bf785 commit 8521c55
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nbproject/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
application.desc=Font Config Master is a front-end for fontconfig. It makes life easier.
application.homepage=https://github.com/guoyunhe/fontweak
application.splash=/home/sign/\u4e0b\u8f7d/1003 Life Poster Balloon.jpg
application.splash=
application.title=Fontweak
application.vendor=Guo Yunhe
auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml
Expand Down
2 changes: 1 addition & 1 deletion src/me/guoyunhe/fontweak/FontConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public InputSource resolveEntity(String publicId, String systemId) {
legacyConfigFile.renameTo(file); // Migrate legacy
} else if (!file.exists() && !legacyConfigFile.exists()) {
// Create default if no config file found
InputStream in = getClass().getResourceAsStream("me/guoyunhe/fontweak/config/default.conf");
InputStream in = getClass().getResourceAsStream("/me/guoyunhe/fontweak/config/default.conf");
try {
Files.copy(in, file.toPath());
} catch (IOException ex) {
Expand Down
2 changes: 1 addition & 1 deletion src/me/guoyunhe/fontweak/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class MainWindow extends javax.swing.JFrame {
* Creates new form MainWindow
*/
public MainWindow() {
appIcon = new ImageIcon(getClass().getResource("img/icon-256.png"));
appIcon = new ImageIcon(getClass().getResource("/me/guoyunhe/fontweak/img/icon-256.png"));
sysfonts = new SystemFontList();
fontconfig = new FontConfig();
matchListModel = new DefaultListModel<>();
Expand Down

0 comments on commit 8521c55

Please sign in to comment.