Package javax.swing.border

Examples of javax.swing.border.Border.paintBorder()


   */
  private boolean drawCustomBackground(Graphics g) {
    boolean painted;
    Border bgPaint = UIManager.getBorder((mRow % 2) == 0 ? evenList : oddList);
    if(bgPaint != null) {
      bgPaint.paintBorder(this, g, 0, 0, getWidth(), getHeight());
      super.paintComponent(g);
      painted = true;
    } else {
      renderColor(g, (mRow % 2) == 0 ? evenDefault : oddDefault);
      super.paintComponent(g);
View Full Code Here


  @Override
  protected final void paintBorder(Graphics g) {
  Border border = getBorder();
  if (border != null) {
    int y = getInnerTitlePanel().getY() - getInsets().top - titleMargin;
    border.paintBorder(this, g, 0, y, getWidth(), getHeight() - y);
  }
  }

  @Override
  public final Dimension getPreferredSize() {
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.