Package javax.swing

Examples of javax.swing.JComponent.repaint()


            }
            else if ((border != null) && (border instanceof GridTitledBorder)) {
                // TF:6/9/07:Added the functionality to use the GridTitledBorder for proper behaviour
                GridTitledBorder gridBorder = (GridTitledBorder)border;
                gridBorder.setFrameColor(UIutils.forteToJavaColor(color));
                c.repaint();
            }
            else if ((border != null) && (border instanceof TitledBorder))
            {
                TitledBorder titledBorder = (TitledBorder)border;
                Border innerBorder = titledBorder.getBorder();
View Full Code Here


                menu.add(menuItems[i]);
            }

            JComponent parent = (JComponent) upItem.getParent();
            parent.revalidate();
            parent.repaint();
        }
    }

    protected class MenuScrollTimer extends Timer {
View Full Code Here

    if (viewer instanceof BitmapViewerComponent) {
      ((BitmapViewerComponent) viewer).setHint(Image.SCALE_FAST);
    }
    add(viewer);
    viewer.revalidate();
    viewer.repaint();
  }
}
View Full Code Here

    }
    if(view.isShortened())
      viewer.setVisible(false);
    else {
      viewer.revalidate();
      viewer.repaint();
    }
  }

  void deleteViewer(final ExternalResource model, final NodeView nodeView) {
    final Set<NodeView> viewers = model.getViewers();
View Full Code Here

  public void recalibrate() {
    if(getClientProperty(ALREADY_IN_PAINT) == null) {
      final JComponent parent = (JComponent) getParent();
      if(parent != null) {
        parent.revalidate();
        parent.repaint();
      }
    }
  }
}
View Full Code Here

          else if(d.equals(Direction.DOWN)){
            size.height -= (point2.y - point.y);
          }
          resizedComponent.setPreferredSize(new Dimension(Math.max(size.width, 0), Math.max(size.height, 0)));
          parent.revalidate();
          parent.repaint();
          fireSizeChanged(resizedComponent);
        }
        else{
          index = getIndex();
        }
View Full Code Here

     
        JComponent cmp = (JComponent) this._pnlContentPane_;
        cmp.revalidate();
       
        if (cmp.isVisible())
            cmp.repaint();
    }
   
    @Override
    public void loadTransient() throws Exception
    {
View Full Code Here

    public void updateGui()
    {
        graphPanelObject.invalidateCache();
        JComponent selectedTab = (JComponent) getSelectedComponent();
        selectedTab.updateUI();
        selectedTab.repaint();
    }

    public Image getGraphImage()
    {
        Image result = graphPanelObject.createImage(graphPanelObject.getWidth(), graphPanelObject.getHeight());
View Full Code Here

          String title = window.getTitle();
          if (title != null) {
            // Set title for the new data handler
            dataHandler.setProperty("title", new String[] { title });
          }
          dataComponent.repaint();
        }
      } else if (dataHandler != null) {
        dataHandler.handleCommand(parts);
      } else if ("clear".equals(cmd)) {
        jta.setText("");
View Full Code Here

                menu.add(menuItems[i]);
            }

            JComponent parent = (JComponent) upItem.getParent();
            parent.revalidate();
            parent.repaint();
        }
    }

    private class MenuScrollListener implements PopupMenuListener {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.