Re: jMemorize - exception in JTable code: Fixed, but JFreeChart internal problem follows.

2006-03-31 Thread Roman Kennke
Hi Audrius, Unfortunately, this brings us to the second exception, related to the JFreeChart: java.lang.ClassCastException: gnu/java/awt/peer/gtk/GdkGraphics Probably our JFreeChart experts could look at this. This is caused by missing support for Graphics2D. Try building and running with

Re: jMemorize - exception in JTable code: Fixed, but JFreeChart internal problem follows.

2006-03-31 Thread Robert Schuster
Hey Audrius, thanks for fixing this. Here is how jMemorize looks when using the cairo based Graphics2D. http://page.mi.fu-berlin.de/~rschuste/jMemorize-2006-03-31.png configure with --enable-gtk-cairo and then run with: jamvm -Dgnu.java.awt.peer.gtk.Graphics=Graphics2D -jar jMemorize-0.9.2.jar

Re: jMemorize - exception in JTable code: Fixed, but JFreeChart internal problem follows.

2006-03-31 Thread Roman Kennke
Hi Robert, I am not sure where this comes from but I find that our Free Swing apps look very neat. Is there something special with our fonts?!? Yes. In constrast to Sun's JDK, we use the system fonts and the system font settings, which is normally antialiased and optimized for LCD when running

Re: jMemorize - exception in JTable code: Fixed, but JFreeChart internal problem follows.

2006-03-31 Thread Mark Wielaard
On Thu, 2006-03-30 at 23:06 +0100, David Gilbert wrote: I think many applications are going to fail on our implementation until we get good Graphics2D support into our JComponent (many custom look and feel implementations rely on it, for starters). Agreed. Most of the things I am testing on

Re: jMemorize - exception in JTable code: Fixed, but JFreeChart internal problem follows.

2006-03-31 Thread Mark Wielaard
On Fri, 2006-03-31 at 15:55 +0200, Roman Kennke wrote: However, you can turn on font-antialiasing using the RenderingHints class. It's a bit tricky to do this application wide though... (on the downside, I think classpath ignores the RenderingHints altogether). Ironically this is how I have

jMemorize - exception in JTable code

2006-03-30 Thread Robert Schuster
Hi, I added jMemorize[0] to the list of Free Swing apps. I just stumbled over the app and tried to run it but it fails with a NPE: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invokeNative (Native Method) at java.lang.reflect.Method.invoke (Method.java:355) at

Re: jMemorize - exception in JTable code: Fixed, but JFreeChart internal problem follows.

2006-03-30 Thread Audrius Meskauskas
This is because jMemorize overrides the JTable.columnMarginChanged that is fired from the JTable constructor, when the user - derived class is not yet initialised. This can be easily fixed by initialising the table column model befor the table listeners are installed on it, I have comitted

Re: jMemorize - exception in JTable code: Fixed, but JFreeChart internal problem follows.

2006-03-30 Thread David Gilbert
The ChartPanel class overrides paintComponent(Graphics) and casts the incoming Graphics object the Graphics2D subclass - this is very common in Swing apps as a way to gain access to Java2D features for drawing on Swing components. I'm almost certain that the Graphics object is guaranteed to

Re: jMemorize - exception in JTable code: Fixed, but JFreeChart internal problem follows.

2006-03-30 Thread Audrius Meskauskas
Regards, David Gilbert wrote: The ChartPanel class overrides paintComponent(Graphics) and casts the incoming Graphics object the Graphics2D subclass - this is very common in Swing apps as a way to gain access to Java2D features for drawing on Swing components. I'm almost certain that the