Examples of JRatFrame


Examples of org.shiftone.jrat.ui.util.JRatFrame

      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();
        }
      });
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.