Examples of MainFrame


Examples of org.apache.jmeter.gui.MainFrame

  private void updateMainMenu(JPopupMenu menu)
  {
    try
    {
      Object model = getCurrentNode().getUserObject();
      MainFrame mainFrame = GuiPackage.getInstance().getMainFrame();
      mainFrame.setEditMenu(menu);
    }
    catch(NullPointerException e)
    {
      log.error("Null pointer: JMeterTreeListener.updateMenuItem()",e);
      log.error("",e);
View Full Code Here

Examples of org.apache.jmeter.gui.MainFrame

    }

    @Override
    public void mousePressed(MouseEvent e) {
        // Get the Main Frame.
        MainFrame mainFrame = GuiPackage.getInstance().getMainFrame();
        // Close any Main Menu that is open
        mainFrame.closeMenu();
        int selRow = tree.getRowForLocation(e.getX(), e.getY());
        if (tree.getPathForLocation(e.getX(), e.getY()) != null) {
            log.debug("mouse pressed, updating currentPath");
            currentPath = tree.getPathForLocation(e.getX(), e.getY());
        }
View Full Code Here

Examples of org.apache.jmeter.gui.MainFrame

    JMeterTreeModel treeModel = new JMeterTreeModel();
    JMeterTreeListener treeLis = new JMeterTreeListener(treeModel);
    treeLis.setActionHandler(ActionRouter.getInstance());
    // NOTUSED: GuiPackage guiPack =
    GuiPackage.getInstance(treeLis, treeModel);
    MainFrame main = new MainFrame(ActionRouter.getInstance(), treeModel, treeLis);
    ComponentUtil.centerComponentInWindow(main, 80);
    main.show();
    ActionRouter.getInstance().actionPerformed(new ActionEvent(main, 1, ActionNames.ADD_ALL));
    if (testFile != null) {
            FileInputStream reader = null;
      try {
                File f = new File(testFile);
View Full Code Here

Examples of org.apache.jmeter.gui.MainFrame

        JMeterTreeModel treeModel = new JMeterTreeModel();
        JMeterTreeListener treeLis = new JMeterTreeListener(treeModel);
        treeLis.setActionHandler(ActionRouter.getInstance());
        // NOTUSED: GuiPackage guiPack =
        GuiPackage.getInstance(treeLis, treeModel);
        MainFrame main = new MainFrame(treeModel, treeLis);
        ComponentUtil.centerComponentInWindow(main, 80);
        main.setVisible(true);
        ActionRouter.getInstance().actionPerformed(new ActionEvent(main, 1, ActionNames.ADD_ALL));
        if (testFile != null) {
            FileInputStream reader = null;
            try {
                File f = new File(testFile);
View Full Code Here

Examples of org.apache.jmeter.gui.MainFrame

        JMeterTreeModel treeModel = new JMeterTreeModel();
        JMeterTreeListener treeLis = new JMeterTreeListener(treeModel);
        treeLis.setActionHandler(ActionRouter.getInstance());
        // NOTUSED: GuiPackage guiPack =
        GuiPackage.getInstance(treeLis, treeModel);
        MainFrame main = new MainFrame(treeModel, treeLis);
        ComponentUtil.centerComponentInWindow(main, 80);
        main.setVisible(true);
        ActionRouter.getInstance().actionPerformed(new ActionEvent(main, 1, ActionNames.ADD_ALL));
        if (testFile != null) {
            FileInputStream reader = null;
            try {
                File f = new File(testFile);
View Full Code Here

Examples of org.apache.jmeter.gui.MainFrame

        return false;
    }

    public void mousePressed(MouseEvent e) {
        // Get the Main Frame.
        MainFrame mainFrame = GuiPackage.getInstance().getMainFrame();
        // Close any Main Menu that is open
        mainFrame.closeMenu();
        int selRow = tree.getRowForLocation(e.getX(), e.getY());
        if (tree.getPathForLocation(e.getX(), e.getY()) != null) {
            log.debug("mouse pressed, updating currentPath");
            currentPath = tree.getPathForLocation(e.getX(), e.getY());
        }
View Full Code Here

Examples of org.apache.jmeter.gui.MainFrame

        return false;
    }

    public void mousePressed(MouseEvent e) {
        // Get the Main Frame.
        MainFrame mainFrame = GuiPackage.getInstance().getMainFrame();
        // Close any Main Menu that is open
        mainFrame.closeMenu();
        int selRow = tree.getRowForLocation(e.getX(), e.getY());
        if (tree.getPathForLocation(e.getX(), e.getY()) != null) {
            log.debug("mouse pressed, updating currentPath");
            currentPath = tree.getPathForLocation(e.getX(), e.getY());
        }
View Full Code Here

Examples of org.apache.jmeter.gui.MainFrame

        JMeterTreeModel treeModel = new JMeterTreeModel();
        JMeterTreeListener treeLis = new JMeterTreeListener(treeModel);
        treeLis.setActionHandler(ActionRouter.getInstance());
        // NOTUSED: GuiPackage guiPack =
        GuiPackage.getInstance(treeLis, treeModel);
        MainFrame main = new MainFrame(ActionRouter.getInstance(), treeModel, treeLis);
        ComponentUtil.centerComponentInWindow(main, 80);
        main.setVisible(true);
        ActionRouter.getInstance().actionPerformed(new ActionEvent(main, 1, ActionNames.ADD_ALL));
        if (testFile != null) {
            FileInputStream reader = null;
            try {
                File f = new File(testFile);
View Full Code Here

Examples of org.apache.sling.reqanalyzer.impl.gui.MainFrame

        this.logFile = logFile;
    }

    void dispose() {
        if (this.frame != null) {
            MainFrame frame = this.frame;
            this.frame = null;
            AWTEvent e = new WindowEvent(frame, WindowEvent.WINDOW_CLOSING);
            Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(e);
        }
    }
View Full Code Here

Examples of org.apache.sling.reqanalyzer.impl.gui.MainFrame

    private synchronized void showWindow() throws ServletException, IOException {
        if (this.frame == null) {
            final File toAnalyze = this.getLogFileCopy();

            final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            MainFrame frame = new MainFrame(toAnalyze, Integer.MAX_VALUE, screenSize);

            // exit the application if the main frame is closed
            frame.addWindowListener(new WindowAdapter() {
                @Override
                public void windowClosing(WindowEvent e) {
                    // remove the tmp file we showed
                    if (toAnalyze.exists()) {
                        toAnalyze.delete();
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.