当前位置: 首页>>代码示例>>Java>>正文


Java FrameView类代码示例

本文整理汇总了Java中org.jdesktop.application.FrameView的典型用法代码示例。如果您正苦于以下问题:Java FrameView类的具体用法?Java FrameView怎么用?Java FrameView使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


FrameView类属于org.jdesktop.application包,在下文中一共展示了FrameView类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: mapButtonMouseClicked

import org.jdesktop.application.FrameView; //导入依赖的package包/类
private void mapButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton2MouseClicked
    // TODO add your handling code here:
    //ApiMapView ap = new ApiMapView((SingleFrameApplication) this.getApplication());
	FrameView ap = new FrameView(this.getApplication());
	//ApiMap ap = new ApiMap();
	ap.setComponent(new ApiMap());
    this.getApplication().show(ap);

}
 
开发者ID:shoaib-a-khan,项目名称:iConA,代码行数:10,代码来源:ConverterView.java

示例2: WelcomeInternalFrame

import org.jdesktop.application.FrameView; //导入依赖的package包/类
/** Creates new form WelcomeInternalFrame
 * @param fv 
 */
public WelcomeInternalFrame(FrameView fv) {

    this.fv = fv;
    appInfoProperties = new Properties();
    InputStream in = null;
    try {
        //
        // load properties file
        //
        //
        // get Application information
        //
        in = getClass().getResourceAsStream(Globals.APPINFO_PROPERTIES_PATH);
        appInfoProperties.load(in);
        in.close();
        initComponents();
        // set version
        String versionString = "";
        for (String part : Globals.versionStringParts) {
            versionString += appInfoProperties.getProperty(part);
        }
        versionString += "-build" + appInfoProperties.getProperty("program.BUILDNUM");
        versionString += " (" + appInfoProperties.getProperty("program.BUILDDATE") + ")";
        versionLabel.setText(versionLabel.getText() + " " + versionString);
    } catch (IOException ex) {
        Logger.getLogger(WelcomeInternalFrame.class.getName()).log(Level.SEVERE, null, ex);
    }
}
 
开发者ID:IARC-CSU,项目名称:CanReg5,代码行数:32,代码来源:WelcomeInternalFrame.java

示例3: LoginInternalFrame

import org.jdesktop.application.FrameView; //导入依赖的package包/类
/** Creates new form LoginInternalFrame
 * @param fv 
 * @param dtp
 */
public LoginInternalFrame(FrameView fv, JDesktopPane dtp) {
    localSettings = CanRegClientApp.getApplication().getLocalSettings();
    this.desktopPane = dtp;
    this.fv = fv;
    propertyChangeSupport = new PropertyChangeSupport(this);
    initComponents();
    loadDefaultValues();
    if (autoStartCheckBox.isSelected()) {
        Task task = launchCanRegServerAction();
        task.execute();
    }
}
 
开发者ID:IARC-CSU,项目名称:CanReg5,代码行数:17,代码来源:LoginInternalFrame.java

示例4: getMainView

import org.jdesktop.application.FrameView; //导入依赖的package包/类
public FrameView getMainView() {
    if(this.mainView == null) {
        this.mainView = new FrameView(this);
    }

    return this.mainView;
}
 
开发者ID:Jakegogo,项目名称:concurrent,代码行数:8,代码来源:CustomFrameApplication.java

示例5: show

import org.jdesktop.application.FrameView; //导入依赖的package包/类
public void show(View view) {
    if(this.mainView == null && view instanceof FrameView) {
        this.mainView = (FrameView)view;
    }

    RootPaneContainer c = (RootPaneContainer)view.getRootPane().getParent();
    this.initRootPaneContainer(c);

    this.postInit();

    ((Window)c).setVisible(true);
}
 
开发者ID:Jakegogo,项目名称:concurrent,代码行数:13,代码来源:CustomFrameApplication.java

示例6: setupMainFrame

import org.jdesktop.application.FrameView; //导入依赖的package包/类
/**
    * Setup the main frame. To be called from the application's setup().
    */
   protected void setupMainFrame()
   {
      FrameView mainView = getMainView();

      final JFrame mainFrame = mainView.getFrame();
      mainFrame.setMinimumSize(new Dimension(800, 600));

      final String resourceDir = getClass().getPackage().getName().replace('.', '/');
      
      String fileName = resourceDir + "/main-menubar.xml";
      InputStream in = getClass().getClassLoader().getResourceAsStream(fileName);
      Validate.notNull(in, "menubar configuration not found: " + fileName);
      mainView.setMenuBar(new XmlMenuFactory(I18n.BUNDLE).createMenuBar(in));

//    fileName = resourceDir + "/main-toolbar.xml";
//    in = getClass().getClassLoader().getResourceAsStream(fileName);
//    Validate.notNull(in, "toolbar configuration not found: " + fileName);
//    mainView.setToolBar(new XmlToolBarFactory().createToolBar(in));

      statusBar.add(Box.createHorizontalStrut(2), 0, false);
      statusBar.add(statusMessagePanel, 100, true);
      mainView.setStatusBar(statusBar);

      clearStatusTimer = new Timer(5000, clearStatusHandler);
      clearStatusTimer.setRepeats(false);

      mainFrame.add(tabbedPane);
   }
 
开发者ID:selfbus,项目名称:development-tools-incubation,代码行数:32,代码来源:AbstractProdEdit.java


注:本文中的org.jdesktop.application.FrameView类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。