OK my code’s fixed and works with the latest Mustang b95. There’s also an openGL Web Start version of the game I posted at www.freewebs.com/commanderkeith/STGOpenGL.jnlp as well as the default one.
Kirill, there’s a problem with the substance-lite.jar when using the latest Mustang build.
When I try to create an instance of InitialMenu (my sub-class of JInternalFrame) with Substance as the L&F I get this exception, with any other L&F there’s no problem, & with the full substance.jar there’s no problem.
Exception in thread “Thread-5” java.lang.NoClassDefFoundError: com/sun/java/swing/SwingUtilities2
at org.jvnet.substance.SubstanceInternalFrameTitlePane$SubstanceTitlePaneLayout.minimumLayoutSize(SubstanceInternalFrameTitlePane.java:485)
at java.awt.Container.minimumSize(Container.java:1668)
at java.awt.Container.getMinimumSize(Container.java:1653)
at javax.swing.JComponent.getMinimumSize(JComponent.java:1689)
at java.awt.BorderLayout.minimumLayoutSize(BorderLayout.java:646)
at org.jvnet.substance.SubstanceDesktopIconUI.getMinimumSize(SubstanceDesktopIconUI.java:172)
at org.jvnet.substance.SubstanceDesktopIconUI.getPreferredSize(SubstanceDesktopIconUI.java:159)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1607)
at javax.swing.JInternalFrame$JDesktopIcon.updateUI(JInternalFrame.java:2217)
at javax.swing.JInternalFrame$JDesktopIcon.(JInternalFrame.java:2146)
at javax.swing.JInternalFrame.(JInternalFrame.java:332)
at javax.swing.JInternalFrame.(JInternalFrame.java:251)
at net.slavebot.tankgame.menu.InitialMenu.(InitialMenu.java:26)
at net.slavebot.tankgame.TFrame$2.run(TFrame.java:222)
at java.lang.Thread.run(Thread.java:619)
For now I’m using the full substance.jar file, so you can still try the web start link. If you have any queries about the above error then I’d be glad to help.
Thanks,
Keith