private void drawOverflowIndicator(final Graphics g,int maxX){
  int width=25;
  int height=10;
  int xOffset=10;
  int stepSize=width / 5;
  int dotSize=3;
  int x=maxX - width - xOffset;
  int y=button.getSize().height - height;
  g.setColor(LIGHTER_GRAY);
  g.fillRect(x,y,width,width);
  g.setColor(Color.GRAY);
  g.drawRoundRect(x,y,width,width,5,5);
  g.setColor(Color.BLACK);
  g.fillOval(x + stepSize,y + 4,dotSize,dotSize);
  g.fillOval(x + stepSize * 2,y + 4,dotSize,dotSize);
  g.fillOval(x + stepSize * 3,y + 4,dotSize,dotSize);
  g.dispose();
}

private void drawOverflowIndicator ( final Graphics g , int maxX ) { int width = 25 ; int height = 10 ; int xOffset = 10 ; int stepSize = width / 5 ; int dotSize = 3 ; int x = maxX - width - xOffset ; int y = button . getSize ( ) . height - height ; g . setColor ( LIGHTER_GRAY ) ; g . fillRect ( x , y , width , width ) ; g . setColor ( Color . GRAY ) ; g . drawRoundRect ( x , y , width , width , 5 , 5 ) ; g . setColor ( Color . BLACK ) ; g . fillOval ( x + stepSize , y + 4 , dotSize , dotSize ) ; g . fillOval ( x + stepSize * 2 , y + 4 , dotSize , dotSize ) ; g . fillOval ( x + stepSize * 3 , y + 4 , dotSize , dotSize ) ; g . dispose ( ) ; }
draws indicator in case the expression text overflows on the y axis .
