本文整理了Java中javax.swing.JButton.getTopLevelAncestor()
方法的一些代码示例,展示了JButton.getTopLevelAncestor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JButton.getTopLevelAncestor()
方法的具体详情如下:
包路径:javax.swing.JButton
类名称:JButton
方法名:getTopLevelAncestor
暂无
代码示例来源:origin: com.jidesoft/jide-oss
public void actionPerformed(ActionEvent e) {
JButton defaultButton = (JButton) e.getSource();
toggleDetailsArea();
Container top = defaultButton.getTopLevelAncestor();
if (top instanceof Window) {
((Window) top).pack();
}
}
});
代码示例来源:origin: jpcsp/jpcsp
private void tmpPathBrowseButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tmpPathBrowseButtonActionPerformed
java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("jpcsp/languages/jpcsp"); // NOI18N
FolderChooser folderChooser = new FolderChooser(bundle.getString("SettingsGUI.strSelectTMPPath.text"));
int result = folderChooser.showSaveDialog(tmpPathBrowseButton.getTopLevelAncestor());
if (result == FolderChooser.APPROVE_OPTION) {
tmppath.setText(folderChooser.getSelectedFile().getPath());
}
}//GEN-LAST:event_tmpPathBrowseButtonActionPerformed
代码示例来源:origin: com.github.insubstantial/substance
.isInFocusedWindow(jButton.getTopLevelAncestor());
RootPaneDefaultButtonTracker tracker = trackers.get(jButton);
if (!hasFocus) {
代码示例来源:origin: org.java.net.substance/substance
.isInFocusedWindow(jButton.getTopLevelAncestor());
RootPaneDefaultButtonTracker tracker = trackers.get(jButton);
if (!hasFocus) {
代码示例来源:origin: RPTools/maptool
public void actionPerformed(ActionEvent e) {
FolderChooser folderChooser = new FolderChooser();
folderChooser.setCurrentDirectory(MapTool.getFrame().getLoadFileChooser().getCurrentDirectory());
folderChooser.setRecentListVisible(false);
folderChooser.setFileHidingEnabled(true);
folderChooser.setDialogTitle(I18N.getText("msg.title.loadAssetTree"));
int result = folderChooser.showOpenDialog(button.getTopLevelAncestor());
if (result == FolderChooser.APPROVE_OPTION) {
File root = folderChooser.getSelectedFolder();
getBrowseTextField().setText(root.getAbsolutePath());
}
}
});
代码示例来源:origin: com.github.insubstantial/substance
.getTopLevelAncestor()))
return;
if (!isPulsating(jButton)) {
} else {
if (!RootPaneDefaultButtonTracker.isInFocusedWindow(jButton
.getTopLevelAncestor())) {
代码示例来源:origin: org.java.net.substance/substance
.getTopLevelAncestor()))
return;
if (!isPulsating(jButton)) {
} else {
if (!RootPaneDefaultButtonTracker.isInFocusedWindow(jButton
.getTopLevelAncestor())) {
代码示例来源:origin: com.github.arnabk/pgslookandfeel
if (b.isDefaultButton() && PgsUtils.hasFocus(b.getTopLevelAncestor())) {
JButton defaultButton;
if (defaultButtonRef == null) {
内容来源于网络,如有侵权,请联系作者删除!