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: Static void is not being reached

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

    Exclamation Static void is not being reached

    When the main void executes this:

    public static void load(){ 
    DialogueHandler.sendText1("test");
    }

    SendText1: (In a seperate class)
    public static void sendText1(String text){
    Logger.log("done"); //Test if void was reached
    Window.jTextArea1.append(text + newLine);
    }

    The application completely stops at this point in the load void and no errors are logged nor added to the TextArea. Why is this happening?


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Static void is not being reached

    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: Static void is not being reached

    There's not enough there to go on. Consider constructing and posting a SSCCE.

    I find that constructing the most minimal example I can of a problem often leads to a solution. (I guess it clears away all the incidental stuff that only obscures the cause of the problem.) It certainly makes it easier for others to follow.

Similar Threads

  1. Alpha Testers Wanted: Static Void Games
    By KevinWorkman in forum The Cafe
    Replies: 17
    Last Post: April 21st, 2012, 10:54 PM
  2. Static? Void? Trying to display date...O_o
    By jbpotenza in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 30th, 2012, 01:21 AM
  3. public static void main(NewMember Mr_Bukkake){ }
    By Mr. Bukkake in forum Member Introductions
    Replies: 2
    Last Post: October 13th, 2011, 07:29 AM
  4. Replies: 10
    Last Post: September 6th, 2010, 04:48 PM
  5. Calling a void method into a static void main within same class
    By sketch_flygirl in forum Object Oriented Programming
    Replies: 3
    Last Post: November 15th, 2009, 05:24 PM