Skip to main content

Problems with baseline feature in b36

4 replies [Last post]
hlavac
Offline
Joined: 2003-09-16

Is anyone able to run Netbeans 4.1 on build 36 on XP?
I'm getting this instead of Output window:

<br />
java.lang.NullPointerException<br />
	at sun.font.FontManager.getFont2D(Native Method)<br />
	at sun.font.FontDesignMetrics.initMatrixAndMetrics(FontDesignMetrics.java:330)<br />
	at sun.font.FontDesignMetrics.(FontDesignMetrics.java:323)<br />
	at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:271)<br />
	at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:232)<br />
	at java.awt.Component.getFontMetrics(Component.java:2695)<br />
	at javax.swing.JComponent.getFontMetrics(JComponent.java:1652)<br />
	at javax.swing.plaf.basic.BasicLabelUI.getBaseline(BasicLabelUI.java:281)<br />
	at javax.swing.JComponent.getBaseline(JComponent.java:2585)<br />
	at javax.swing.plaf.basic.BasicComboBoxUI.getDisplaySize(BasicComboBoxUI.java:1289)<br />
	at javax.swing.plaf.basic.BasicComboBoxUI.getMinimumSize(BasicComboBoxUI.java:873)<br />
	at javax.swing.plaf.basic.BasicComboBoxUI.getPreferredSize(BasicComboBoxUI.java:863)<br />
	at com.sun.java.swing.plaf.windows.WindowsComboBoxUI.getPreferredSize(WindowsComboBoxUI.java:84)<br />
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1687)<br />
	at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:694)<br />
	at java.awt.Container.preferredSize(Container.java:1559)<br />
	at java.awt.Container.getPreferredSize(Container.java:1544)<br />
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1689)<br />
	at java.awt.BorderLayout.layoutContainer(BorderLayout.java:790)<br />
	at java.awt.Container.layout(Container.java:1402)<br />
	at java.awt.Container.doLayout(Container.java:1391)<br />
	at java.awt.Container.validateTree(Container.java:1474)<br />
	at java.awt.Container.validateTree(Container.java:1481)<br />
	at java.awt.Container.validateTree(Container.java:1481)<br />
	at java.awt.Container.validate(Container.java:1449)<br />
	at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:599)<br />
	at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:127)<br />
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)<br />
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:589)<br />
[catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:247)<br />
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:168)<br />
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:162)<br />
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:154)<br />
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:115)<br />

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bino_george
Offline
Joined: 2003-06-16

Hi,
I have filed a bug to track this (6272022). You should
be able to see it in JDC in a day or so. We will
fix it in the next build.

Can you tell me how
you reproduce this exception. I dont see this with my
version of Netbeans. Does it cause it to quit, or does it
merely show up in the console ?

Thanks,
Bino.

hlavac
Offline
Joined: 2003-09-16

It looks like Output window fails to create, I get an empty area instead of it. Rest of the GUI seems to work. This exception shows up in normal exception notification dialog and in the IDE log. I posted it here because there doesnt seem to be any Netbeans code in the stack trace.
I have no problems with previous build 35.
Both Mustang b36 and Netbeans 4.1 are fresh clean installs.

It may be relevant that I use Czech version of Windows XP. It does this on both of my machines. I'll check what it does on english XP machine.

Or maybe its because of some bad fonts again? I have OpenOffice installed on both machines, maybe that is the source of some bad fonts?

hlavac
Offline
Joined: 2003-09-16

Ok I tested it on english XP and it worked normally. So it is probably related to the fact that I use Czech XP.
Maybe its because some font names contain czech accented characters, which are lost somewhere, causing the font to not be found? If you want to test something on Czech windows I'm available on ICQ #1104754

bino_george
Offline
Joined: 2003-06-16

Hi,
Just an update on the bug. Scott Violet reproduced
the bug and has a fix for it. It would likely go into the next Swing integration.
You should see the fix within a few builds.

Thanks,
Bino.