[kaffe] Bug report: support.c:707

pancake pancake at phreaker.net
Mon Feb 14 12:07:44 PST 2005


for me it works fine.

Building with sun's javac looks like everything goes 'fine' (except for swing bugs in gnuclasspath).

But building it under jikes. also works fine but show this Exception:

pancake at pl2:/tmp$ /usr/pkg/java/kaffe-cvs/bin/kaffe JTableTest
Exception during event dispatch:
java.awt.IllegalComponentStateException: component not showing
   at java.awt.Component.getLocationOnScreen (Component.java:1137)
   at javax.swing.SwingUtilities.convertPointToScreen (SwingUtilities.java:323)
   at javax.swing.SwingUtilities.convertPoint (SwingUtilities.java:380)
   at javax.swing.SwingUtilities.convertRectangle (SwingUtilities.java:418)
   at javax.swing.RepaintManager.paintDirtyRegions (RepaintManager.java:440)
   at javax.swing.RepaintManager$RepaintWorker.run (RepaintManager.java:104)
   at java.awt.event.InvocationEvent.dispatch (InvocationEvent.java:191)
   at java.awt.EventQueue.dispatchEvent (EventQueue.java:416)
   at java.awt.EventDispatchThread.run (EventDispatchThread.java:81)
   at java.lang.VMThread.run (VMThread.java:124)

pancake at pl2:/tmp$


On Mon, 14 Feb 2005 15:57:54 +0100 (CET)
Max Gilead <gilead at yellowhedgehog.com> wrote:

> import java.awt.Dimension;
> 
> import javax.swing.JFrame;
> import javax.swing.JPanel;
> import javax.swing.JScrollPane;
> import javax.swing.JTable;
> 
> public class JTableTest
>         {
>         public static void main(String[] args)
>                 {
>                 Object[][] data = new Object[100][3];
>                 for (int i = 0; i < data.length; i++)
>                         {
>                         data[i][0] = "a"+i;
>                         data[i][1] = "b"+i;
>                         data[i][2] = "c"+i;
>                         }
>                 JTable table = new JTable(data, new Object[] { "A", "B", "C" });
>                 JFrame frame = new JFrame();
>                 JPanel panel = new JPanel();
>                 panel.add(new JScrollPane(table));
>                 panel.setPreferredSize(new Dimension(200, 300));
>                 frame.setContentPane(panel);
>                 frame.pack();
>                 frame.setVisible(true);
>                 }
>         }




More information about the kaffe mailing list