logo       

SWING compatibility: msg#00001

java.ikvm.devel

Subject: SWING compatibility

Is IKVM incompatible with SWING?  I have this very simple test program which compiles fine with IKVMC, but when I run the exe, I get:

Exception in thread "main" cli.System.NotImplementedException: The method or ope
ration is not implemented.
        at cli.ikvm.awt.NetComponentPeer.show (Unknown Source)
        at java.awt.Component.show (Component.java:905)
        at java.awt.Window.show (Window.java:297)
        at java.awt.Component.show (Component.java:934)
        at java.awt.Component.setVisible (Component.java:884)
        at Testing3.main (Testing3.java:16)

Here is the program:

import java.awt.*;
import javax.swing.*;
class Testing3 extends JFrame
{
  final int ROWS = 4,COLS = 0;
  public Testing3()
  {
    setLocation(400,300);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    JPanel panel = new JPanel(new GridLayout(ROWS,COLS,0,10));
        for(int x = 0; x < ROWS; x++) panel.add(new JButton("Button "+x));
    getContentPane().add(panel);
    pack();
  }
  public static void main(String[] args){new Testing3().setVisible(true);}
}

Thanks

Jim
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise