Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-241)
Java HotSpot(TM) Client VM (build 1.5.0_13-121, mixed mode, sharing)
I'll try that tonight silos. BTW the window re-sizing didn't work for me.
Is the a way to edit Flavie's standard.css etc. to make it 1.09 compliant? or is there a 1.09 Flavie out there?
The css (and the dat) file is a plain ASCII file, you can edit it freely.
Do you think the problem is with my Java version? Looking at the Mac support pages, I am on the most up to date I can have with my OS – I would have to upgrade to 10.4 to get a different version.
@silos: I entirely forgot to try that, I'll do it tonight.
Computer:/Applications/Games/GoMule Max$ java -jar GoMule.jar
apple.awt.EventQueueExceptionHandler Caught Throwable : java.lang.NoSuchMethodError: java.awt.Font.createFont(ILjava/io/File;)Ljava/awt/Font;
java.lang.NoSuchMethodError: java.awt.Font.createFont(ILjava/io/File;)Ljava/awt/Font;
at gomule.gui.D2ViewChar.<init>(D2ViewChar.java:210)
at gomule.gui.D2FileManager.openChar(D2FileManager.java:685)
at gomule.gui.D2ViewProject$CharTreeNode.view(D2ViewProject.java:449)
at gomule.gui.D2ViewProject$4.mouseReleased(D2ViewProject.java:142)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
at java.awt.Component.processMouseEvent(Component.java:5166)
at java.awt.Component.processEvent(Component.java:4963)
at java.awt.Container.processEvent(Container.java:1613)
at java.awt.Component.dispatchEventImpl(Component.java:3681)
at java.awt.Container.dispatchEventImpl(Container.java:1671)
at java.awt.Component.dispatchEvent(Component.java:3543)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3527)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3242)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3172)
at java.awt.Container.dispatchEventImpl(Container.java:1657)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3543)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
apple.awt.EventQueueExceptionHandler Caught Throwable : java.lang.NoSuchMethodError: java.awt.Font.createFont(ILjava/io/File;)Ljava/awt/Font;
java.lang.NoSuchMethodError: java.awt.Font.createFont(ILjava/io/File;)Ljava/awt/Font;
at gomule.gui.D2ViewChar.<init>(D2ViewChar.java:210)
at gomule.gui.D2FileManager.openChar(D2FileManager.java:685)
at gomule.gui.D2ViewProject$CharTreeNode.view(D2ViewProject.java:449)
at gomule.gui.D2ViewProject$4.mouseReleased(D2ViewProject.java:142)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
at java.awt.Component.processMouseEvent(Component.java:5166)
at java.awt.Component.processEvent(Component.java:4963)
at java.awt.Container.processEvent(Container.java:1613)
at java.awt.Component.dispatchEventImpl(Component.java:3681)
at java.awt.Container.dispatchEventImpl(Container.java:1671)
at java.awt.Component.dispatchEvent(Component.java:3543)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3527)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3242)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3172)
at java.awt.Container.dispatchEventImpl(Container.java:1657)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3543)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Add Stash: /Applications/Games/Diablo II Folder/Save/Quarantine.d2x
apple.awt.EventQueueExceptionHandler Caught Throwable : java.lang.Error: Do not use javax.swing.JFrame.add() use javax.swing.JFrame.getContentPane().add() instead
java.lang.Error: Do not use javax.swing.JFrame.add() use javax.swing.JFrame.getContentPane().add() instead
at javax.swing.JFrame.createRootPaneException(JFrame.java:465)
at javax.swing.JFrame.addImpl(JFrame.java:491)
at java.awt.Container.add(Container.java:307)
at gomule.gui.D2ViewStash$4.filterPopUp(D2ViewStash.java:415)
at gomule.gui.D2ViewStash$4.actionPerformed(D2ViewStash.java:243)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1819)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1872)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:247)
at java.awt.Component.processMouseEvent(Component.java:5166)
at java.awt.Component.processEvent(Component.java:4963)
at java.awt.Container.processEvent(Container.java:1613)
at java.awt.Component.dispatchEventImpl(Component.java:3681)
at java.awt.Container.dispatchEventImpl(Container.java:1671)
at java.awt.Component.dispatchEvent(Component.java:3543)
at javax.swing.plaf.basic.BasicInternalFrameUI$GlassPaneDispatcher.retargetMouseEvent(BasicInternalFrameUI.java:1420)
at javax.swing.plaf.basic.BasicInternalFrameUI$GlassPaneDispatcher.forwardMouseEvent(BasicInternalFrameUI.java:1356)
at javax.swing.plaf.basic.BasicInternalFrameUI$GlassPaneDispatcher.mouseReleased(BasicInternalFrameUI.java:1286)
at java.awt.Component.processMouseEvent(Component.java:5166)
at java.awt.Component.processEvent(Component.java:4963)
at java.awt.Container.processEvent(Container.java:1613)
at java.awt.Component.dispatchEventImpl(Component.java:3681)
at java.awt.Container.dispatchEventImpl(Container.java:1671)
at java.awt.Component.dispatchEvent(Component.java:3543)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3527)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3242)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3172)
at java.awt.Container.dispatchEventImpl(Container.java:1657)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3543)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Font issues - MS Windows has larger monospace so it's cut all the stats off the bottom! **** YOU MICROSOFT.
- Solution - Extract linux mono font and supply in resources? May work.
- FIXED. Makes mine look worse though (grumble grumble). Stupud windows users
java.lang.NoSuchMethodError: java.awt.Font.createFont(ILjava/io/File;)
"Do not use javax.swing.JFrame.add() use javax.swing.JFrame.getContentPane().add() instead"
Max - Mind if I contact you by email (I have your maxicekuk version) with some files to test out when I get the fixes in place? Obviously I can't replicate the problems you're having easily, so it would be great if you could double check 'em for me when the time comes.
So in Java 1.4, you can't do this. Interestingly, this should be thrown up by the compiler, as I'm compiling it for 1.4. However, Apple use their own Java tweaks, so it looks like they haven't included this one in their version. Still, I'll look into it, just in case it's an error on my end.
Are you compiling with 1.5 or 1.6 ?
This is not a problem of the compiler as the "byte" code is correctly compatible for 1.4 (it couldn't run otherwise).
But libraries is a different thing, if you build and run with the 1.5 or 1.6 libraries, which include this routine, you can build and run.
But somebody with a true 1.4 lack these libraries, so it gives runtime-errors.
Cute isn't it
(to be sure it really compiles, compile with true 1.4 JDK even if only for the actual release)
Marco
Bleh, it's seriously that stupid? So even if everything is set to 1.4 compatibility and you're compiling to 1.4 (The ant scripts do that, right? Looks like they do. You wrote them).
But hey de ho de, I'll have a looksie.
I tend to avoid (programming in) Java, because I loathe it, but surely it's possible to use some text metrics functions and size things accordingly, no? Seems better than using a hackish solution of forcing non-native fonts.silospen said:So, the standard Java monospaced font is different on every computer, causing the information to flow outside the boxes.
Solution: Take the standard Linux monospaced font and force it to use that rather than the standard monospaced font, since it fits.