001 package org.shiftone.jrat.desktop;
002
003 import org.shiftone.jrat.util.io.ResourceUtil;
004
005 import javax.swing.*;
006
007 /**
008 * @author jeff@shiftone.org (Jeff Drost)
009 */
010 public class DesktopDemo {
011
012
013 public static void main(String[] args) {
014
015 final DesktopFrame frame = new DesktopFrame();
016 frame.setVisible(true);
017
018 new Thread(new Runnable() {
019 public void run() {
020 frame.open("demo.jrat", ResourceUtil.loadResourceAsStream("demo.jrat"));
021 }
022 }).start();
023
024 JOptionPane.showMessageDialog(
025 frame,
026 "The JRat Desktop is running in demo mode.\n" +
027 "A sample data set is being downloaded and loaded.",
028 "Running Demo Mode",
029 JOptionPane.INFORMATION_MESSAGE);
030
031 }
032
033 }