Results 1 to 7 of 7
Like Tree1Likes
  • 1 Post By jim829

Thread: Keylistener help

  1. #1
    dafly45 is offline Member
    Join Date
    Nov 2013
    Posts
    4
    Rep Power
    0

    Post Keylistener help

    Hello forums! I'm trying to add key listeners to my (pretty basic) java program. it works perfectly right now with sounds, images, and collisions.
    Here is my code for my main class:
    Java Code:
    import java.applet.*;
    import java.awt.*;
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    
    // This begins the class definition.
    // Notice that this is a "world". You can tell since it extends Applet.
    // It also implement Runnable which allows it to be and use threads.
    
    public class PalletTown extends Applet implements Runnable
    {
    //variable declaration section
    // public datatype variablename
    public int time;
    public int worldx, worldy;
    public String plevel2;
    public String elevel2;
    public String clevel2;
    public String mega;
    public String ashspoke;
    public String garyspoke;
    public int megacount;
    public int counter;
    public int evocount1;
    public int evocount2;
    public int evocount3;
    //Object decleration 
    public Hero ash;	 //sets up a Hero object called ash
    public Pokemon squirtle;
    public Pokemon oak;
    public Pokemon charm;
    public Enemy gary;
    public Pokemon bulb;
    public Image garypic;
    public Image ashpic;
    public String questionText;
    public String userText;
    public Image squirtlepic;
    public Image bulbpic;
    public Image ivypic;
    public Image venuspic;
    public Image warpic;
    public Image blastpic;
    public Image charmpic;
    public Image prfpic;
    public Image melpic;
    public Image zardpic;
    public AudioClip theme;
    public AudioClip crash;
    public AudioClip theme1;
    public AudioClip theme2;
    public AudioClip theme3;
    public AudioClip theme4;
    public boolean theme1on;
    public boolean theme2on;
    public boolean theme3on;
    public boolean theme4on;
    
    
    //public int randomsound;
    
    
    public boolean collide;
    
    public Buff buff1;
    //Sets up a Thread called thread
    Thread thread;
    
    /*public static void main(String args[]){
    System.out.print("What's your favorite pokemon generation 1,2,3,4,5,6?");
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String gen = null;
    try {
    gen = br.readLine();
    } catch (IOException ioe) {
    System.out.println("IO error trying to find your FAVORITE GENERATION!");
    System.exit(1);
    }
    }*/
    
    public void init()
    {
    setBackground(Color.white);
    //Initialize variables
    time = 100;
    worldx = 1400;
    worldy = 700;
    counter = 0;
    megacount = 0;
    evocount1 = 0;
    theme1on = false;
    theme2on = false;
    theme3on = false;
    theme4on = false;
    
    garyspoke = "Gary's Pokemon";
    ashspoke = "Ash's Pokemon";
    mega = "MEGA OAK!!!!";
    buff1 = new Buff("Buff", 600,300,100,100);
    charm = new Pokemon("Charmander",(int) (Math.random()*worldx),(int) (Math.random()*worldy),worldx,worldy);
    bulb = new Pokemon("Bulbasaur",(int) (Math.random()*worldx),(int) (Math.random()*worldy),worldx,worldy);
    squirtle = new Pokemon("Squirtle",(int) (Math.random()*worldx),(int) (Math.random()*worldy),worldx,worldy);
    oak = new Pokemon("Prf. Oak",(int) (Math.random()*worldx),(int) (Math.random()*worldy),worldx,worldy);
    ash = new Hero("Ash", 100, 180,worldx,worldy);
    gary = new Enemy("Gary",1000,640,worldx,worldy);
    
    //Image get
    charmpic = getImage(getDocumentBase(),"Charm.png");
    garypic = getImage(getDocumentBase(), "Gary.png");
    ashpic = getImage(getDocumentBase(), "Ash.png");
    squirtlepic = getImage(getDocumentBase(), "squirtle.png");
    warpic = getImage(getDocumentBase(), "Wartortle.png");
    blastpic = getImage(getDocumentBase(), "Blastoise.gif");
    prfpic = getImage(getDocumentBase(), "Oak.png");
    bulbpic = getImage(getDocumentBase(), "Bulb.png");
    ivypic = getImage(getDocumentBase(), "Ivysaur.png");
    venuspic = getImage(getDocumentBase(), "Venusaur.png");
    melpic = getImage(getDocumentBase(), "Charmeleon.png");
    zardpic = getImage(getDocumentBase(), "Charizard.png");
    crash = getAudioClip(getDocumentBase(), "normaldamage.wav");
    theme1 = getAudioClip(getDocumentBase(), "theme1.wav");
    theme2 = getAudioClip(getDocumentBase(), "theme2.wav");
    theme3 = getAudioClip(getDocumentBase(), "theme3.wav");
    theme4 = getAudioClip(getDocumentBase(), "theme4.wav");
    
    
    setSize(worldx+50, worldy+50);
    /*if (theme1on == true)
    {
    theme1.loop();
    }
    if (theme2on == true)
    {
    theme2.loop();
    }
    if (theme3on == true)
    {
    theme3.loop();
    }
    if (theme4on == true)
    {
    theme4.loop();
    }
    */
    
    //Set up the thread
    //This should be the LAST lines in your init( ) method.
    thread = new Thread(this); //constructs a new thread
    thread.start();	 //starts the thread
    
    }
    
    public void paint(Graphics g)
    {
    g.drawImage(ashpic, ash.xpos,ash.ypos, ash.width, ash.height, this);
    g.drawImage(squirtlepic, squirtle.xpos,squirtle.ypos+20, squirtle.width, squirtle.height, this);
    g.drawImage(prfpic, oak.xpos,oak.ypos-20, oak.width, oak.height, this);
    g.drawImage(garypic, gary.xpos, gary.ypos, gary.width, gary.height, this);
    g.drawImage(bulbpic, bulb.xpos, bulb.ypos, bulb.width, bulb.height, this);
    g.drawImage(charmpic, charm.xpos, charm.ypos, charm.width, charm.height, this);
    plevel2 = "Squirtle's Level is" + squirtle.level;
    elevel2 = "Bulbasaur's Level is" + bulb.level;
    clevel2 = "Charmander's Level is" + charm.level;
    /*if (ash.health == 0);
    {
    phealth1 = "ash is Dead";
    }
    if (squirtle.health == 0);
    {
    phealth2 = "squirtle is Dead";
    }
    if (gary.health == 0);
    {
    ehealth1 = "gary is Dead";
    }
    if (bulb.health == 0);
    {
    ehealth2 = "bulb is Dead";
    }
    */
    g.drawString(plevel2, 8, 40);
    g.drawString(elevel2, 8, 80);
    g.drawString(clevel2, 8, 60);
    g.drawRect(5,10,worldx,worldy);
    g.drawRect(5,10,150,200);
    g.drawRect(buff1.xpos, buff1.ypos, buff1.width, buff1.height);
    g.drawRect(ash.xpos,ash.ypos-30,ash.health,20);
    g.drawRect(squirtle.xpos,squirtle.ypos-30,squirtle.health,10);
    g.drawRect(squirtle.xpos,squirtle.ypos-20,squirtle.exp,10);
    if (squirtle.acaught == true){
    g.drawString(ashspoke, squirtle.xpos, squirtle.ypos-50);
    }
    if (squirtle.gcaught == true){
    g.drawString(garyspoke, squirtle.xpos, squirtle.ypos-50);
    }
    g.drawRect(charm.xpos,charm.ypos-30,charm.health,10);
    g.drawRect(charm.xpos,charm.ypos-20,charm.exp,10);
    if (charm.acaught == true){
    g.drawString(ashspoke, charm.xpos, charm.ypos-50);
    }
    if (squirtle.gcaught == true){
    g.drawString(garyspoke, charm.xpos, charm.ypos-50);
    }
    g.drawRect(oak.xpos,oak.ypos-30,oak.health,10);
    g.drawRect(oak.xpos,oak.ypos-20,oak.exp,10);
    g.drawRect(gary.xpos,gary.ypos-30,gary.health,20);
    g.drawRect(bulb.xpos,bulb.ypos-30,bulb.health,10);
    g.drawRect(bulb.xpos,bulb.ypos-20,bulb.exp,10);
    if (bulb.acaught == true){
    g.drawString(ashspoke, bulb.xpos, bulb.ypos-50);
    }
    if (squirtle.gcaught == true){
    g.drawString(garyspoke, bulb.xpos, bulb.ypos-50);
    }
    
    }
    public void powerUp()
    {
    if (buff1.rec.intersects(ash.rec) && buff1.counter <= 1)
    {
    ash.health+=10;
    buff1.counter++;
    
    }
    if (buff1.rec.intersects(squirtle.rec) && buff1.counter <= 1)
    {
    squirtle.health+=10;
    squirtle.strength+=10;
    buff1.counter++;
    squirtle.exp+=6;
    }
    if (buff1.rec.intersects(oak.rec) && buff1.counter <= 1)
    {
    oak.health+=10;
    buff1.counter++;
    oak.exp+=6;
    oak.strength+=10;
    
    }
    if (buff1.rec.intersects(gary.rec) && buff1.counter <= 1)
    {
    gary.health+=10;
    buff1.counter++;
    
    }
    if (buff1.rec.intersects(bulb.rec) && buff1.counter <= 1)
    {
    bulb.health+=10;
    buff1.counter++;
    bulb.exp+=6;
    bulb.strength+=10;
    
    }
    if (buff1.rec.intersects(charm.rec) && buff1.counter <= 1)
    {
    charm.health+=10;
    buff1.counter++;
    charm.exp+=6;
    charm.strength+=10;
    
    }
    if (buff1.counter>=2){
    buff1.isAlive = false;
    } //Sets is alive to be false if two people have touched it
    if (buff1.isAlive == false){
    buff1.width = 0;
    buff1.height = 0;
    
    buff1.time++;
    
    } // gets rid of the rectangle and its abilities
    if (buff1.time >= 10){
    buff1.isAlive = true;
    buff1.counter = 0;
    buff1.time = 0;
    buff1.width = 100;
    buff1.height = 100;
    } //after 10 milliseconds it come back and things are restored
    else
    {
    buff1.counter = buff1.counter;
    }
    
    } //Power up
    public void level()
    {
    if (squirtle.exp >= squirtle.level*20)
    {
    squirtle.level++;
    }
    if (oak.exp >= oak.level*20)
    {
    oak.level++;
    }
    if (bulb.exp >= bulb.level*20)
    {
    bulb.level++;
    }
    if (charm.exp >= charm.level*20)
    {
    charm.level++;
    }
    if (oak.exp == 40 || oak.exp == 100 && megacount <=3)
    {
    oak.width+=10;
    oak.height+=10;
    megacount++;
    }
    if (squirtle.level == 2 && squirtle.level <= 3 && squirtle.grow>=0 && squirtle.grow<=3)
    {
    
    squirtlepic = warpic;
    squirtle.width+=5;
    squirtle.height+=5;
    squirtle.grow++;
    }
    if (squirtle.level >= 4 && squirtle.grow>=3 && squirtle.grow<=6)
    {
    
    squirtlepic = blastpic;
    squirtle.width+=10;
    squirtle.height+=10;
    squirtle.grow++;
    
    }
    if (charm.level == 2 && charm.level <= 3 && charm.grow>=0 && charm.grow<=3)
    {
    
    charmpic = melpic;
    charm.width+=5;
    charm.height+=5;
    charm.grow++;
    }
    if (charm.level >= 4 && charm.grow>=3 && charm.grow<=6)
    {
    
    charmpic = zardpic;
    charm.width+=10;
    charm.height+=10;
    charm.grow++;
    }
    if (bulb.level == 2 && bulb.level <= 3 && bulb.grow>=0 && bulb.grow<=3)
    {
    
    bulbpic = ivypic;
    bulb.width+=5;
    bulb.height+=5;
    bulb.grow++;
    }
    if (bulb.level >= 4 && bulb.grow>=3 && bulb.grow<=6)
    {
    
    bulbpic = venuspic;
    bulb.width+=10;
    bulb.height+=10;
    bulb.grow++;
    }
    
    
    
    }// Level up method
    
    public void check()
    {
    
    if (ash.rec.intersects(gary.rec) && ash.isAlive == true && collide == false)
    {
    gary.dx = -gary.dx;
    gary.dy = -gary.dy;
    ash.dx = -ash.dx;
    ash.dy = -ash.dy;
    ash.health -= 5;
    gary.health -= 5;
    collide = true;
    setBackground(Color.red);
    setBackground(Color.white);
    crash.play();
    }
    //player and player intersections
    if (ash.rec.intersects(bulb.rec) && ash.isAlive == true && collide == false && bulb.acaught == false)
    {
    bulb.dx = -bulb.dx;
    bulb.dy = -bulb.dy;
    ash.dx = -ash.dx;
    ash.dy = -ash.dy;
    bulb.exp+=5;
    ash.health -= 1;
    bulb.health -= 10;
    setBackground(Color.red);
    collide = true;
    setBackground(Color.white);
    bulb.acatch++;
    crash.play();
    }
    if (ash.rec.intersects(oak.rec) && ash.isAlive == true && collide == false && oak.acaught == false)
    {
    oak.dx = -oak.dx;
    oak.dy = -oak.dy;
    ash.dx = -ash.dx;
    ash.dy = -ash.dy;
    oak.exp+=5;
    ash.health -= 1;
    oak.health -= 10;
    setBackground(Color.red);
    collide = true;
    setBackground(Color.white);
    oak.acatch++;
    crash.play();
    }
    if (ash.rec.intersects(charm.rec) && ash.isAlive == true && collide == false && charm.acaught == false)
    {
    charm.dx = -charm.dx;
    charm.dy = -charm.dy;
    ash.dx = -ash.dx;
    ash.dy = -ash.dy;
    charm.exp+=5;
    ash.health -= 1;
    charm.health -= 10;
    setBackground(Color.red);
    collide = true;
    setBackground(Color.white);
    charm.acatch++;
    crash.play();
    }
    if (ash.rec.intersects(squirtle.rec) && ash.isAlive == true && collide == false && squirtle.acaught == false)
    {
    squirtle.dx = -squirtle.dx;
    squirtle.dy = -squirtle.dy;
    ash.dx = -ash.dx;
    ash.dy = -ash.dy;
    squirtle.exp+=5;
    ash.health -= 1;
    squirtle.health -= 10;
    setBackground(Color.red);
    collide = true;
    setBackground(Color.white);
    squirtle.acatch++;
    crash.play();
    }
    if (squirtle.rec.intersects(gary.rec) && squirtle.isAlive == true && collide == false && squirtle.gcaught == false)
    {
    gary.dx = -gary.dx;
    gary.dy = -gary.dy;
    squirtle.dx = -squirtle.dx;
    squirtle.dy = -squirtle.dy;
    squirtle.exp+=5;
    squirtle.health -= 10;
    gary.health -= 1;
    collide = true;
    setBackground(Color.red);
    setBackground(Color.white);
    squirtle.gcatch++;
    crash.play();
    }
    if (charm.rec.intersects(gary.rec) && oak.isAlive == true && collide == false && charm.gcaught == false)
    {
    gary.dx = -gary.dx;
    gary.dy = -gary.dy;
    charm.dx = -charm.dx;
    charm.dy = -charm.dy;
    charm.exp+=5;
    charm.health -= 10;
    gary.health -= 1;
    collide = true;
    setBackground(Color.red);
    setBackground(Color.white);
    charm.gcatch++;
    crash.play();
    }
    if (bulb.rec.intersects(gary.rec) && oak.isAlive == true && collide == false && bulb.gcaught == false)
    {
    gary.dx = -gary.dx;
    gary.dy = -gary.dy;
    bulb.dx = -bulb.dx;
    bulb.dy = -bulb.dy;
    bulb.exp+=5;
    bulb.health -= 10;
    gary.health -= 1;
    collide = true;
    setBackground(Color.red);
    setBackground(Color.white);
    bulb.gcatch++;
    crash.play();
    }
    if (oak.rec.intersects(gary.rec) && oak.isAlive == true && collide == false && oak.gcaught == false)
    {
    gary.dx = -gary.dx;
    gary.dy = -gary.dy;
    oak.dx = -oak.dx;
    oak.dy = -oak.dy;
    oak.exp+=5;
    oak.health -= 10;
    gary.health -= 1;
    collide = true;
    setBackground(Color.red);
    setBackground(Color.white);
    crash.play();
    }
    //player and pokemon intersections
    if (squirtle.rec.intersects(bulb.rec) && squirtle.isAlive == true && collide == false)
    {
    bulb.dx = -bulb.dx;
    bulb.dy = -bulb.dy;
    squirtle.dx = -squirtle.dx;
    squirtle.dy = -squirtle.dy;
    squirtle.exp+=bulb.level*5;
    bulb.exp+=squirtle.level*5;
    squirtle.health -= bulb.strength;
    collide = true;
    setBackground(Color.red);
    setBackground(Color.white);
    crash.play();
    }
    if (oak.rec.intersects(bulb.rec) && oak.isAlive == true && collide == false)
    {
    bulb.dx = -bulb.dx;
    bulb.dy = -bulb.dy;
    oak.dx = -oak.dx;
    oak.dy = -oak.dy;
    oak.exp+=bulb.level*5;
    bulb.exp+=oak.level*5;
    oak.health -= bulb.strength;
    collide = true;
    setBackground(Color.red);
    setBackground(Color.white);
    crash.play();
    }
    if (oak.rec.intersects(charm.rec) && oak.isAlive == true && collide == false)
    {
    charm.dx = -charm.dx;
    charm.dy = -charm.dy;
    oak.dx = -oak.dx;
    oak.dy = -oak.dy;
    oak.exp+=charm.level*5;
    charm.exp+=oak.level*5;
    oak.health -= charm.strength;
    collide = true;
    setBackground(Color.red);
    setBackground(Color.white);
    crash.play();
    }
    if (oak.rec.intersects(squirtle.rec) && oak.isAlive == true && collide == false)
    {
    squirtle.dx = -squirtle.dx;
    squirtle.dy = -squirtle.dy;
    oak.dx = -oak.dx;
    oak.dy = -oak.dy;
    oak.exp+=squirtle.level*5;
    squirtle.exp+=oak.level*5;
    oak.health -= squirtle.strength;
    collide = true;
    setBackground(Color.red);
    setBackground(Color.white);
    crash.play();
    }
    if (charm.rec.intersects(bulb.rec) && oak.isAlive == true && collide == false)
    {
    bulb.dx = -bulb.dx;
    bulb.dy = -bulb.dy;
    charm.dx = -charm.dx;
    charm.dy = -charm.dy;
    charm.exp+=bulb.level*5;
    bulb.exp+=charm.level*5;
    charm.health -= bulb.strength;
    collide = true;
    setBackground(Color.red);
    setBackground(Color.white);
    crash.play();
    }
    if (charm.rec.intersects(squirtle.rec) && oak.isAlive == true && collide == false)
    {
    squirtle.dx = -squirtle.dx;
    squirtle.dy = -squirtle.dy;
    charm.dx = -charm.dx;
    charm.dy = -charm.dy;
    charm.exp+=squirtle.level*5;
    squirtle.exp+=charm.level*5;
    charm.health -= squirtle.strength;
    collide = true;
    setBackground(Color.red);
    setBackground(Color.white);
    crash.play();
    }
    // pokemon and pokemon intersections
    
    
    else 
    {
    collide = false;
    } 
    
    
    
    } //collisions method
    /*public void songs()
    {
    
    userText = new String("");
    Scanner in = new Scanner (System.in);
    System.out.println("What is your favorite pokemon song? (this is case sensitive)");
    System.out.println("Your options are Gotta catch'em all, Pikachu's song, Pokerap1, and Pokerap2");
    String lineUserTyped = in.nextLine();
    userText = (lineUserTyped);
    while (!userText.equals(("Gotta catch'em all")));
    {
    songs();
    }
    while (!userText.equals(("Pikachu's song")));
    {
    songs();
    }
    while (!userText.equals(("Pokerap1")));
    {
    songs();
    }
    while (!userText.equals(("Pokerap2")));
    {
    songs();
    }
    System.out.println("You Said:" + userText);
    if (userText == "Gotta catch'em all")
    {
    theme1on = true;
    }
    if (userText == "Pikachu's song")
    {
    theme2on = true;
    }
    if (userText == "Pokerap1")
    {
    theme3on = true;
    }
    if (userText == "Pokerap2")
    {
    theme4on = true;
    }
    
    }
    */
    public void catching()
    {
    if (squirtle.acaught = true)
    {
    squirtle.xpos = ash.xpos-10;
    squirtle.ypos = ash.ypos-20;
    squirtle.dy = ash.dy;
    squirtle.dx = ash.dx;
    squirtle.health+=100;
    squirtle.exp+=10;
    squirtle.strength+=10;
    }
    if (squirtle.gcaught = true)
    {
    squirtle.xpos = gary.xpos-10;
    squirtle.ypos = gary.ypos-20;
    squirtle.dy = gary.dy;
    squirtle.dx = gary.dx;
    squirtle.health+=100;
    squirtle.exp+=10;
    squirtle.strength+=10;
    }
    if (charm.acaught = true)
    {
    charm.xpos = ash.xpos-10;
    charm.ypos = ash.ypos-20;
    charm.dy = ash.dy;
    charm.dx = ash.dx;
    charm.health+=100;
    charm.exp+=10;
    charm.strength+=10;
    }
    if (charm.gcaught = true)
    {
    charm.xpos = gary.xpos-10;
    charm.ypos = gary.ypos-20;
    charm.dy = gary.dy;
    charm.dx = gary.dx;
    charm.health+=100;
    charm.exp+=10;
    charm.strength+=10;
    }
    if (bulb.acaught = true)
    {
    bulb.xpos = ash.xpos-10;
    bulb.ypos = ash.ypos-20;
    bulb.dy = ash.dy;
    bulb.dx = ash.dx;
    bulb.health+=100;
    bulb.exp+=10;
    bulb.strength+=10;
    }
    if (bulb.gcaught = true)
    {
    bulb.xpos = gary.xpos-10;
    bulb.ypos = gary.ypos-20;
    bulb.dy = gary.dy;
    bulb.dx = gary.dx;
    bulb.health+=100;
    bulb.exp+=10;
    bulb.strength+=10;
    }
    } //catching pokemon method
    
    public void run() 
    {
    
    
    // this thread loop forever and runs the paint method and then sleeps.
    while(true)
    {
    
    //put what you want your program to do here.
    //songs();
    gary.move();
    bulb.move();
    ash.move();
    squirtle.move();
    oak.move();
    level();
    charm.move();
    buff1.Move();
    powerUp();
    //catching();
    check();
    repaint();	 // run the paint method.
    
    //sleep
    try {
    thread.sleep(100);
    }
    catch (Exception e){ }
    }//while
    
    }// run()
    
    }
    Last edited by dafly45; 11-07-2013 at 03:48 AM.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,894
    Rep Power
    25

    Default Re: Keylistener help

    Please edit your post and wrap your code with code tags:
    [code=java]
    YOUR CODE HERE
    [/code]
    to get highlighting and preserve formatting.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    dafly45 is offline Member
    Join Date
    Nov 2013
    Posts
    4
    Rep Power
    0

    Default Re: Keylistener help

    can i have some more help with doing that, sorry i'm new

  4. #4
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    4,025
    Rep Power
    6

    Default Re: Keylistener help

    First, don't post the same question more than once in the same forum. Also, a keylistener is a very specific capability and does not require much code at all
    to get it to work. Rather than post all of your non-relevant code, just write a small app (< 30 lines) to process keys via a key listener. If you can't get it to
    work, then post that code here (between code tags) and we will help.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  5. #5
    dafly45 is offline Member
    Join Date
    Nov 2013
    Posts
    4
    Rep Power
    0

    Default Re: Keylistener help

    I don't know how to do that though and I would love some help to implement that (sorry for the double post)

  6. #6
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,894
    Rep Power
    25

    Default Re: Keylistener help

    1)Edit your post
    2) put the following before the code:
    [code=java]

    3)Put the following after your code:
    [/code]
    If you don't understand my response, don't ignore it, ask a question.

  7. #7
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    4,025
    Rep Power
    6

Similar Threads

  1. Help with keyListener please
    By sim18 in forum AWT / Swing
    Replies: 8
    Last Post: 05-01-2013, 03:46 PM
  2. KeyListener
    By tim8w in forum AWT / Swing
    Replies: 1
    Last Post: 01-28-2013, 08:57 PM
  3. Keylistener
    By dyelax in forum New To Java
    Replies: 4
    Last Post: 09-20-2012, 08:06 PM
  4. Help with keylistener?
    By Kaizo in forum New To Java
    Replies: 4
    Last Post: 12-11-2010, 01:55 AM
  5. keyListener not doing anything
    By imorio in forum AWT / Swing
    Replies: 10
    Last Post: 08-17-2010, 11:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •