Skip to content

Commit

Permalink
#4 JPEG I18N message file in maven
Browse files Browse the repository at this point in the history
  • Loading branch information
amosshi committed Sep 22, 2019
1 parent 1d23aa2 commit 0236e37
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,15 @@ private void enalbeFileDrop(){
// only the 1st file are handled
new FileDrop(this.filedropPanel, new FileDrop.Listener() {

@Override
public void filesDropped(java.io.File[] files) {
openFile(files[0]);
}
});
//new FileDrop(System.out, this.getJMenuBar(), new FileDrop.Listener() {
new FileDrop(this.getJMenuBar(), new FileDrop.Listener() {

@Override
public void filesDropped(java.io.File[] files) {
openFile(files[0]);
}
Expand All @@ -208,22 +210,14 @@ private void openFile(final File file) {

try {
this.contentPane = new JSplitPaneFile(file, this);
} catch (FileFormatException ex) {
} catch (Throwable ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
JOptionPane.showMessageDialog(
this,
ex.getMessage(),
this.getTitle(),
JOptionPane.ERROR_MESSAGE);
} catch (Throwable t){
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, t);
JOptionPane.showMessageDialog(
this,
t.getMessage(),
this.getTitle(),
JOptionPane.ERROR_MESSAGE);
}
//this.add(this.contentPane, BorderLayout.CENTER);
this.filedropPanel.add(this.contentPane, BorderLayout.CENTER);

// Resize after adding new content
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.freeinternals.format.classfile.attribute;

import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.freeinternals.format.classfile.attribute;

import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.freeinternals.format.classfile.attribute;

import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.freeinternals.format.classfile.constant;

import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/
package org.freeinternals.format.jpeg.tiff;

import java.util.Locale;
import java.util.ResourceBundle;

/**
Expand All @@ -17,7 +18,7 @@ public class IFDMessage{
private static final ResourceBundle res;

static{
res = ResourceBundle.getBundle(IFDMessage.class.getName().replace('.', '/'));
res = ResourceBundle.getBundle(IFDMessage.class.getName().replace('.', '/'), Locale.ROOT);
}

public static final String KEY_IFD = "IFD";
Expand Down

0 comments on commit 0236e37

Please sign in to comment.