Examples of MainFrame


Examples of org.apache.uima.tools.cvd.MainFrame

          // get pear descriptor
          String pearDesc = pkgBrowser.getComponentPearDescPath();

          // start CVD
          MainFrame frame = CVD.createMainFrame();

          // Prevent CVD from shutting down JVM after exit
          frame.setExitOnClose(false);

          // load pear descriptor
          frame.loadAEDescriptor(new File(pearDesc));

          // run CVD
          frame.runAE(true);
        } catch (Throwable e) {
          pearConsole.append(" Error in runCVD() " + e.toString());
          StringWriter strWriter = new StringWriter();
          PrintWriter printWriter = new PrintWriter(strWriter, true);
          e.printStackTrace(printWriter);
View Full Code Here

Examples of org.apache.uima.tools.cvd.MainFrame

          // get pear descriptor
          String pearDesc = pkgBrowser.getComponentPearDescPath();

          // start CVD
          MainFrame frame = CVD.createMainFrame();

          // Prevent CVD from shutting down JVM after exit
          frame.setExitOnClose(false);

          // load pear descriptor
          frame.loadAEDescriptor(new File(pearDesc));

          // run CVD
          frame.runAE(true);
        } catch (Throwable e) {
          pearConsole.append(" Error in runCVD() " + e.toString());
          StringWriter strWriter = new StringWriter();
          PrintWriter printWriter = new PrintWriter(strWriter, true);
          e.printStackTrace(printWriter);
View Full Code Here

Examples of org.bmdrc.gui.MainFrame

* @author Sung
*/
public class Main {

    public static void main(String[] args) {
        MainFrame theFrame = new MainFrame();
    }
View Full Code Here

Examples of org.jdesktop.wonderland.client.jme.MainFrame

                Math.abs((fromLoc.y)-(toLoc.y))<=150 &&
                Math.abs((fromLoc.z)-(toLoc.z))<=150) {
            //Cover Screen not needed
        } else {
            //attach cover screen
            final MainFrame mainFrame =  JmeClientMain.getFrame();
            final Canvas canvas = mainFrame.getCanvas();
            final CoverScreen coverScreenPanel = new CoverScreen(csd,canvas.getSize());
           
            try {
                //show cover screen in JDialog over the canvas panel
                SwingUtilities.invokeLater(new Runnable() {

                    public void run() {
                        dialog = new JDialog(mainFrame.getFrame(), "Child", false);
                        coverScreenPanel.setPreferredSize(canvas.getSize());
                        dialog.setSize(canvas.getSize().width
                                ,canvas.getSize().height);
                        dialog.setLocation(canvas.getLocationOnScreen().x
                                ,canvas.getLocationOnScreen().y);
                       
                        mainFrame.getFrame().addComponentListener(new ComponentAdapter() {

                            private void doChange() {
                                SwingUtilities.invokeLater(new Runnable() {
                                    public void run() {
                                        if (dialog != null && dialog.isVisible()) {
                                            Component cs = dialog.getComponent(0);
                                            Canvas canvas = mainFrame.getCanvas();
                                            cs.setPreferredSize(canvas.getSize());
                                            dialog.setSize(canvas.getSize().width, canvas.getSize().height);
                                            dialog.setLocation(canvas.getLocationOnScreen().x, canvas.getLocationOnScreen().y);
                                            dialog.pack();
                                            dialog.setVisible(true);
View Full Code Here

Examples of org.jdesktop.wonderland.client.jme.MainFrame

        // First remove the menus. This will prevent users from taking action
        // upon the avatar in the (small) chance they do while the session is
        // being deactivated.
        if (menusAdded == true) {
            MainFrame frame = JmeClientMain.getFrame();
            frame.removeFromWindowMenu(gestureMI);
            frame.removeFromToolsMenu(collisionResponseEnabledMI);
            frame.removeFromToolsMenu(gravityEnabledMI);
            frame.removeFromEditMenu(avatarConfigMI);
           
            if (frame instanceof MainFrameImpl) { // Until MainFrame gets this method added
                ((MainFrameImpl) frame).removeFromCameraChoices(chaseCameraMI);
            }
            else {
                frame.removeFromViewMenu(chaseCameraMI);
            }

            // Remove the avatar controls (test) if it exists
            if (avatarControlsMI != null) {
                frame.removeFromWindowMenu(avatarControlsMI);
            }

            // Add the avatar instrumentions settings if it exists
            if (avatarSettingsMI != null) {
                frame.removeFromEditMenu(avatarSettingsMI);
            }
            menusAdded = false;
        }

        // Next, remove the listener for changes in avatar in use. This will
View Full Code Here

Examples of org.jdesktop.wonderland.client.jme.MainFrame

        // Finally, enable the menu items to allow avatar configuration. We
        // do this after the view cell is set, so we know we have an avatar
        // in the world.
        if (menusAdded == false) {
            MainFrame frame = JmeClientMain.getFrame();
            frame.addToWindowMenu(gestureMI, 0);
            frame.addToToolsMenu(gravityEnabledMI, 3);
            frame.addToToolsMenu(collisionResponseEnabledMI, 2);
            frame.addToEditMenu(avatarConfigMI, 0);

            if (frame instanceof MainFrameImpl) { // Only until the MainFrame interface gets this method
                ((MainFrameImpl) frame).addToCameraChoices(chaseCameraMI, 3);
            }
            else {
                frame.addToViewMenu(chaseCameraMI, 3);
            }

            // Add the avatar control (test) if it exists
            if (avatarControlsMI != null) {
                frame.addToWindowMenu(avatarControlsMI, 0);
            }

            // Add the avatar instrumentation settings if it exists
            if (avatarSettingsMI != null) {
                frame.addToEditMenu(avatarSettingsMI, 1);
            }
            menusAdded = true;
        }
    }
View Full Code Here

Examples of org.jdesktop.wonderland.client.jme.MainFrame

                && Math.abs((fromLoc.y) - (toLoc.y)) <= 150
                && Math.abs((fromLoc.z) - (toLoc.z)) <= 150) {
            //Cover Screen not needed
        } else {
            //attach cover screen
            final MainFrame mainFrame = JmeClientMain.getFrame();
            final Canvas canvas = mainFrame.getCanvas();
            final CoverScreen coverScreenPanel = new CoverScreen(csd, canvas.getSize());

            try {

                //show cover screen in JDialog over the canvas panel
                SwingUtilities.invokeLater(new Runnable() {
                    public void run() {
                        dialog = new JDialog(mainFrame.getFrame(), "Child", false);

                        coverScreenPanel.setPreferredSize(canvas.getSize());
                        dialog.setSize(canvas.getSize().width, canvas.getSize().height);
                        dialog.setLocation(canvas.getLocationOnScreen().x, canvas.getLocationOnScreen().y);

                        mainFrame.getFrame().addComponentListener(new ComponentAdapter() {
                            private void doChange() {
                                SwingUtilities.invokeLater(new Runnable() {
                                    public void run() {
                                        if (dialog != null && dialog.isVisible()) {
                                            Component cs = dialog.getComponent(0);
                                            Canvas canvas = mainFrame.getCanvas();
                                            cs.setPreferredSize(canvas.getSize());
                                            dialog.setSize(canvas.getSize().width, canvas.getSize().height);
                                            dialog.setLocation(canvas.getLocationOnScreen().x, canvas.getLocationOnScreen().y);
                                            dialog.pack();
                                            dialog.setVisible(true);
View Full Code Here

Examples of org.jgroups.demo.tankwar.core.MainFrame

    logger.info("JGroups TankWar Demo doStart, [jgroupsProps=" + jgroupsProps + ", name=" + name + ", isGood=" + isGood + "]");
   
    // Current use asynchronous Communication
    AsychCommunication comm = new AsychCommunication(jgroupsProps, name);
   
    new MainFrame(comm, isGood);
  }
View Full Code Here

Examples of org.jgroups.demo.tankwar.core.MainFrame

      System.exit(1);
    }
   
    AsychCommunication comm = new AsychCommunication(props, name);
   
    MainFrame mainFrame = new MainFrame(comm, isGood);
  }
View Full Code Here

Examples of org.mati.geotech.sandbox.gui.MainFrame

import org.mati.geotech.sandbox.gui.CellCoverDrawPanel;
import org.mati.geotech.sandbox.gui.MainFrame;

public class CellCoverApp {
    public static void main(String[] args) {
        MainFrame mf = new MainFrame(new CellCoverDrawPanel());
        CellCoverModel model = new CellCoverModel();
        mf.setModel(model);
        mf.setVisible(true);
    }
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.