JFrame f = new JFrame("HitTestSample");
f.addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
LineBreakSample controller = new LineBreakSample();
controller.buildUI(f.getContentPane());
f.setSize(new Dimension(400, 250));
f.setVisible(true);