Examples of MainFrame


Examples of net.sourceforge.squirrel_sql.client.gui.mainframe.MainFrame

      }

      JFileChooser chooser = getFileChooser();

      SquirrelPreferences prefs = _sqlPanelAPI.getSession().getApplication().getSquirrelPreferences();
      MainFrame frame = _sqlPanelAPI.getSession().getApplication().getMainFrame();

      for (; ;)
      {
         if (null == _toSaveTo)
         {
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.gui.mainframe.MainFrame

                } else {
                    // table doesn't exist in source db
                }
                   
            }
            final MainFrame frame = sourceSession.getApplication().getMainFrame();
            if (colDifferences != null && colDifferences.size() > 0) {
                GUIUtils.processOnSwingEventThread(new Runnable() {
                    public void run() {
                        ColumnDiffDialog dialog = new ColumnDiffDialog(frame, false);                
                        dialog.setColumnDifferences(colDifferences);
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.gui.mainframe.MainFrame

    setupFromPreferences();
  }

  private void createMainFrame()
  {
    _mainFrame = new MainFrame(_app);
      GUIUtils.setMainFrame(_mainFrame);
   }
View Full Code Here

Examples of oop13.space.views.MainFrame

public class Main {
 
  public static void main(String[] args) {
    Model model = new Model();
    MainMenuController c = new MainMenuController(model);
    MainFrame mainFrame = new MainFrame();
    c.setView(mainFrame);
    mainFrame.setVisible(true);
  }
View Full Code Here

Examples of open.dolphin.ui.MainFrame

        // WindowSupport を生成する この時点で Frame,WindowMenu を持つMenuBar が生成されている
        String title = ClientContext.getFrameTitle(windowTitle);
        // System.out.println(title);
        windowSupport = WindowSupport.create(title);
        MainFrame myFrame = windowSupport.getFrame();    // MainWindow の JFrame
        JMenuBar myMenuBar = windowSupport.getMenuBar()// MainWindow の JMenuBar

        // Windowにこのクラス固有の設定をする
        Point loc = new Point(defaultX, defaultY);
        Dimension size = new Dimension(defaultWidth, defaultHeight);
        myFrame.addWindowListener(new WindowAdapter() {
            @Override
            public void windowClosing(WindowEvent e) {
                processExit();
            }
            //@Override
            //public void windowActivated(WindowEvent e) {
            //    int index = tabbedPane.getSelectedIndex();
            //    MainComponent plugin = (MainComponent) providers.get(String.valueOf(index));
            //    plugin.enter();
            //}
        });
        ComponentMemory cm = new ComponentMemory(myFrame, loc, size, this);
        cm.setToPreferenceBounds();

        // BlockGlass を設定する
        blockGlass = new BlockGlass();
        blockGlass.setSize(myFrame.getSize());
        myFrame.setGlassPane(blockGlass);

        // mainWindowのメニューを生成しメニューバーに追加する
        mediator = new Mediator(this);
        MenuFactory appMenu = new MenuFactory();
        appMenu.setMenuSupports(mediator, null);
        appMenu.build(myMenuBar);
        mediator.registerActions(appMenu.getActionMap());

        // mainWindowのコンテントGUIを生成しFrameに追加する
        tabbedPane = new PNSTabbedPane();
        tabbedPane.setButtonVgap(4);
        tabbedPane.getButtonPanel().setBackgroundColor(Color.BLACK, 0f, 0.1f);
       
        MainFrame.MainPanel mainPanel = myFrame.getMainPanel();
        mainPanel.setLayout(new BorderLayout(0,0));
        mainPanel.add(tabbedPane, BorderLayout.CENTER);
       
        // MainComponent では,MainFrame の CommandPanel, StatusPanel は使わない
        // MainComponentPanel で自前で用意する
        myFrame.removeCommandPanel();
        myFrame.removeStatusPanel();

        // タブペインに格納する Plugin をロードする
        MainComponent[] plugin = new MainComponent[3];
        plugin[0] = new WatingListImpl();
        plugin[1] = new PatientSearchImpl();
View Full Code Here

Examples of org.apache.harmony.jretools.policytool.view.MainFrame

     */
    public static void main( final String[] arguments ) {

        if ( processArguments( arguments ) ) {
            if ( policyFileName == null )
                new MainFrame().setVisible( true );
            else
                new MainFrame( policyFileName ).setVisible( true );
        }

    }
View Full Code Here

Examples of org.apache.harmony.tools.policytool.view.MainFrame

     */
    public static void main( final String[] arguments ) {

        if ( processArguments( arguments ) ) {
            if ( policyFileName == null )
                new MainFrame().setVisible( true );
            else
                new MainFrame( policyFileName ).setVisible( true );
        }

    }
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.jmeter.gui.MainFrame

    }

    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)
        {
            currentPath = tree.getPathForLocation(e.getX(), e.getY());
        }
View Full Code Here

Examples of org.apache.jmeter.gui.MainFrame

   *@param e  Description of Parameter
   ***************************************/
  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)
    {
      currentPath = tree.getPathForLocation(e.getX(), e.getY());
    }
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.