Do you have a need to host .NET controls in Java, or do you prefer to rely on Swing, AWT, or Eclipse controls when you build applications. Do you think mixing .NET and Java is a good idea? Would you ever use interoperability solutions, or is rewriting a better idea? What did you think of this interop solution? Let us know in the Java or .NET discussion forums.
Using JNI and some COM interop magic, you can host .NET Windows controls directly in your Java applications.
by Heath Stewart
January 21, 2004
any organizations have applications already written in Java; but applications often aren't staticthey need constant attention and modifications to remain productive. When it's time to upgrade, rather than rewriting the base functionality underlying these applications, it's often more feasible to extend them by taking advantage of the rich new user interfaces and technologies present in Microsoft .NET. You can use the techniques discussed in this article to host .NET Controls in Java at the user interface level.
Microsoft .NET and Java are two powerful frameworks that provide a rich set of classes. While either of these frameworks can solve many of the same problems, each has their advantages and disadvantages. When you have existing, tested components, you may find it beneficial to use both .NET and Java in your application, perhaps to support or extend legacy applications that have already been written in Java but adding value using the .NET Framework.
It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com. Already a member?
To become a member of DevX.com create your Member Profile by completing the form below. Membership is free!