本文整理了Java中nu.zoom.swing.desktop.Workbench.start()
方法的一些代码示例,展示了Workbench.start()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Workbench.start()
方法的具体详情如下:
包路径:nu.zoom.swing.desktop.Workbench
类名称:Workbench
方法名:start
暂无
代码示例来源:origin: nu.zoom/svansprogram
private void run() {
log.trace("Starting application");
// Splashscreen
JFrame splashFrame = new JFrame("Svansprogram");
splashFrame.setUndecorated(true);
URL splashURL = this.getClass().getResource("/images/splash.png");
ImageIcon splashImageIcon = new ImageIcon(splashURL);
splashImageIcon = new ImageIcon(splashURL);
splashFrame.getContentPane().add(new JLabel(splashImageIcon));
splashFrame.pack();
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
splashFrame.setLocation(screenSize.width / 2 - splashFrame.getWidth()
/ 2, screenSize.height / 2 - splashFrame.getHeight() / 2);
log.trace("Showing splash screen");
splashFrame.setVisible(true);
log.trace("Building Gaderian registry");
Registry registry = RegistryBuilder.constructDefaultRegistry();
workbench = (Workbench) registry.getService(
"nu.zoom.swing.desktop.Workbench", Workbench.class);
workbench.addWorkBenchListener(this);
log.trace("Starting workbench");
workbench.start();
splashFrame.dispose();
}
代码示例来源:origin: nu.zoom/portunis
private void run() {
// Splashscreen
JFrame splashFrame = new JFrame("Portunis");
splashFrame.setUndecorated(true);
URL splashURL = getClass().getResource(
"/nu/zoom/swing/desktop/plugin/keystore/resources/splash.png");
ImageIcon splashImageIcon = new ImageIcon(splashURL);
splashImageIcon = new ImageIcon(splashURL);
splashFrame.getContentPane().add(new JLabel(splashImageIcon));
splashFrame.pack();
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
splashFrame.setLocation(screenSize.width / 2 - splashFrame.getWidth()
/ 2, screenSize.height / 2 - splashFrame.getHeight() / 2);
splashFrame.setVisible(true);
Registry registry = RegistryBuilder.constructDefaultRegistry();
workbench = (Workbench) registry.getService(
"nu.zoom.swing.desktop.Workbench", Workbench.class);
workbench.addWorkBenchListener(this);
workbench.start();
splashFrame.dispose();
}
代码示例来源:origin: nu.zoom/eon2
"nu.zoom.swing.desktop.Workbench", Workbench.class);
workbench.addWorkBenchListener(this);
workbench.start();
} catch (ApplicationRuntimeException exc) {
exc.printStackTrace();
内容来源于网络,如有侵权,请联系作者删除!