## Chapter 14. A Dialog-Based Macro

Table of Contents

- Use of the Macro
- Listing of the Macro
- Analysis of the Macro
  - Import Statements
  - Create the Dialog
  - Create the Text Fields
  - Create the Buttons
  - Register the Action Listeners
  - Make the Dialog Visible
  - The Action Listener
  - Get the User's Input
  - Call jEdit Methods to Manipulate Text
  - The Main Routine

Now we will look at a more complicated macro which will demonstrate some useful techniques and BeanShell features.