¡@

Home 

java Programming Glossary: posx

Event detection on opaque pixels in JButton

http://stackoverflow.com/questions/13825123/event-detection-on-opaque-pixels-in-jbutton

private boolean isAlpha BufferedImage bufImg int posX int posY int alpha bufImg.getRGB posX posY 24 0xFF return.. bufImg int posX int posY int alpha bufImg.getRGB posX posY 24 0xFF return alpha 0 frame.add button frame.pack..

Is there a way of placing a video in my Java game main menu

http://stackoverflow.com/questions/14146247/is-there-a-way-of-placing-a-video-in-my-java-game-main-menu

gc StateBasedGame sbg int delta throws SlickException int posX Mouse.getX int posY Mouse.getY mouse mouse pos posX posY Coords.. int posX Mouse.getX int posY Mouse.getY mouse mouse pos posX posY Coords if needed play now button if posX 110 posX 140 posY.. mouse pos posX posY Coords if needed play now button if posX 110 posX 140 posY 5 posY 25 checks if mouse is inside play now..

Flood fill using a stack

http://stackoverflow.com/questions/2783204/flood-fill-using-a-stack

public static boolean isBlack BufferedImage image int posX int posY int color image.getRGB posX posY int brightness color.. image int posX int posY int color image.getRGB posX posY int brightness color 0xFF color 2 0xFF color 4 0xFF brightness..

creating 10.000 connected hexagon page?

http://stackoverflow.com/questions/3687176/creating-10-000-connected-hexagon-page

int n r private double angle public int x y Point c int posX posY public pentagon int pieces int radie Point center c center.. n pieces r radie x new int n y new int n angle 2 Math.PI n posX c.x 1024 2 posY c.y 1024 2 public void drawMe Graphics g g.drawString.. 1024 2 public void drawMe Graphics g g.drawString CENTER posX posY System.out.print xO x0 for int i 0 i n i double v i angle..

Creating custom JButton from images containing transparent pixels

http://stackoverflow.com/questions/6735891/creating-custom-jbutton-from-images-containing-transparent-pixels

ImageIcon newImg private int clickAlphaValue Icon icon int posX int posY int width icon.getIconWidth int height icon.getIconHeight.. null g 0 0 g.dispose int alpha tempImage.getRGB posX posY 24 0x000000FF return alpha public static void main String..