javax.swing.JScrollPane.invalidate()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(241)

本文整理了Java中javax.swing.JScrollPane.invalidate()方法的一些代码示例,展示了JScrollPane.invalidate()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JScrollPane.invalidate()方法的具体详情如下:
包路径:javax.swing.JScrollPane
类名称:JScrollPane
方法名:invalidate

JScrollPane.invalidate介绍

暂无

代码示例

代码示例来源:origin: chewiebug/GCViewer

public void invalidate() {
  super.invalidate();
  chart.invalidate();
}

代码示例来源:origin: com.mgmtp.gcviewer/gcviewer

public void invalidate() {
  super.invalidate();
}

代码示例来源:origin: com.bbossgroups/bboss-htmlparser

/**
 * Redo the layout.
 */
public void relayout ()
{
  mMainPanel.invalidate ();
  mMainScroller.invalidate ();
  mMainScroller.validate ();
  mMainScroller.repaint ();
}

代码示例来源:origin: net.imagej/imagej-ui-swing

@Override
  public void run() {
    final boolean show = !detailsScrollPane.isVisible();
    detailsScrollPane.setVisible(show);
    detailsScrollPane.invalidate();
    detailsToggle.setText(show ? "Hide Details" : "Show Details");
    setTitle();
    final Dimension dimension = getSize();
    if (toggleHeight == -1) toggleHeight = dimension.height + 100;
    setSize(new Dimension(dimension.width, toggleHeight));
    toggleHeight = dimension.height;
  }
});

代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

public void setNormalSize() {
  JScrollPane scrollPane = getScrollPane();
  Insets scrollInsets = getScrollPaneInsets();
  
  if (scrollPane != null) {
    Dimension d = scrollPane.getVisibleRect().getSize();
    if (scrollPane.getBorder() != null) {
      d.setSize(d.getWidth() - scrollInsets.left - scrollInsets.right,
          d.getHeight() - scrollInsets.top - scrollInsets.bottom);
    }
    
    d.setSize(d.getWidth() - 20, d.getHeight() - 20);
    desktop.setAllSize(d);
    scrollPane.invalidate();
    scrollPane.validate();
  }
}

代码示例来源:origin: org.scijava/scijava-ui-swing

public void setNormalSize() {
  JScrollPane scrollPane = getScrollPane();
  Insets scrollInsets = getScrollPaneInsets();
  
  if (scrollPane != null) {
    Dimension d = scrollPane.getVisibleRect().getSize();
    if (scrollPane.getBorder() != null) {
      d.setSize(d.getWidth() - scrollInsets.left - scrollInsets.right,
          d.getHeight() - scrollInsets.top - scrollInsets.bottom);
    }
    
    d.setSize(d.getWidth() - 20, d.getHeight() - 20);
    desktop.setAllSize(d);
    scrollPane.invalidate();
    scrollPane.validate();
  }
}

代码示例来源:origin: net.imagej/ij-ui-swing

public void setNormalSize() {
  JScrollPane scrollPane = getScrollPane();
  Insets scrollInsets = getScrollPaneInsets();
  
  if (scrollPane != null) {
    Dimension d = scrollPane.getVisibleRect().getSize();
    if (scrollPane.getBorder() != null) {
      d.setSize(d.getWidth() - scrollInsets.left - scrollInsets.right,
          d.getHeight() - scrollInsets.top - scrollInsets.bottom);
    }
    
    d.setSize(d.getWidth() - 20, d.getHeight() - 20);
    desktop.setAllSize(d);
    scrollPane.invalidate();
    scrollPane.validate();
  }
}

代码示例来源:origin: fcrepo3/fcrepo

public void setNormalSize() {
  JScrollPane scrollPane = getScrollPane();
  int x = 0;
  int y = 0;
  Insets scrollInsets = getScrollPaneInsets();
  if (scrollPane != null) {
    Dimension d = scrollPane.getVisibleRect().getSize();
    if (scrollPane.getBorder() != null) {
      d
          .setSize(d.getWidth() - scrollInsets.left
              - scrollInsets.right, d.getHeight()
              - scrollInsets.top - scrollInsets.bottom);
    }
    d.setSize(d.getWidth() - 20, d.getHeight() - 20);
    desktop.setAllSize(x, y);
    scrollPane.invalidate();
    scrollPane.validate();
  }
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-kenai-ui

if( isTreeListShowing || dashboardComponent.getViewport().getView() == null ) {
  dashboardComponent.setViewportView(createEmptyContent());
  dashboardComponent.invalidate();
  dashboardComponent.revalidate();
  dashboardComponent.repaint();
if( !isTreeListShowing ) {
  dashboardComponent.setViewportView(treeList);
  dashboardComponent.invalidate();
  dashboardComponent.revalidate();
  dashboardComponent.repaint();

代码示例来源:origin: sc.fiji/TrakEM2_

private void updateToolTab() {
  OptionPanel op = null;
  switch (ProjectToolbar.getToolId()) {
    case ProjectToolbar.PENCIL:
      op = Segmentation.fmp.asOptionPanel();
      break;
    case ProjectToolbar.BRUSH:
      op = AreaWrapper.PP.asOptionPanel();
      break;
    default:
      break;
  }
  scroll_options.getViewport().removeAll();
  if (null != op) {
    op.bottomPadding();
    scroll_options.setViewportView(op);
  }
  scroll_options.invalidate();
  scroll_options.validate();
  scroll_options.repaint();
}

代码示例来源:origin: org.simplericity.jettyconsole/jetty-console-core

text.setText("");
scroll.setVisible(true);
scroll.invalidate();
scroll.doLayout();
scroll.paintImmediately(new Rectangle(scroll.getSize()));

代码示例来源:origin: net.imagej/ij-ui-swing

scrollPane.invalidate();
scrollPane.validate();

代码示例来源:origin: org.scijava/scijava-ui-swing

scrollPane.invalidate();
scrollPane.validate();

代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

scrollPane.invalidate();
scrollPane.validate();

代码示例来源:origin: fcrepo3/fcrepo

scrollPane.invalidate();
scrollPane.validate();

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-bugtracking

attachActions();
dashboardComponent.setViewportView(treeList);
dashboardComponent.invalidate();
dashboardComponent.revalidate();
dashboardComponent.repaint();

代码示例来源:origin: org.icepdf.os/icepdf-viewer

if (changed) {
  ((JComponent) documentView).firePropertyChange(PropertyConstants.DOCUMENT_VIEW_ZOOM_CHANGE, previousZoom, zoom);
  documentViewScrollPane.invalidate();
  documentViewScrollPane.validate();
  documentViewScrollPane.getViewport().getView().invalidate();

相关文章

JScrollPane类方法