- fix FontCreator version
- fix font name passing git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7111 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
8fd6581fde
commit
2617a973d5
@ -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
|
||||
|
||||
|
@ -1,2 +1,3 @@
|
||||
javac.source=1.5
|
||||
javac.compilerargs=-Xlint -Xlint:-serial
|
||||
spec.version.base=0.1.0
|
||||
|
@ -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 {
|
||||
}// </editor-fold>//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;
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user