本文整理了Java中javax.swing.JTabbedPane.invalidate()
方法的一些代码示例,展示了JTabbedPane.invalidate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTabbedPane.invalidate()
方法的具体详情如下:
包路径:javax.swing.JTabbedPane
类名称:JTabbedPane
方法名:invalidate
暂无
代码示例来源:origin: stackoverflow.com
tabbedPane.invalidate ();
tabbedPane.repaint ();
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-groovy-grailsproject
private void installPlugins() {
installButton.setEnabled(false);
final Object[] selected = availablePlugins.getSelectedValues();
Collection<GrailsPlugin> selectedColl = toPluginCollection(selected);
if (pluginZipPath.getText() != null && pluginZipPath.getText().trim().length() > 0) {
GrailsPlugin plugin = pluginsManager.getPluginFromZipFile(pluginZipPath.getText());
if (plugin != null && !selectedColl.contains(plugin)
&& !installedPluginsList.contains(plugin)) {
selectedColl.add(plugin);
}
}
availableModified = pluginsManager.installPlugins(selectedColl);
refreshInstalled();
if (availableModified) {
pluginsPanel.setSelectedComponent(installedPanel);
pluginsPanel.invalidate();
pluginsPanel.repaint();
}
installButton.setEnabled(true);
}
代码示例来源:origin: net.sf.ingenias/editor
public void reloadDiagrams() {
JScrollPane comp=null;
for (int k=0;k<this.graphPanel.getTabCount();k++){
comp=(JScrollPane)(graphPanel.getComponentAt(k));
if (comp!=null)
System.err.println(comp.getClass().getName());
if (comp!=null && comp.getViewport().getView()!=null){
//System.err.println(comp.getViewport().getView().getClass().getName());
ModelJGraph mjg=(ModelJGraph)(comp.getViewport().getView());
graphPanel.setTitleAt(k, mjg.getName()) ;
}
}
graphPanel.invalidate();
graphPanel.repaint();
}
代码示例来源:origin: Audiveris/audiveris
/**
* Update the title of first displayed stub tab, according to book radix.
*
* @param book the book at hand
*/
public void updateFirstStubTitle (Book book)
{
final int tabIndex = getFirstDisplayedStubIndex(book);
if (tabIndex != -1) {
SheetStub firstDisplayed = getStubAt(tabIndex);
stubsPane.setTitleAt(tabIndex, defineTitleFor(firstDisplayed, firstDisplayed));
stubsPane.invalidate();
}
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-ui
pane.getTextArea().setFont(selectedFont);
pane.setAutoPositionCaret(app_.attributes_.autoScroll());
app_.tabbedPane_.invalidate();
app_.tabbedPane_.repaint();
app_.attributes_.getTabPlacement()
);
app_.tabbedPane_.invalidate();
代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime-swing-widget
protected void changeCategory(ChangeEvent e) {
JPanel p = (JPanel) getCategories().getSelectedComponent();
if (p == null) {
// pas de selection
return;
}
getModel().setCategory(p.getName());
getCategories().invalidate();
}
/* end raw body code */
代码示例来源:origin: org.nuiton.jaxx/jaxx-config
public void changeCategory(ChangeEvent e) {
JPanel p = (JPanel) ui.getCategories().getSelectedComponent();
if (p == null) {
// pas de selection
return;
}
ui.getModel().setCategory(p.getName());
ui.getCategories().invalidate();
}
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-config
void changeCategory(ChangeEvent e) {
JPanel p = (JPanel) ui.getCategories().getSelectedComponent();
if (p == null) {
// pas de selection
return;
}
ui.getModel().setCategory(p.getName());
ui.getCategories().invalidate();
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets-config
public void changeCategory(ChangeEvent e) {
JPanel p = (JPanel) ui.getCategories().getSelectedComponent();
if (p == null) {
// pas de selection
return;
}
ui.getModel().setCategory(p.getName());
ui.getCategories().invalidate();
}
内容来源于网络,如有侵权,请联系作者删除!