本文整理了Java中nu.zoom.swing.desktop.Workbench.createWorkbenchFrame()
方法的一些代码示例,展示了Workbench.createWorkbenchFrame()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Workbench.createWorkbenchFrame()
方法的具体详情如下:
包路径:nu.zoom.swing.desktop.Workbench
类名称:Workbench
方法名:createWorkbenchFrame
暂无
代码示例来源:origin: nu.zoom.svansprogram/svansprogram-gui-rules
@Override
protected WorkbenchFrame createFrame() {
try {
String title = getFrameTitle();
StyleRulesPlugInImpl.this.managerFrame = workbench
.createWorkbenchFrame("StyleRulesColoring",
getStyleRulesManagerComponent(), null, true,
true);
StyleRulesPlugInImpl.this.managerFrame.setTitle(title);
return StyleRulesPlugInImpl.this.managerFrame;
} catch (ResourceNotFoundException ex) {
errorReporter.reportError(ex);
return null;
}
}
代码示例来源:origin: nu.zoom/eon2
@Override
protected WorkbenchFrame createFrame() {
WorkbenchFrame frame = workbench.createWorkbenchFrame(
"findadservers",
new FindServersPanel(messages, operationManager, workbench, resolver),
enabled,
enabled);
frame.setTitle(messages.getMessage("connection.dns.menu"));
return frame;
}
}
代码示例来源:origin: nu.zoom.svansprogram/svansprogram-about
@Override
protected WorkbenchFrame createFrame() {
WorkbenchFrame frame = workbench.createWorkbenchFrame(
FRAME_PREFERENCE_KEY, aboutComponent, null, true, true);
try {
frame.setTitle(messages
.getMessage("nu.zoom.catonine.about.menuitem"));
} catch (ResourceNotFoundException ex) {
errorReporter.reportError(ex);
}
return frame;
}
代码示例来源:origin: nu.zoom/svansprogram
title = messages.getMessage("nu.zoom.catonine.configurations");
WorkbenchFrame managerFrame = workbench.createWorkbenchFrame(
"StyleRulesColoring", newStyleRulesManagerComponent, true, true);
managerFrame.setTitle(title);
代码示例来源:origin: nu.zoom/svansprogram
@Override
protected WorkbenchFrame createFrame() {
AboutComponent c = new AboutComponent();
c.init(messages);
WorkbenchFrame frame = workbench.createWorkbenchFrame(
"catonine.about", c, true, true);
frame.setTitle(messages
.getMessage("nu.zoom.catonine.about.menuitem"));
return frame ;
}
代码示例来源:origin: nu.zoom/portunis
WorkbenchFrame getWorkbenchFrame() throws KeyStoreException {
String title = (wrapper.getFile() == null) ? messages.getMessage("keystore.noname") : wrapper.getFile().getAbsolutePath();
String prefsKey = "keystore." + Integer.toHexString(title.hashCode());
JComponent comp = getFrameContent();
frameMainPanel.add(comp, BorderLayout.CENTER);
JMenuBar menuBar = getFrameMenubar();
WorkbenchFrame frame = workbench.createWorkbenchFrame(prefsKey,
frameMainPanel, menuBar, true, true);
frame.setTitle(title);
frame.setFrameIcon(Utils.getIconFromMessages(messages,
"keystore.load.loaded.icon"));
frame.setVisible(true);
wrapper.getKeyStore().addKeyStoreListener(this);
return frame;
}
代码示例来源:origin: nu.zoom/eon2
WorkbenchFrame frame = workbench.createWorkbenchFrame(this.getClass().getName(), mainPanel, true, true);
frame.setTitle(messages.getMessage("about.menuitem"));
frame.setFrameIcon(MessagesUtil.getIconFromMessages(messages,
代码示例来源:origin: nu.zoom/svansprogram
private synchronized void editStyleRules(StyleRules styleRules) {
WorkbenchFrame editFrame = editorFrames.get(styleRules);
if (editFrame != null) {
if (!editFrame.isVisible()) {
editFrame.setVisible(true);
}
editFrame.moveToFront();
} else {
try {
ConfigPanel configPanel = new ConfigPanel(messages, styleRules);
editFrame = workbench.createWorkbenchFrame("catonine.configframe",
configPanel, true, true);
String title = messages.format(
"nu.zoom.catonine.configurations.edit.frame", styleRules.getName());
editFrame.setTitle(title);
} catch (ResourceNotFoundException resourceNotFoundException) {
// TODO: add logging
}
editFrame.addFrameListener(this);
editorFrames.put(styleRules, editFrame);
editFrame.setVisible(true);
}
}
代码示例来源:origin: nu.zoom/svansprogram
log.trace("Creating workbench frame");
final String prefskey = "Svansprogram.file." + file.getName();
WorkbenchFrame frame = workbench.createWorkbenchFrame(
prefskey, pane, true, true);
frame.addFrameListener(new TailerStopper(pane));
代码示例来源:origin: nu.zoom/eon2
public void actionPerformed(ActionEvent e) {
ConnectionEditor editor = connectionFactory.getEditor();
if (editor == null) {
workbench.getErrorReporter().reportError(
messages.getMessage("connection.error.noeditor"));
} else {
JComponent editorComponent = editor.editConnection(connection);
if (editorComponent == null) {
workbench.getErrorReporter().reportError(
messages.getMessage("connection.error.noeditor"));
} else {
WorkbenchFrame frame = workbench.createWorkbenchFrame(this
.getClass().getName(), editorComponent, true, true);
frame.setTitle(messages.getMessage("connection.edit.title"));
frame.setVisible(true);
}
}
}
代码示例来源:origin: nu.zoom.svansprogram/svansprogram-gui
case Detached:
log.debug("Preferences say to force frame to detach");
frame = workbench.createWorkbenchFrame(prefskey, pane, null,
true, true, true);
break;
case Attached:
log.debug("Preferences say to force frame to attach");
frame = workbench.createWorkbenchFrame(prefskey, pane, null,
true, true, false);
break;
default:
log.debug("Preferences say to use remembered/default attach/detach mode");
frame = workbench.createWorkbenchFrame(prefskey, pane, null,
true, true);
break;
代码示例来源:origin: nu.zoom.svansprogram/svansprogram-gui-rules
synchronized void editStyleRules(final StyleRules styleRules) {
WorkbenchFrame editFrame = editorFrames.get(styleRules);
if (editFrame != null) {
if (!editFrame.isVisible()) {
editFrame.setVisible(true);
}
editFrame.moveToFront();
} else {
try {
configPanel = new ConfigPanel(workbench, fontChooserFactory,
messages, errorReporter, styleRules,
fontChooserFactory.getDefaultFont());
editFrame = workbench.createWorkbenchFrame(
"catonine.configframe", configPanel, null, true, true);
String title = messages.format(
"nu.zoom.catonine.configurations.edit.frame",
styleRules.getName());
editFrame.setTitle(title);
} catch (ResourceNotFoundException resourceNotFoundException) {
// TODO: add logging
}
editFrame.addFrameListener(this);
editorFrames.put(styleRules, editFrame);
editFrame.setVisible(true);
}
}
代码示例来源:origin: nu.zoom/eon2
public void actionPerformed(ActionEvent e) {
ConnectionEditor editor = connectionFactory.getEditor();
if (editor == null) {
workbench.getErrorReporter().reportError(
messages.getMessage("connection.error.noeditor"));
} else {
JComponent editorComponent = editor.createNewConnectionEditor();
if (editorComponent == null) {
workbench.getErrorReporter().reportError(
messages.getMessage("connection.error.noeditor"));
} else {
WorkbenchFrame frame = workbench.createWorkbenchFrame(this
.getClass().getName(), editorComponent, true, true);
frame.setTitle(messages.getMessage("connection.add.title"));
if (icon != null) {
frame.setFrameIcon(icon);
}
editor.setOwnerFrame(frame);
frame.setVisible(true);
}
}
}
}
代码示例来源:origin: nu.zoom/eon2
@Override
public void run() {
DirectoryTree tree = new DirectoryTree(operationManager,
workbench, messages, iCtx, connectionInformation,
popupItems);
eventRegistry.addEventListener(connectionInformation.getGUID(),
tree);
AllAttributesComponent attrs = new AllAttributesComponent(
workbench, messages, attributeEditorFactory, iCtx,
connectionInformation);
eventRegistry.addEventListener(connectionInformation.getGUID(),
attrs);
DirectoryTreeAndAttributesComponent comp = new DirectoryTreeAndAttributesComponent(
tree, attrs, operationManager, workbench, messages,
preferences, connectionInformation.getGUID());
WorkbenchFrame frame = workbench.createWorkbenchFrame(
"nu.zoom.eon2.connection.frame." + connectionInformation.getGUID(), comp, true,
true);
frame.setTitle(connectionInformation.getDescription());
frame.addFrameListener(comp);
frame.setVisible(true);
// Swing splitpane dividers can not be positioned until _after_
// the component is visible
comp.setDividerLocation();
}
});
内容来源于网络,如有侵权,请联系作者删除!