¡@

Home 

java Programming Glossary: g2.fill

JList with categories

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

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

Game (with KeyListener) does not respond to user input?

http://stackoverflow.com/questions/10440246/game-with-keylistener-does-not-respond-to-user-input

xPos yPos 100 100 g2.setPaint Color g2.draw ball g2.fill ball Class Player2 is the same exact copy. The xPos 500 yPos..

Pacman open/close mouth animation

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

Graphics2D g2 bi.createGraphics g2.setColor color g2.fillRect 0 0 int size int size AffineTransform rotate AffineTransform.getRotateInstance.. center float size 2 2f dist colors g2.setPaint radial g2.fill pacMan GradientPaint gradient new GradientPaint 0 0 new Color.. int size 3 0 new Color 255 255 255 0 g2.setPaint gradient g2.fill pacMan g2.dispose return bi public void savePacManImage int..

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 BasicStroke 3 BasicStroke.CAP_BUTT..

Java, how to draw constantly changing graphics

http://stackoverflow.com/questions/3742731/java-how-to-draw-constantly-changing-graphics

e new Ellipse2D.Double 40 x STEP 45 y STEP STEP 3 STEP 3 g2.fill e g2.setColor Color.GRAY g2.draw e catch Exception e e.printStackTrace..

How to make a rounded corner image in Java

http://stackoverflow.com/questions/7603400/how-to-make-a-rounded-corner-image-in-java

RenderingHints.VALUE_ANTIALIAS_ON g2.setColor Color.WHITE g2.fill new RoundRectangle2D.Float 0 0 w h cornerRadius cornerRadius..