diff --git a/sdk/jme3-angelfont/manifest.mf b/sdk/jme3-angelfont/manifest.mf index d112694f5..b81984e5b 100644 --- a/sdk/jme3-angelfont/manifest.mf +++ b/sdk/jme3-angelfont/manifest.mf @@ -1,6 +1,6 @@ Manifest-Version: 1.0 OpenIDE-Module: com.jme3.gde.angelfont +OpenIDE-Module-Implementation-Version: 0 OpenIDE-Module-Layer: com/jme3/gde/angelfont/layer.xml OpenIDE-Module-Localizing-Bundle: com/jme3/gde/angelfont/Bundle.properties -OpenIDE-Module-Specification-Version: 1.0 diff --git a/sdk/jme3-angelfont/nbproject/project.properties b/sdk/jme3-angelfont/nbproject/project.properties index 152f44eca..5571d6b52 100644 --- a/sdk/jme3-angelfont/nbproject/project.properties +++ b/sdk/jme3-angelfont/nbproject/project.properties @@ -1,2 +1,3 @@ javac.source=1.5 javac.compilerargs=-Xlint -Xlint:-serial +spec.version.base=0.1.0 diff --git a/sdk/jme3-angelfont/src/com/jme3/gde/angelfont/AngelFontVisualPanel1.java b/sdk/jme3-angelfont/src/com/jme3/gde/angelfont/AngelFontVisualPanel1.java index edeead984..74a634143 100644 --- a/sdk/jme3-angelfont/src/com/jme3/gde/angelfont/AngelFontVisualPanel1.java +++ b/sdk/jme3-angelfont/src/com/jme3/gde/angelfont/AngelFontVisualPanel1.java @@ -10,6 +10,8 @@ import javax.swing.JPanel; public final class AngelFontVisualPanel1 extends JPanel { + String selectedFont = ""; + /** Creates new form AngelFontVisualPanel1 */ public AngelFontVisualPanel1() { initComponents(); @@ -23,8 +25,8 @@ public final class AngelFontVisualPanel1 extends JPanel { return "Select Font"; } - public String getSelectedFont(){ - return (String)jList1.getSelectedValue(); + public String getSelectedFont() { + return selectedFont; } /** This method is called from within the constructor to @@ -70,7 +72,8 @@ public final class AngelFontVisualPanel1 extends JPanel { }// //GEN-END:initComponents private void updateFont(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_updateFont - jLabel1.setIcon(new ImageIcon(FontCreator.buildFont((String)jList1.getSelectedValue()))); + jLabel1.setIcon(new ImageIcon(FontCreator.buildFont((String) jList1.getSelectedValue()))); + selectedFont = (String) jList1.getSelectedValue(); }//GEN-LAST:event_updateFont // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JLabel jLabel1; diff --git a/sdk/jme3-angelfont/src/com/jme3/gde/angelfont/AngelFontWizardPanel1.java b/sdk/jme3-angelfont/src/com/jme3/gde/angelfont/AngelFontWizardPanel1.java index f897f0915..48c0f7d9f 100644 --- a/sdk/jme3-angelfont/src/com/jme3/gde/angelfont/AngelFontWizardPanel1.java +++ b/sdk/jme3-angelfont/src/com/jme3/gde/angelfont/AngelFontWizardPanel1.java @@ -79,9 +79,9 @@ public class AngelFontWizardPanel1 implements WizardDescriptor.Panel { // WizardDescriptor.getProperty & putProperty to store information entered // by the user. public void readSettings(Object settings) { - ((WizardDescriptor)settings).putProperty("font_name", component.getSelectedFont()); } public void storeSettings(Object settings) { + ((WizardDescriptor)settings).putProperty("font_name", component.getSelectedFont()); } }