本文整理汇总了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);
}
示例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);
}
}
示例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();
}
}
示例4: getMainView
import org.jdesktop.application.FrameView; //导入依赖的package包/类
public FrameView getMainView() {
if(this.mainView == null) {
this.mainView = new FrameView(this);
}
return this.mainView;
}
示例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);
}
示例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);
}