harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ilya ivanov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-4441) [classlib][awt] Can't create new swing component using new fontlib
Date Thu, 12 Jul 2007 13:10:04 GMT
[classlib][awt] Can't create new swing component using new fontlib
------------------------------------------------------------------

                 Key: HARMONY-4441
                 URL: https://issues.apache.org/jira/browse/HARMONY-4441
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: windows
            Reporter: ilya ivanov


test: 
import javax.swing.JComboBox;
public class TestJCB {
       public static void main(String argv[]){
        JComboBox jcb=new JComboBox();
       }
 
 }

start: java -Djava.awt.fontlib=true TestJCB

result: 
Uncaught exception in main:
java.lang.NullPointerException
	at org.apache.harmony.awt.gl.font.fontlib.FLFontPeer$FontPeerNativeHandler.incriment(FLFontPeer.java:76)
	at org.apache.harmony.awt.gl.font.fontlib.FLFontPeer.getHandler(FLFontPeer.java:44)
	at org.apache.harmony.awt.gl.font.fontlib.FLFontPeer.<init>(FLFontPeer.java:108)
	at org.apache.harmony.awt.gl.font.fontlib.FLFontManager.createPhysicalFontPeer(FLFontManager.java:111)
	at org.apache.harmony.awt.gl.font.fontlib.FLFontManager.createDefaultFont(FLFontManager.java:132)
	at org.apache.harmony.awt.gl.font.fontlib.FLFontManager.getDefaultFont(FLFontManager.java:482)
	at org.apache.harmony.awt.gl.font.FontManager.createLogicalFontPeer(FontManager.java:390)
	at org.apache.harmony.awt.gl.font.FontManager.createFontPeer(FontManager.java:326)
	at org.apache.harmony.awt.gl.font.fontlib.FLFontManager.getFontPeer(FLFontManager.java:451)
	at java.awt.Font.getPeer(Font.java:868)
	at org.apache.harmony.awt.gl.font.FontMetricsImpl.getFontPeer(FontMetricsImpl.java:245)
	at org.apache.harmony.awt.gl.font.FontMetricsImpl.<init>(FontMetricsImpl.java:72)
	at java.awt.ToolkitImpl.getFontMetrics(ToolkitImpl.java:155)
	at java.awt.Component.getFontMetrics(Component.java:1865)
	at javax.swing.JTextField.evaluate(JTextField.java:286)
	at javax.swing.JTextField.setFont(JTextField.java:478)
	at javax.swing.LookAndFeel.installColorsAndFont(LookAndFeel.java:90)
	at javax.swing.plaf.basic.BasicTextUI.installDefaults(BasicTextUI.java:551)
	at javax.swing.plaf.basic.BasicTextUI.installUI(BasicTextUI.java:701)
	at javax.swing.plaf.basic.BasicTextFieldUI.installUI(BasicTextFieldUI.java:82)
	at javax.swing.JComponent.setUI(JComponent.java:1285)
	at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:1585)
	at javax.swing.text.JTextComponent.<init>(JTextComponent.java:711)
	at javax.swing.JTextField.<init>(JTextField.java:203)
	at javax.swing.JTextField.<init>(JTextField.java:187)
	at javax.swing.plaf.basic.BasicComboBoxEditor.<init>(BasicComboBoxEditor.java:40)
	at javax.swing.plaf.metal.MetalComboBoxEditor.<init>(MetalComboBoxEditor.java:59)
	at javax.swing.plaf.metal.MetalComboBoxEditor$UIResource.<init>(MetalComboBoxEditor.java:36)
	at javax.swing.plaf.metal.MetalComboBoxUI.createEditor(MetalComboBoxUI.java:167)
	at javax.swing.plaf.basic.BasicComboBoxUI.installUI(BasicComboBoxUI.java:367)
	at javax.swing.JComponent.setUI(JComponent.java:1285)
	at javax.swing.JComboBox.setUI(JComboBox.java:231)
	at javax.swing.JComboBox.updateUI(JComboBox.java:236)
	at javax.swing.JComboBox.<init>(JComboBox.java:227)
	at javax.swing.JComboBox.<init>(JComboBox.java:212)
	at TestJCB.main(TestJCB.java:4)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message