Search:

Type: Posts; User: ankushpruthi

Search: Search took 0.10 seconds.

  1. Re: how to handle action events in case of more than one JFrame

    But i am not getting how to and where to implement this modalityType in which code section of the program.

    --- Update ---

    i am sorry i post it three times , but i am ot getting to any...
  2. Replies
    10
    Views
    336

    Re: how can i set an object in focus

    project is attached within this comment
    plz check it
  3. how to handle action events in case of more than one JFrame

    I have downloaded a snake game project from the internet, initially this project contains three java files namely



    when i run Engine.java ,game starts running ..

    Now i have done some...
  4. Replies
    10
    Views
    336

    Re: how can i set an object in focus

    Ok. there is Engine.java class in my project which has almost all the methods to handle the game.
    So i am sendig u Engine.class . Or if u can say i will mail my project to you.



    package...
  5. Replies
    10
    Views
    336

    Re: how can i set an object in focus

    can u please elaborate what u want from me because i am not getting your point.
  6. Replies
    10
    Views
    336

    Re: how can i set an object in focus

    I have downloaded a snake game project from the internet, initially this project contains three java files namely
    1. Engine.java
    2. Snake.java
    3. Gameoard.java

    when i runs Engine.java ,game...
  7. Replies
    10
    Views
    336

    Re: how can i set an object in focus

    Actually this project Contain five java files .i show this code because it almost contaiinng most of the logic of snake game.
    five classes: 1. Engine.java
    2. Snake.java (declaring...
  8. Replies
    10
    Views
    336

    how can i set an object in focus

    There is a Canvas object in my game and this object is not set in focus, because of this my snake is not moving on the Board .

    Basically i am working on snake game project, and i want is when play...
  9. Re: how to open one Jframe from main method call

    how can i set my canvas i focus.
    or also i am thinking to chage keyListener to KeyBinding, then you can plz tell me how can i set this approach in this game project/ or i Engie.java class
    i.e how...
  10. Re: how to open one Jframe from main method call

    Ok .but Have u any idea why the output is hanging or what would be the reason why swing output hangs.
  11. Re: How can i include mai activity in my java project

    sorry, i ddin't got your point.
  12. How can i include mai activity in my java project

    I am workig on a snake game project. This project contain five java files.

    1. Engine.java
    2. Snake.java
    3. GameBoard.java
    4. PlayGame.java (is a JFrame)
    5. Rules.java (is a JFrame and having...
  13. Re: how to open one Jframe from main method call

    Actually i create JFrame using netbeans and placed button over JFrame like we do i VB.
    So jbutton1 is the reference Of JButton and i titled it as Play

    --- Update ---



    package org.psnbtech;...
  14. Re: how to open one Jframe from main method call

    Actually i have not doe any major chage in Engine.java file.
    I just move main() method code in theactionperformed() method of play button and create an object of PlayGame.java in the main() method...
  15. how to open one Jframe from main method call

    I have downloaded a snake game project in java. Initially the project contains three java files i.e "

    Engine.java

    Snake.java

    GameBoard.java

    And Engine.java have the main() method,...
Results 1 to 15 of 15