本文整理了Java中nu.zoom.swing.desktop.Workbench.addWorkBenchListener()
方法的一些代码示例,展示了Workbench.addWorkBenchListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Workbench.addWorkBenchListener()
方法的具体详情如下:
包路径:nu.zoom.swing.desktop.Workbench
类名称:Workbench
方法名:addWorkBenchListener
暂无
代码示例来源:origin: nu.zoom/svansprogram
@Override
public void initialize() throws Exception {
// Plug in initialization
workbench.addWorkBenchListener(this);
}
代码示例来源:origin: nu.zoom/eon2
@SuppressWarnings("unchecked")
@Override
public void initialize() throws Exception {
workbench.addWorkBenchListener(this);
}
代码示例来源:origin: nu.zoom.svansprogram/svansprogram-gui
@Override
public void initialize() throws Exception {
// Plug in initialization
workbench.addWorkBenchListener(this);
}
代码示例来源:origin: nu.zoom/portunis
@Override
public void initialize() throws Exception {
workbench.addWorkBenchListener(this);
}
代码示例来源:origin: nu.zoom.svansprogram/svansprogram-cursorswitcher
public DelayedCursorSwitcherImpl(final int delayTime, Workbench workbench) {
this.delayTime = delayTime;
workbench.addWorkBenchListener(this);
}
代码示例来源:origin: nu.zoom/svansprogram
@Override
public void initialize() throws Exception {
workbench.addWorkBenchListener(this);
}
代码示例来源:origin: nu.zoom.svansprogram/svansprogram-about
@Override
public void initialize() throws Exception {
workbench.addWorkBenchListener(this);
}
代码示例来源:origin: nu.zoom.svansprogram/svansprogram-gui-rules
@Override
public void initialize() throws Exception {
workbench.addWorkBenchListener(this);
}
代码示例来源:origin: nu.zoom/svansprogram
public void initialize() throws Exception {
workbench.addWorkBenchListener(this);
}
代码示例来源:origin: nu.zoom/eon2
public void initialize() throws Exception {
workbench.addWorkBenchListener(this);
}
代码示例来源:origin: nu.zoom/svansprogram
@Override
public void initialize() throws Exception {
log.trace("Registering as a workbench listener");
workbench.addWorkBenchListener(this);
}
代码示例来源:origin: nu.zoom.svansprogram/svansprogram-gui
@Override
public void initialize() throws Exception {
log.trace("Registering as a workbench listener");
workbench.addWorkBenchListener(this);
}
代码示例来源:origin: nu.zoom.desktop/filechooser
/**
* Instantiate a new menu
*
* @param preferences
* @param workbench
* @param preferencesKey
* @param menuName
*/
StringMenuImpl(Preferences preferences, Workbench workbench,
String preferencesKey) {
this.preferences = preferences;
this.preferencesKey = preferencesKey;
log.trace("New String menu is registering as workbench listener");
workbench.addWorkBenchListener(this);
}
代码示例来源:origin: nu.zoom/filechooser
/**
* Instantiate a new menu
*
* @param preferences
* @param workbench
* @param preferencesKey
* @param menuName
* @param icon
*/
StringMenuImpl(Preferences preferences, Workbench workbench,
Messages messages, String preferencesKey, String menuName, Icon icon) {
this.preferences = preferences;
this.preferencesKey = preferencesKey;
this.menuName = menuName;
this.icon = icon;
this.messages = messages;
log.trace("New String menu is registering as workbench listener");
workbench.addWorkBenchListener(this);
}
代码示例来源: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/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/eon2
workbench = (Workbench) registry.getService(
"nu.zoom.swing.desktop.Workbench", Workbench.class);
workbench.addWorkBenchListener(this);
workbench.start();
} catch (ApplicationRuntimeException exc) {
内容来源于网络,如有侵权,请联系作者删除!