Skip to content

Commit

Permalink
Fix bug #21
Browse files Browse the repository at this point in the history
  • Loading branch information
Guo Yunhe committed Sep 11, 2015
1 parent a62b1af commit 0705755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/me/guoyunhe/fontweak/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ private void newSchemeButtonActionPerformed(java.awt.event.ActionEvent evt) {//G
String scheme = (String) JOptionPane.showInputDialog(
this,
java.util.ResourceBundle.getBundle("me/guoyunhe/fontweak/i18n/translation").getString("NAME OF NEW SCHEME"),
java.util.ResourceBundle.getBundle("me/guoyunhe/fontweak/i18n/translation").getString("RENAME SCHEME"), // Title of dialog
java.util.ResourceBundle.getBundle("me/guoyunhe/fontweak/i18n/translation").getString("CREATE NEW SCHEME"), // Title of dialog
JOptionPane.PLAIN_MESSAGE);
// If users clicked "Cancel" button of dialog, it will return null.
if (scheme != null) {
Expand All @@ -751,7 +751,7 @@ private void renameSchemeButtonActionPerformed(java.awt.event.ActionEvent evt) {
String newName = (String) JOptionPane.showInputDialog(
this,
java.text.MessageFormat.format(java.util.ResourceBundle.getBundle("me/guoyunhe/fontweak/i18n/translation").getString("NEW NAME OF SCHEME {0}"), new Object[] {oldName}),
java.util.ResourceBundle.getBundle("me/guoyunhe/fontweak/i18n/translation").getString("CREATE NEW SCHEME"), // Title of dialog
java.util.ResourceBundle.getBundle("me/guoyunhe/fontweak/i18n/translation").getString("RENAME"), // Title of dialog
JOptionPane.PLAIN_MESSAGE,
null,
null,
Expand Down

0 comments on commit 0705755

Please sign in to comment.