1. Getting started
2. Calling methods
3. Working with .NET Objects
4. Fields and Properties
5. Methods Arguments
6. Nested Types
7. Enums
8. Arrays and Collections
9. Embeding UI controls
10. Referencing libraries
11. Off-line activation
12. Events and Delegates
13. Disposing and Garabage Collection
14. .NET Configuration Files (AppConfig, WebConfig)
15. Exceptions, Debugging and Testing
16. Strongly-Typed Wrappers
    17. Advanced Activation and Licensing
    18 Other usage scenarios

      Extending the .NET Class in Java and Wrapping .NET Methods

      You can extend any .NET class by extending the Java class with the “NObject” type and then call the constructor base constructor by passing the name of the .NET type and arguments for its constructor as an argument.


      Here’s an example of how to extend the.NET System.Windows.Forms.Form class and wrap the ShowDialog method.

      public class MyExtendedForm extends NObject {
        public MyExtendedForm() throws JavonetException
        public void ShowDialog() throws JavonetException

      See Live Example!