public void invalidate() { super.invalidate(); chart.invalidate(); }
public void invalidate() { super.invalidate(); }
/** * Redo the layout. */ public void relayout () { mMainPanel.invalidate (); mMainScroller.invalidate (); mMainScroller.validate (); mMainScroller.repaint (); }
@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; } });
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(); } }
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(); } }
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(); } }
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(); } }
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();
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(); }
text.setText(""); scroll.setVisible(true); scroll.invalidate(); scroll.doLayout(); scroll.paintImmediately(new Rectangle(scroll.getSize()));
scrollPane.invalidate(); scrollPane.validate();
scrollPane.invalidate(); scrollPane.validate();
scrollPane.invalidate(); scrollPane.validate();
scrollPane.invalidate(); scrollPane.validate();
attachActions(); dashboardComponent.setViewportView(treeList); dashboardComponent.invalidate(); dashboardComponent.revalidate(); dashboardComponent.repaint();
if (changed) { ((JComponent) documentView).firePropertyChange(PropertyConstants.DOCUMENT_VIEW_ZOOM_CHANGE, previousZoom, zoom); documentViewScrollPane.invalidate(); documentViewScrollPane.validate(); documentViewScrollPane.getViewport().getView().invalidate();