congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DefaultTableCellRenderer.paintComponent
Code IndexAdd Tabnine to your IDE (free)

How to use
paintComponent
method
in
javax.swing.table.DefaultTableCellRenderer

Best Java code snippets using javax.swing.table.DefaultTableCellRenderer.paintComponent (Showing top 13 results out of 315)

origin: com.github.insubstantial/substance

  @Override
  protected final void paintComponent(Graphics g) {
    super.paintComponent(g);
  }
}
origin: org.java.net.substance/substance

  @Override
  protected final void paintComponent(Graphics g) {
    super.paintComponent(g);
  }
}
origin: com.github.insubstantial/substance

@Override
protected final void paintComponent(Graphics g) {
  super.paintComponent(g);
}
origin: org.java.net.substance/substance

@Override
protected final void paintComponent(Graphics g) {
  super.paintComponent(g);
}
origin: org.netbeans.modules/org-netbeans-modules-bugtracking-commons

@Override
protected void paintComponent(Graphics g) {        
  processText(this);
  super.paintComponent(g);
}
origin: khuxtable/seaglass

/**
 * @see javax.swing.JComponent#paintComponent(java.awt.Graphics)
 */
@Override
public void paintComponent(Graphics g) {
  if (sortArrow != null) {
    // emptyIcon is used so that if the text in the header is right
    // aligned, or if the column is too narrow, then the text will
    // be sized appropriately to make room for the icon that is
    // about to be painted manually here.
    emptyIcon.width  = sortArrow.getIconWidth();
    emptyIcon.height = sortArrow.getIconHeight();
    Point position = computeIconPosition(g);
    super.paintComponent(g);
    sortArrow.paintIcon(this, g, position.x, position.y);
  } else {
    super.paintComponent(g);
  }
}
origin: xyz.cofe/gui.swing

@Override
public void paintComponent(Graphics g) {
  boolean b = DefaultLookup.getBoolean(this, ui,
      "TableHeader.rightAlignSortArrow", false);
  if (b && sortArrow != null) {
    //emptyIcon is used so that if the text in the header is right
    //aligned, or if the column is too narrow, then the text will
    //be sized appropriately to make room for the icon that is about
    //to be painted manually here.
    emptyIcon.width = sortArrow.getIconWidth();
    emptyIcon.height = sortArrow.getIconHeight();
    setIcon(emptyIcon);
    super.paintComponent(g);
    Point position = computeIconPosition(g);
    sortArrow.paintIcon(this, g, position.x, position.y);
  } else {
    super.paintComponent(g);
  }
}
origin: bedatadriven/activityinfo

@Override
protected void paintComponent(Graphics g) {
  if (!matched && isSource()) {
    paintUnmatchedCell(g);
  } else {
    super.paintComponent(g);
  } 
}
origin: net.sf.sfac/sfac-core

@Override
public void paintComponent(Graphics g) {
  super.paintComponent(g);
  if ((sortModel != null) && sortModel.isColumnSorted(columnIndex)) {
    Icon sortIcon = (sortModel.getSortDirection(columnIndex) == SortModel.SORT_NORMAL) ? sortUpIcon : sortDownIcon;
    int x = 4;
    if (sortModel.getNumberOfSortedColumns() > 1) {
      String sortIndex = String.valueOf(sortModel.getSortIndex(columnIndex) + 1);
      int height = g.getFontMetrics().getHeight() - 2;
      g.drawString(sortIndex, x, height);
      x += charWidth + 1;
      // } else {
      // x+=charWidth/2 ;
    }
    sortIcon.paintIcon(this, g, x, 1);
  }
}
origin: net.sf.squirrel-sql.thirdparty-non-maven/skinlf

 /**
  * Description of the Method
  *
  * @param g  Description of Parameter
  */
 protected void paintComponent(Graphics g) {
  if (isSelected || hasFocus) {
   itemSelected.paint(g, this);
  } else {
   itemUnselected.paint(g, this);
  }
  super.paintComponent(g);
 }
}
origin: org.netbeans.modules/org-netbeans-modules-dlight-visualizers

@Override
protected void paintComponent(Graphics g) {
  super.paintComponent(g);
  FontMetrics fm = g.getFontMetrics();
  int strw = (int) HtmlRenderer.renderHTML(node.getHtmlDisplayName() + ' ',
      scratchGraphics, 0, 0, cellwidth, 0,
      getFont(), Color.black, HtmlRenderer.STYLE_CLIP, false);
  if (cellwidth < strw) {
    int dotsw = (int) g.getFontMetrics().getStringBounds(dots, g).getMaxX();
    ((Graphics2D) g).setBackground(getBackground());
    g.setColor(getContrastGrayColor(htmlDisabledForeground, getBackground()));
    g.clearRect(cellwidth - dotsw, 0, dotsw, cellheight);
    g.drawString(dots, cellwidth - dotsw,
        fm.getHeight() + fm.getLeading() - fm.getDescent());
  }
}
origin: icza/scelight

@Override
protected void paintComponent( final Graphics g ) {
  if ( barCodeView == null ) {
    super.paintComponent( g );
    return;
  super.paintComponent( g );
origin: org.bitbucket.goalhub.simpleide/jedit

super.paintComponent(g);
javax.swing.tableDefaultTableCellRendererpaintComponent

Popular methods of DefaultTableCellRenderer

  • getTableCellRendererComponent
  • <init>
  • setHorizontalAlignment
  • setBackground
  • setForeground
  • setValue
  • setText
  • setBorder
  • getText
  • paint
  • getBackground
  • getFont
  • getBackground,
  • getFont,
  • getForeground,
  • setFont,
  • setHorizontalTextPosition,
  • setOpaque,
  • setIcon,
  • getBorder,
  • paintBorder

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • putExtra (Intent)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Permission (java.security)
    Legacy security code; do not use.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now