MacWidgets and Synth

7 views
Skip to first unread message

Domingo Suárez Torres

unread,
Jun 11, 2009, 1:03:56 PM6/11/09
to mac-widget...@googlegroups.com
Hi humans,

I want to use MacWidgets in a Swing App with a Custom Synth LAF, but i'm getting a NullPointerException:

Caused by: java.lang.NullPointerException
at sun.font.FontDesignMetrics$MetricsKey.init(FontDesignMetrics.java:199)
at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:267)
at sun.swing.SwingUtilities2.getFontMetrics(SwingUtilities2.java:984)
at javax.swing.JComponent.getFontMetrics(JComponent.java:1597)
at javax.swing.plaf.basic.BasicGraphicsUtils.getPreferredButtonSize(BasicGraphicsUtils.java:256)
at javax.swing.plaf.basic.BasicButtonUI.getPreferredSize(BasicButtonUI.java:351)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1632)
at com.explodingpixels.macwidgets.plaf.IAppScrollBarUI.createVerticalSkin(IAppScrollBarUI.java:66)
at com.explodingpixels.macwidgets.plaf.IAppScrollBarUI.access$100(IAppScrollBarUI.java:19)
at com.explodingpixels.macwidgets.plaf.IAppScrollBarUI$1.provideSkin(IAppScrollBarUI.java:32)
at com.explodingpixels.widgets.plaf.SkinnableScrollBarUI.installUI(SkinnableScrollBarUI.java:44)
at javax.swing.JComponent.setUI(JComponent.java:673)
at javax.swing.JScrollBar.setUI(JScrollBar.java:190)
at com.explodingpixels.macwidgets.IAppWidgetFactory.installUIDelegates(IAppWidgetFactory.java:73)
at com.explodingpixels.macwidgets.IAppWidgetFactory.makeIAppScrollPane(IAppWidgetFactory.java:64)
at com.explodingpixels.macwidgets.IAppWidgetFactory.createScrollPaneWithButtonsTogether(IAppWidgetFactory.java:50)
at com.explodingpixels.macwidgets.IAppWidgetFactory.createScrollPaneWithButtonsTogether(IAppWidgetFactory.java:34)
at com.all.client.view.PreviewPanel.getJScrollPane(PreviewPanel.java:315)

MacWidgets can run with a custom Synth LAF?

Cheers
--
domix

Ken Orr

unread,
Jun 11, 2009, 7:17:55 PM6/11/09
to mac-widget...@googlegroups.com
Hi Domingo,

What happens when you run with the Ocean look and feel?

-Ken

2009/6/11 Domingo Suárez Torres <domingo...@gmail.com>
Reply all
Reply to author
Forward
0 new messages