本文整理了Java中javax.swing.GroupLayout.replace()
方法的一些代码示例,展示了GroupLayout.replace()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GroupLayout.replace()
方法的具体详情如下:
包路径:javax.swing.GroupLayout
类名称:GroupLayout
方法名:replace
暂无
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-team-commons
private void switchHelper() {
JLabel temp = new JLabel();
GroupLayout layout = (GroupLayout)getLayout();
layout.replace(dummyCreateLabel, temp);
layout.replace(createNewButton, dummyCreateLabel);
layout.replace(temp, createNewButton);
if(attachLogFileButton != null) {
layout.replace(dummyAttachLabel, temp);
layout.replace(attachLogFileButton, dummyAttachLabel);
layout.replace(temp, attachLogFileButton);
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-team-commons
public void setContent (JComponent content) {
((GroupLayout) getLayout()).replace(this.content, content);
this.content = content;
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-team-commons
public void setContent (JComponent content) {
((GroupLayout) getLayout()).replace(this.content, content);
this.content = content;
}
代码示例来源:origin: AlexFalappa/nb-springboot
/**
* Fixes the boot version of the dependencies.
* <p>
* Does nothing if the panel has not been initialized.
*
* @param bootVersion
*/
public void fixBootVersion(String bootVersion) {
Objects.requireNonNull(bootVersion);
if (initialized) {
// substitute combo with label
javax.swing.GroupLayout layout = (javax.swing.GroupLayout) this.getLayout();
final JLabel label = new JLabel(bootVersion);
label.setFont(label.getFont().deriveFont(Font.BOLD));
layout.replace(cbBootVersion, label);
// adapt dependencies panel
pBootDependencies.adaptToBootVersion(bootVersion);
}
}
代码示例来源:origin: org.netbeans.api/org-netbeans-modules-bugtracking
/** Creates new form VcsAdvancedOptionsPanel */
public BugtrackingOptionsPanel(JComponent tasksComponent) {
initComponents();
((GroupLayout)getLayout()).replace(dummyTasksPanel, tasksComponent);
}
代码示例来源:origin: org.netbeans.api/org-netbeans-modules-bugtracking
public QuickSearchPanel(FileObject referenceFile, RepositoryFilter filter) {
initComponents();
newButton = createNewRepoButton();
((GroupLayout) getLayout()).replace(jLabel1, newButton);
newButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
onNewRepo();
}
});
this.referenceFile = referenceFile;
qs = new QuickSearchComboBar(this);
issuePanel.add(qs, BorderLayout.NORTH);
issueLabel.setLabelFor(qs);
if (referenceFile != null) {
RepositoryComboSupport.setup(this, repositoryComboBox, filter, referenceFile);
} else {
RepositoryComboSupport.setup(this, repositoryComboBox, filter, false);
}
repositoryComboBox.addItemListener(this);
}
代码示例来源:origin: org.netbeans.api/org-netbeans-modules-bugtracking
/**
* Creates new form QuickSearchPanel
*/
public QuickSearchPanel(RepositoryImpl repositoryImpl) {
initComponents();
quickIssueSearch = new QuickSearchComboBar(this);
GroupLayout layout = (GroupLayout) this.getLayout();
quickIssueSearch.setRepository(repositoryImpl);
layout.replace(placeholderTask, quickIssueSearch);
}
代码示例来源:origin: org.netbeans.api/org-netbeans-modules-bugtracking
layout.replace(leftRepoPanel, repoPanel);
内容来源于网络,如有侵权,请联系作者删除!