Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: How can i include mai activity in my java project

  1. #1
    Junior Member
    Join Date
    Sep 2013
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question 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 three JButtons Play,rules,exit)


    I want to add main activity in my project so that project run in a flow /as my expectation.

    First i want PlayGame.java should appear and when clicking play button game should start .so how can i achieve it.


  2. #2
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    586
    My Mood
    Sleepy
    Thanks
    10
    Thanked 87 Times in 80 Posts

    Default Re: How can i include mai activity in my java project

    Why did you start a new thread? Continue here: how to open one Jframe from main method call

  3. #3
    Junior Member
    Join Date
    Sep 2013
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How can i include mai activity in my java project

    sorry, i ddin't got your point.

Similar Threads

  1. Optimize code Java in activity and long operation
    By markjava in forum Android Development
    Replies: 1
    Last Post: November 14th, 2012, 04:02 PM
  2. Java function like php include
    By childoffred in forum Java Theory & Questions
    Replies: 4
    Last Post: April 20th, 2012, 04:21 PM
  3. error when switch activity in android
    By yefta in forum Android Development
    Replies: 3
    Last Post: October 26th, 2011, 10:50 AM
  4. [SOLVED] Medication of ArrayDemo.java to include iterative menu
    By xyldon27 in forum Loops & Control Statements
    Replies: 8
    Last Post: June 30th, 2009, 02:10 AM