本文整理了Java中javax.swing.JDialog.getTitle()
方法的一些代码示例,展示了JDialog.getTitle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JDialog.getTitle()
方法的具体详情如下:
包路径:javax.swing.JDialog
类名称:JDialog
方法名:getTitle
暂无
代码示例来源:origin: groovy/groovy-core
public void actionPerformed(ActionEvent ae) {
lastAction = FIND_ACTION_COMMAND;
findReplaceCount = 0;
if (FIND_REPLACE_DIALOG.isVisible() &&
FIND_REPLACE_DIALOG.getTitle().equals(FIND_ACTION_COMMAND)) {
}
int pos = textComponent.getSelectedText() == null ?
textComponent.getCaretPosition() :
textComponent.getSelectionStart();
boolean reverse = (ae.getModifiers() & ActionEvent.SHIFT_MASK) != 0;
pos = findNext(reverse, pos);
if (pos > -1) {
String pattern = (String) FIND_FIELD.getSelectedItem();
textComponent.select(pos, pos + pattern.length());
findReplaceCount = 1;
}
setListStrings();
fireTextEvent();
}
}
代码示例来源:origin: geotools/geotools
case -TITLE:
value = window.getTitle();
return;
代码示例来源:origin: protegeproject/protege
/**
* Returns the current title of the generated dialog.
* @return The String-based title of the generated dialog.
*/
public String getTitle() {
return wizardDialog.getTitle();
}
代码示例来源:origin: org.bidib.org.oxbow/swingbits
/**
* Returns the title of the dialog
*
* @return
*/
public String getTitle() {
return dlg.getTitle();
}
代码示例来源:origin: org.protege/protege-editor-core-application
/**
* Returns the current title of the generated dialog.
* @return The String-based title of the generated dialog.
*/
public String getTitle() {
return wizardDialog.getTitle();
}
代码示例来源:origin: senbox-org/snap-desktop
/**
* @return The dialog's title.
*/
public String getTitle() {
return dialog.getTitle();
}
代码示例来源:origin: bcdev/beam
/**
* @return The dialog's title.
*/
public String getTitle() {
return dialog.getTitle();
}
代码示例来源:origin: edu.stanford.protege/org.protege.editor.core.application
/**
* Returns the current title of the generated dialog.
* @return The String-based title of the generated dialog.
*/
public String getTitle() {
return wizardDialog.getTitle();
}
代码示例来源:origin: eugener/oxbow
/**
* Returns the title of the dialog
* @return
*/
public String getTitle() {
return dlg.getTitle();
}
代码示例来源:origin: com.google.code.validationframework/validationframework-swing
/**
* @see AbstractComponentProperty#getPropertyValueFromComponent()
*/
@Override
protected String getPropertyValueFromComponent() {
return component.getTitle();
}
代码示例来源:origin: org.n52.wps/52n-wps-install-wizard
/**
* Returns the current title of the generated dialog.
* @return The String-based title of the generated dialog.
*/
public String getTitle() {
return wizardDialog.getTitle();
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/skinlf
/**
* Gets the Title attribute of the SkinWindowWindow object
*
* @return The Title value
*/
public String getTitle() {
String title = "";
if (frame != null)
title = frame.getTitle();
else if (dialog != null) title = dialog.getTitle();
return title;
}
代码示例来源: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: GoldenGnu/jeveassets
@Override
public void windowClosing(final WindowEvent e) {
LOG.info("Hiding: {} Dialog (close)", dialog.getTitle());
setVisible(false);
}
代码示例来源:origin: khuxtable/seaglass
/**
* Returns the String to display as the title.
*
* @return the title String.
*/
private String getTitle() {
if (rootParent instanceof JFrame) {
return ((JFrame) rootParent).getTitle();
} else if (rootParent instanceof JDialog) {
return ((JDialog) rootParent).getTitle();
}
return null;
}
代码示例来源:origin: otros-systems/otroslogviewer
@Override
protected boolean isMatching(JDialog component) {
return component.getTitle().equals("Choose log importer and port");
}
}).using(robot);
代码示例来源:origin: robotframework/SwingLibrary
@Override
public boolean checkComponent(Component comp) {
if (!(comp instanceof JDialog))
return false;
return eq(title, comp)
|| ObjectUtils.nullSafeEquals(
((JDialog) comp).getTitle(), title);
}
代码示例来源:origin: senbox-org/snap-desktop
/**
* Shows an error dialog on top of this dialog.
*
* @param errorMessage The message.
*/
public void showErrorDialog(String errorMessage) {
showErrorDialog(errorMessage, getJDialog().getTitle());
}
代码示例来源:origin: senbox-org/snap-desktop
/**
* Shows a warning dialog on top of this dialog.
*
* @param warningMessage The message.
*/
public void showWarningDialog(String warningMessage) {
showWarningDialog(warningMessage, getJDialog().getTitle());
}
代码示例来源:origin: senbox-org/snap-desktop
/**
* Shows an information dialog on top of this dialog.
*
* @param infoMessage The message.
*/
public void showInformationDialog(String infoMessage) {
showInformationDialog(infoMessage, getJDialog().getTitle());
}
内容来源于网络,如有侵权,请联系作者删除!