3

Is there an equivalent for Java AWT that works on .NET?

I usually use IKVM for Java bytecode translation, but IKVM AWT support is fairly limited.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Ahmed Khalaf
  • 1,220
  • 12
  • 28
  • 2
    Are you looking for a Java-based GUI library that you can IKVM to .NET? Or would a .NET-based library that has features similar to AWT? – Andy White Dec 31 '09 at 17:51
  • IKVM has an JVM implementation but AWT isn't fully implemented. I need a Java.awt .Net implementation :D – Ahmed Khalaf Dec 31 '09 at 18:00

2 Answers2

2

Maybe jni4net could help you ? Or one of the other Java to COM bridges ?

Pavel Savara
  • 3,427
  • 1
  • 30
  • 35
  • Can jni4net be used for "bridging" AWT in .net ? – Ahmed Khalaf Jan 01 '10 at 16:13
  • Generally yes. But I never tried anything advanced. As well bear in mind that jni4net is still young and under heavy development. – Pavel Savara Jan 02 '10 at 17:49
  • Great, can you provide any general ideas on how this can be achieved as AWT isn't a jar library (How will I build the proxy class)? I will do the test drive. – Ahmed Khalaf Jan 04 '10 at 11:45
  • It's in jre/lib/rt.jar Best would be to filter by packages, say java.awt and sun.awt by proxygen, but that's not implemented yet. I noted it as feature request. So for now you need to find the classes you need and create config for proxygen by hands. – Pavel Savara Jan 04 '10 at 19:17
  • You dont know how much I'd lOVE to participate in this project :) – Ahmed Khalaf Jan 06 '10 at 18:19
  • Drop me an email, if you think you have skills and time to join. – Pavel Savara Jan 07 '10 at 19:19
1

AFAIK, there are no implementations of AWT for .NET that are more complete than the (as you've seen) partially complete version in IKVM. Be sure to use the latest IKVM snapshots, though, as it has improved quite a bit over the past year.

The only similar project that I know of is Ja.NET, but I doubt their AWT is in any better shape than the one in IKVM.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
jsight
  • 27,819
  • 25
  • 107
  • 140