"main program" method - construct and show
JFrame f = new JFrame("REDemo2");
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
REDemo2 comp = new REDemo2();
Container cp = f.getContentPane();
cp.add(comp, BorderLayout.NORTH);
cp.add(comp.logTextArea, BorderLayout.SOUTH);
f.pack();
f.setVisible(true);