Class AbstractOptionPane

Most plugin option panes extend this implementation of OptionPane, instead of implementing OptionPane directly. It provides a convenient default framework for laying out configuration options in a manner similar to the option panes created by jEdit itself. It is derived from Java's JPanel class and contains a GridBagLayout object for component management. It also contains shortcut methods to simplify layout.

The constructor for a class derived from AbstractOptionPane should call the parent constructor and pass the option pane's "internal name" as a parameter. The internal name is used to key a property where the option pane's label is stored; see the section called "Plugin Properties". It should also implement two methods:

AbstractOptionPane also contains three shortcut methods, typically called from _init(), for adding components to the option pane: