9 Replies Latest reply: Jan 21, 2013 2:58 AM by PhHein RSS

    Problems running certain Java programs after Java 5 upgrade

    843804
      After upgrading from Java 1.4 to 1.5 I'm experiencing problems with the GUI when running certain programs. Some programs display java Exceptions (see below), others just can't display button borders properly and some seem not to be able to open new Windows.

      Has anybody experienced something similar, and what's the remedy for it? Providing excerpts from java exceptions below.

      Thanks,
      Ceqvi

      java.lang.NullPointerException
      at java.awt.Dimension.<init>(Dimension.java:91)
      at javax.swing.plaf.basic.BasicProgressBarUI.getPreferredSize(BasicProgressBarUI.java:799)
      at javax.swing.JComponent.getPreferredSize(JComponent.java:1275)
      at java.awt.BorderLayout.layoutContainer(BorderLayout.java:674)
      at java.awt.Container.layout(Container.java:1020)
      at java.awt.Container.doLayout(Container.java:1010)
      at java.awt.Container.validateTree(Container.java:1092)
      at java.awt.Container.validateTree(Container.java:1099)

      and

      Exception in thread "main" java.lang.NullPointerException
      at javax.swing.border.EmptyBorder.<init>(EmptyBorder.java:54)
      at com.sun.java.swing.plaf.windows.WindowsTableHeaderUI$XPDefaultRenderer.getTableCellRendererComponent(WindowsTableHeaderUI.ja
      va:63)
      at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderRenderer(BasicTableHeaderUI.java:394)
      at javax.swing.plaf.basic.BasicTableHeaderUI.getHeaderHeight(BasicTableHeaderUI.java:428)
      at javax.swing.plaf.basic.BasicTableHeaderUI.createHeaderSize(BasicTableHeaderUI.java:454)
      at javax.swing.plaf.basic.BasicTableHeaderUI.getPreferredSize(BasicTableHeaderUI.java:485)
      at javax.swing.JComponent.getPreferredSize(JComponent.java:1275)
      at javax.swing.ViewportLayout.preferredLayoutSize(ViewportLayout.java:75)
      at java.awt.Container.preferredSize(Container.java:1178)
      at java.awt.Container.getPreferredSize(Container.java:1162)
      at javax.swing.JComponent.getPreferredSize(JComponent.java:1277)
      at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:702)
      at java.awt.Container.layout(Container.java:1020)
      at java.awt.Container.doLayout(Container.java:1010)
      at java.awt.Container.validateTree(Container.java:1092)
      at java.awt.Container.validateTree(Container.java:1099)
      at java.awt.Container.validateTree(Container.java:1099)
      at java.awt.Container.validateTree(Container.java:1099)
      at java.awt.Container.validateTree(Container.java:1099)
      at java.awt.Container.validateTree(Container.java:1099)
      at java.awt.Container.validate(Container.java:1067)
      at java.awt.Window.show(Window.java:461)
      at java.awt.Component.show(Component.java:1133)
      at java.awt.Component.setVisible(Component.java:1088)