- 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
|
Manifest-Version: 1.0
|
||||||
OpenIDE-Module: com.jme3.gde.angelfont
|
OpenIDE-Module: com.jme3.gde.angelfont
|
||||||
|
OpenIDE-Module-Implementation-Version: 0
|
||||||
OpenIDE-Module-Layer: com/jme3/gde/angelfont/layer.xml
|
OpenIDE-Module-Layer: com/jme3/gde/angelfont/layer.xml
|
||||||
OpenIDE-Module-Localizing-Bundle: com/jme3/gde/angelfont/Bundle.properties
|
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.source=1.5
|
||||||
javac.compilerargs=-Xlint -Xlint:-serial
|
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 {
|
public final class AngelFontVisualPanel1 extends JPanel {
|
||||||
|
|
||||||
|
String selectedFont = "";
|
||||||
|
|
||||||
/** Creates new form AngelFontVisualPanel1 */
|
/** Creates new form AngelFontVisualPanel1 */
|
||||||
public AngelFontVisualPanel1() {
|
public AngelFontVisualPanel1() {
|
||||||
initComponents();
|
initComponents();
|
||||||
@ -24,7 +26,7 @@ public final class AngelFontVisualPanel1 extends JPanel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getSelectedFont() {
|
public String getSelectedFont() {
|
||||||
return (String)jList1.getSelectedValue();
|
return selectedFont;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** This method is called from within the constructor to
|
/** This method is called from within the constructor to
|
||||||
@ -71,6 +73,7 @@ public final class AngelFontVisualPanel1 extends JPanel {
|
|||||||
|
|
||||||
private void updateFont(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_updateFont
|
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
|
}//GEN-LAST:event_updateFont
|
||||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||||
private javax.swing.JLabel jLabel1;
|
private javax.swing.JLabel jLabel1;
|
||||||
|
@ -79,9 +79,9 @@ public class AngelFontWizardPanel1 implements WizardDescriptor.Panel {
|
|||||||
// WizardDescriptor.getProperty & putProperty to store information entered
|
// WizardDescriptor.getProperty & putProperty to store information entered
|
||||||
// by the user.
|
// by the user.
|
||||||
public void readSettings(Object settings) {
|
public void readSettings(Object settings) {
|
||||||
((WizardDescriptor)settings).putProperty("font_name", component.getSelectedFont());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void storeSettings(Object settings) {
|
public void storeSettings(Object settings) {
|
||||||
|
((WizardDescriptor)settings).putProperty("font_name", component.getSelectedFont());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user