Skip to content

cjmach/djns-netbeans-integration

Repository files navigation

djns-netbeans-integration

A module suite that integrates DJ Native Swing components in Apache NetBeans.

Features

  • Allows to set DJ Native Swing Web Browser as the default NetBeans browser. This web browser is displayed inside the main NetBeans window and it's also used to view javadocs, HTML files, etc.
  • Adds a Preview view to the NetBeans HTML editor.
  • Adds NativeDialogBuilder class that supports the integration of native dialogs in NetBeans.

Installation

We use Github Pages to publish the module suite's update site whenever a new release is created. The following lists the steps to install the suite:

  1. Open NetBeans
  2. Click on the menu Tools / Plugins
  3. Select the "Settings" tab
  4. Click on the "Add" button to add a new update site with the following values:
  1. Select the "Available Plugins" and click on the "Check for Newest" button.
  2. You must check exactly two modules:
  • The main module: DJ Native Swing Integration
  • The native module: DJ Native Swing Integration - [Your OS/Arch]
  1. Click on the "Install" button and follow the instructions of the install wizard.
  2. Add the following option to netbeans_default_options property in netbeans.conf file, located at [NETBEANS INSTALL DIR]/etc (global config) or [HOME DIR]/.netbeans/[NETBEANS VERSION]/etc (user config, may not exist):
  • -J-Dsun.awt.disableMixing=true
  1. Restart NetBeans.

Configuration

The following lists the steps to configure DJ Native Swing Web Browser as the default NetBeans browser:

  1. Click on the menu Tools / Options
  2. Select the "General" tab
  3. Select "DJ Native Swing Browser" from the Web Browser drop-down list
  4. Click "OK"

The web browser can be opened by clicking on the menu Window / Web / Web Browser. NetBeans IDE will also use it to show the Javadocs, etc.