本文整理了Java中javax.swing.JDialog.setName()
方法的一些代码示例,展示了JDialog.setName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JDialog.setName()
方法的具体详情如下:
包路径:javax.swing.JDialog
类名称:JDialog
方法名:setName
暂无
代码示例来源:origin: senbox-org/snap-desktop
private void setComponentName(JDialog dialog) {
if (this.dialog.getName() == null && dialog.getTitle() != null) {
dialog.setName(dialog.getTitle().toLowerCase().replaceAll(" ", "_"));
}
}
代码示例来源:origin: otros-systems/otroslogviewer
public ReturnValue showOpenDialog(Component parent, String title) {
JDialog dialog = createDialog(parent);
dialog.setName("VfsBrowserDialog");
dialog.setTitle(title);
if (size == null) {
dialog.pack();
} else {
dialog.setSize(size);
}
dialog.setVisible(true);
size = dialog.getSize();
return returnValue;
}
代码示例来源:origin: zolyfarkas/spf4j
private void fromTextMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_fromTextMenuItemActionPerformed
final JDialog frame = new JDialog(this, "Enter json stack samples", true);
frame.setName("fromTextDialog");
frame.setJMenuBar(createContextMenuBar());
TextEntryPanel panel = new TextEntryPanel((samples) -> {
JInternalFrame f = new StackDumpJInternalFrame(samples, "text entry", true);
frame.setVisible(false);
f.setVisible(true);
desktopPane.add(f, javax.swing.JLayeredPane.DEFAULT_LAYER);
}, (ex) -> {
JOptionPane.showMessageDialog(frame, "Invalid input " + ex);
frame.setVisible(false);
frame.dispose();
});
frame.getContentPane().add(panel);
frame.pack();
frame.setVisible(true);
}//GEN-LAST:event_fromTextMenuItemActionPerformed
代码示例来源:origin: org.jodd/jodd-wot
spyDialog.setName("SwingSpy");
spyDialog.setTitle("SwingSpy");
spyDialog.setModal(false);
代码示例来源:origin: Audiveris/audiveris
dialog.setName("aboutDialog");
dialog.add(panel, BorderLayout.CENTER);
代码示例来源:origin: org.fosstrak.hal/hal-impl-sim
removeTagsDialog.setName(simulator.getGuiText().getString("RemoveTagsDialogTitle"));
removeTagsDialog.setTitle(simulator.getGuiText().getString("RemoveTagsDialogTitle"));
removeTagsDialog.setSize(simulator.getProperty("DialogWindowWidth"), simulator.getProperty("DialogWindowHeight"));
代码示例来源:origin: org.fosstrak.hal/hal-impl-sim
removeTagDialog.setName(simulator.getGuiText().getString("RemoveTagDialogTitle"));
removeTagDialog.setTitle(simulator.getGuiText().getString("RemoveTagDialogTitle"));
removeTagDialog.setSize(simulator.getProperty("DialogWindowWidth"), simulator.getProperty("DialogWindowHeight"));
代码示例来源:origin: org.netbeans.api/org-netbeans-modules-vmd-io
popupWindow.setName( POPUP_NAME );
popupWindow.setUndecorated(undecorated);
popupWindow.getRootPane().getInputMap( JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT ).put( ESC_KEY_STROKE, CLOSE_KEY );
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-beans
popupWindow.setName( POPUP_NAME );
popupWindow.setUndecorated(true);
popupWindow.getRootPane().getInputMap( JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT ).put( ESC_KEY_STROKE, CLOSE_KEY );
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-php-editor
popupWindow.setName(POPUP_NAME);
popupWindow.setUndecorated(undecorated);
popupWindow.getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(ESC_KEY_STROKE, CLOSE_KEY);
代码示例来源:origin: Audiveris/audiveris
final JDialog dialog = new JDialog(OMR.gui.getFrame(), frameTitle, true); // Modal flag
dialog.setContentPane(optionPane);
dialog.setName("scoreParams");
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-gsf
popupWindow.setName( POPUP_NAME );
popupWindow.setUndecorated(undecorated);
popupWindow.getRootPane().getInputMap( JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT ).put( ESC_KEY_STROKE, CLOSE_KEY );
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-utils
popupWindow.setName(POPUP_NAME);
popupWindow.setUndecorated(undecorated);
popupWindow.getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(ESC_KEY_STROKE, CLOSE_KEY);
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-utils-ui
popupWindow.setName(POPUP_NAME);
popupWindow.setUndecorated(undecorated);
popupWindow.getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(ESC_KEY_STROKE, CLOSE_KEY);
代码示例来源:origin: lbalazscs/Pixelitor
/**
* Builds the dialog without showing it.
*/
public JDialog build() {
assert content != null : "no content";
setupDefaults();
JDialog d = createDialog();
d.setTitle(title);
d.setModal(modal);
if (name != null) {
d.setName(name);
}
addContent(d);
addButtons(d);
if (reconfigureGlobalKeyWatch) {
GlobalEventWatch.setDialogActive(true);
}
Runnable cancelTask = () -> dialogCancelled(d);
GUIUtils.setupCancelWhenTheDialogIsClosed(d, cancelTask);
GUIUtils.setupCancelWhenEscIsPressed(d, cancelTask);
d.pack();
return d;
}
代码示例来源:origin: org.jdesktop.bsaf/bsaf
final JDialog dialog = optionPane.createDialog((Component) findRootPaneContainer(dialogOwner), dialogTitle);
dialog.setModal(true);
dialog.setName("BlockingDialog");
dialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
WindowListener dialogCloseListener = new WindowAdapter() {
代码示例来源:origin: net.java.dev.appframework/appframework
final JDialog dialog = optionPane.createDialog(dialogOwner, dialogTitle);
dialog.setModal(true);
dialog.setName("BlockingDialog");
dialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
WindowListener dialogCloseListener = new WindowAdapter() {
代码示例来源:origin: Audiveris/audiveris
final JDialog dialog = new JDialog(OMR.gui.getFrame(), frameTitle, true); // Modal flag
dialog.setContentPane(optionPane);
dialog.setName("sheetParams");
代码示例来源:origin: bcdev/beam
dialog.getJDialog().setName(titlePrefix + "_" + roleLabel);
dialog.setName(placemark.getName());
dialog.setLabel(placemark.getLabel());
代码示例来源:origin: senbox-org/snap-desktop
dialog.getJDialog().setName(titlePrefix + "_" + roleLabel);
dialog.setName(placemark.getName());
dialog.setLabel(placemark.getLabel());
内容来源于网络,如有侵权,请联系作者删除!