- fix npe due to caret=null

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9959 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent 1c169fda64
commit 924c3b07f6
  1. 3
      sdk/jme3-welcome-screen/src/com/jme3/gde/welcome/WelcomeScreenTopComponent.form
  2. 1
      sdk/jme3-welcome-screen/src/com/jme3/gde/welcome/WelcomeScreenTopComponent.java

@ -96,9 +96,6 @@
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="cc" green="0" red="0" type="rgb"/>
</Property>
<Property name="caret" type="javax.swing.text.Caret" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
<Connection code="null" type="code"/>
</Property>
<Property name="caretColor" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/>
</Property>

@ -102,7 +102,6 @@ public final class WelcomeScreenTopComponent extends TopComponent implements Hyp
jTextPane1.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(WelcomeScreenTopComponent.class, "WelcomeScreenTopComponent.jTextPane1.border.title"))); // NOI18N
jTextPane1.setFont(new java.awt.Font("Lucida Grande", 2, 12)); // NOI18N
jTextPane1.setForeground(new java.awt.Color(0, 0, 204));
jTextPane1.setCaret(null);
jTextPane1.setCaretColor(new java.awt.Color(255, 255, 255));
jTextPane1.setDisabledTextColor(new java.awt.Color(0, 0, 204));
jTextPane1.setOpaque(false);

Loading…
Cancel
Save