advertisement
Login | Register   
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   TIP BANK
Browse DevX
Download the code for this article
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.
Partners & Affiliates
advertisement
advertisement
advertisement
advertisement
 

Hosting .NET Controls in Java

Using JNI and some COM interop magic, you can host .NET Windows controls directly in your Java applications.  


advertisement
any organizations have applications already written in Java; but applications often aren't static—they 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?



advertisement