this.title = title;
}
public void run() {
final JRatFrame frame = new JRatFrame(title);
final Container container = frame.getContentPane();
container.setLayout(new BorderLayout());
final JLabel label = new JLabel("Building TouchGraph...");
label.setHorizontalAlignment(SwingConstants.CENTER);
label.setVerticalAlignment(SwingConstants.CENTER);
container.add(label, BorderLayout.CENTER);
frame.setVisible(true);
container.setCursor(new Cursor(Cursor.WAIT_CURSOR));
final StackTreeNodeGLPanel panel = new StackTreeNodeGLPanel(nodeModel);
SwingUtilities.invokeLater(new Runnable() {
public void run() {
container.remove(label);
container.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
container.add(panel, BorderLayout.CENTER);
panel.setVisible(true);
container.setVisible(true);
frame.setVisible(true);
panel.repaint();
container.repaint();
frame.repaint();
}
});
}