Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    15
    Views
    1,629

    Re: CALLING ANOTHER PROGRAM

    You can call either a class's constructor or a method in a class or both.
    What method in the class do you want to call? Look at the class definition and find the method you want to call.


    The...
  2. Replies
    15
    Views
    1,629

    Re: CALLING ANOTHER PROGRAM

    The compiler can not find a method named: theMethod() in the class: TicTacToe
    What method in the class are you trying to call? Check the class definition for the methods that it defines.
  3. Replies
    15
    Views
    1,629

    Re: CALLING ANOTHER PROGRAM

    That could work.
    Did you try it? What happened?
  4. Replies
    15
    Views
    1,629

    Re: CALLING ANOTHER PROGRAM

    Your terminology is confusing. Classes like JFrame can cause GUI items to appear on the screen as windows.
    The source file: TicTacToe.java does not appear. The source file contains the definition...
  5. Replies
    15
    Views
    1,629

    Re: CALLING ANOTHER PROGRAM

    What method do you want to call? Those classes have several methods in them.
    Is there a reference to an instance of the class with that method available in the if statements where you want to call...
  6. Replies
    15
    Views
    1,629

    Re: CALLING ANOTHER PROGRAM

    Are those classes or methods that you want to call? You need to explain which.
    Have instances of those two classes been created? If so where are the variables that point to those instances? If...
  7. Replies
    15
    Views
    1,629

    Re: CALLING ANOTHER PROGRAM

    You call methods in a class, not programs.
    Get a reference to the class that has the method and use it to call the method:
    refToClass.theMethod();
  8. Replies
    15
    Views
    1,629

    Re: CALLING ANOTHER PROGRAM

    Please edit you post and wrap the code in code tags.

    if (arg == "Versus Mode")
    {
    You should use the equals() method to compare Strings.
    It would be better to compare the source of the event or...
Results 1 to 8 of 8