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.
The developer can create multiple instances of ModbusPalPane,
packaged in a JFrame, by callong the static method ModbusPalGui.newFrame()
.
The developer can create multiple instances of ModbusPalPane,
packaged in a JInternalFrame, by callong the static method
ModbusPalGui.newInternalFrame()
.
The developer may want to use the ModbusPalPane directly in his/her application. The constructor is as follow:
ModbusPalPane(boolean useInternalConsole)
useInternalConsoleis TRUE, then the console outputs (as in System.out and System.err) are directed to the ModbusPal console.
useInternalConsoleis FALSE, then the console outputs are untouched.
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.