/** Construct a new instance of the graph demo in a particular context.
* @param context The context in which the demo is constructed.
*/
public BubbleGraphDemo(AppContext context) {
JGraph jg = new JGraph(new BubblePane());
context.getContentPane().add("Center", jg);
ActionListener deletionListener = new DeletionListener();
jg.registerKeyboardAction(deletionListener, "Delete", KeyStroke
.getKeyStroke(KeyEvent.VK_DELETE, 0),
JComponent.WHEN_IN_FOCUSED_WINDOW);
jg.setRequestFocusEnabled(true);
context.setSize(600, 400);
context.setVisible(true);
}