public class SplittingPanelController
extends java.lang.Object
Constructor and Description |
---|
SplittingPanelController(java.lang.String text,
java.lang.String reference)
Create the controller with the text to be split and an optional hint to the user.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
show(java.awt.Window parent)
Show the dialog.
|
public SplittingPanelController(java.lang.String text, java.lang.String reference)
text
- The text to be splitreference
- Reference text to serve as a hint to the userpublic java.lang.String[] show(java.awt.Window parent)
If the user cancels, the result array will contain as its sole member the original string provided to the constructor. Otherwise the array will contain the (trimmed) results of splitting the original string.
parent
- The parent window of the dialog