class Wiki2PlainListener implements java.awt.event.ActionListener {
public void actionPerformed(java.awt.event.ActionEvent event) {
String strData = input.getText();
WikiModel wikiModel = new WikiModel(Configuration.DEFAULT_CONFIGURATION, Locale.ENGLISH, "${image}", "${title}");
wikiModel.setUp();
try {
String result = wikiModel.render(new PlainTextConverter(), strData);
output.setText(result);
} finally {
wikiModel.tearDown();
}
}