Results 1 to 5 of 5

Thread: Null :(

  1. #1
    PhQ's Avatar
    PhQ
    PhQ is offline Senior Member
    Join Date
    Mar 2010
    Location
    Lithuania
    Posts
    358
    Rep Power
    5

    Default Null :(

    How come when I do:
    Java Code:
       -
    label says : null, welcome to StreetWars, please choose one of the tabs to continue.

    ...and how can I make it to say playerName.
    Last edited by PhQ; 04-16-2010 at 07:43 AM.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by PhQ View Post
    How come when I do:
    Java Code:
        
      //...
    label says : null, welcome to StreetWars, please choose one of the tabs to continue.

    ...and how can I make it to say playerName.
    I don't know because I can't compile and run a small program that demonstrates your problem. But I do know that this is a Very Bad Idea™:

    Java Code:
            try {
                java.awt.EventQueue.invokeAndWait(new Runnable() {
    
                    //....
    
                });
            } catch (Exception e) {
               // ...  What is being missed here?
            }

  3. #3
    PhQ's Avatar
    PhQ
    PhQ is offline Senior Member
    Join Date
    Mar 2010
    Location
    Lithuania
    Posts
    358
    Rep Power
    5

    Default

    Java Code:
    Solved
    this is the whole program.
    By the way I don't get any errors.

    This is my .sql file from mysql.
    Java Code:
      
    Last edited by PhQ; 04-16-2010 at 07:42 AM.

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,375
    Blog Entries
    7
    Rep Power
    20

    Default

    tl;dr

    kind regards,

    Jos

  5. #5
    PhQ's Avatar
    PhQ
    PhQ is offline Senior Member
    Join Date
    Mar 2010
    Location
    Lithuania
    Posts
    358
    Rep Power
    5

    Default

    Quote Originally Posted by JosAH View Post
    tl;dr

    kind regards,

    Jos
    ...Fine...

Similar Threads

  1. Replies: 2
    Last Post: 03-19-2010, 05:30 PM
  2. Null
    By leapinlizard in forum New To Java
    Replies: 4
    Last Post: 04-29-2009, 11:29 PM
  3. Keeps returning null
    By ribbs2521 in forum New To Java
    Replies: 7
    Last Post: 02-23-2009, 02:25 AM
  4. Null value
    By Michael in forum New To Java
    Replies: 4
    Last Post: 06-15-2008, 06:25 AM
  5. What is NULL
    By bugger in forum New To Java
    Replies: 1
    Last Post: 01-09-2008, 04:55 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
  •