Embedding ModbusPal in a graphical application

Introduction

In version 1.6, ModbusPal has been redesigned so that several instances can coexist. The core of the application resides in the modbuspal.main.ModbusPalPane class, which is a subclass of javax.swing.JPanel.

Creating a JFrame

The developer can create multiple instances of ModbusPalPane, packaged in a JFrame, by callong the static method ModbusPalGui.newFrame().

Creating a JInternalFrame

The developer can create multiple instances of ModbusPalPane, packaged in a JInternalFrame, by callong the static method ModbusPalGui.newInternalFrame().

Using ModbusPalPane directly

The developer may want to use the ModbusPalPane directly in his/her application. The constructor is as follow:

ModbusPalPane(boolean useInternalConsole)

When an instance of ModbusPalPane is not used and is going to be discarded from the application, its exit() method must be called to cleanly terminate the project.