¡@

Home 

java Programming Glossary: g2.setpaint

Java: How to draw non-scrolling overlay over ScrollPane Viewport?

http://stackoverflow.com/questions/10093425/java-how-to-draw-non-scrolling-overlay-over-scrollpane-viewport

paint Graphics g super.paint g Graphics2D g2 Graphics2D g g2.setPaint Color.BLACK g2.drawRect getWidth 4 getHeight 4 getWidth 2 getHeight..

JList with categories

http://stackoverflow.com/questions/10298360/jlist-with-categories

RenderingHints.VALUE_ANTIALIAS_ON g2.setPaint getBackground g2.fillRect 0 0 w h int x 2 w 2 18 int y 4 15.. h int x 2 w 2 18 int y 4 15 4 Polygon p new Polygon x y 3 g2.setPaint Color.green.brighter g2.fill p g2.setPaint Color.blue.brighter.. Polygon x y 3 g2.setPaint Color.green.brighter g2.fill p g2.setPaint Color.blue.brighter g2.draw p g2.dispose closed new BufferedImage..

Pacman open/close mouth animation

http://stackoverflow.com/questions/14426693/pacman-open-close-mouth-animation

RadialGradientPaint center float size 2 2f dist colors g2.setPaint radial g2.fill pacMan GradientPaint gradient new GradientPaint.. 255 255 225 220 int size 3 0 new Color 255 255 255 0 g2.setPaint gradient g2.fill pacMan g2.dispose return bi public void savePacManImage..

java/swing: converting a text string to a Shape

http://stackoverflow.com/questions/2466233/java-swing-converting-a-text-string-to-a-shape

g2.translate 100 150 g2.rotate 0.4 g2.setPaint Color.red g2.fill s g2.setPaint Color.black g2.setStroke new.. 100 150 g2.rotate 0.4 g2.setPaint Color.red g2.fill s g2.setPaint Color.black g2.setStroke new BasicStroke 3 BasicStroke.CAP_BUTT..

MouseListener Help Java

http://stackoverflow.com/questions/5136859/mouselistener-help-java

y z g2.drawRect w 10 x 30 y z g2.fillRect w 10 x 30 y z g2.setPaint c public static void main String args JFrame f new JFrame f.setTitle..

JTable how to change BackGround Color

http://stackoverflow.com/questions/8197261/jtable-how-to-change-background-color

Graphics2D g2 shadow.createGraphics g2.setPaint new Color 250 150 150 g2.fillRect 0 0 1 h g2.setComposite AlphaComposite.DstIn.. g2.fillRect 0 0 1 h g2.setComposite AlphaComposite.DstIn g2.setPaint new GradientPaint 0 0 new Color 0 0 0 0f 0 h new Color 0.5f.. BufferedImage shadow Graphics2D g2 shadow.createGraphics g2.setPaint color g2.fillRect 0 0 1 h g2.setComposite AlphaComposite.DstIn..

Passing current Date

http://stackoverflow.com/questions/8614972/passing-current-date

Color g Graphics2D g2 shadow.createGraphics g2.setPaint g g2.fillRect 0 0 1 h g2.setComposite AlphaComposite.DstIn g2.setPaint.. g g2.fillRect 0 0 1 h g2.setComposite AlphaComposite.DstIn g2.setPaint new GradientPaint 0 0 new Color 0 0 0 0f 0 h new Color 0.8f..