Chat Program

Hello Guys,

This is my first Post, so please move this topic, if its wrong here…

I just created a Programm for chatting. It was made with Kryonet (http://code.google.com/p/kryonet/), which helped me A LOT.
I would really like, if you would join my server, and say hi, to show, that it worked, or reply here with the thrown Exception / Problem.

To connect to my server use this:
#set-name
#connect flux.homelinux.org

You can download the program here: http://dl.dropbox.com/u/45530199/Games/ConsoleChat.zip

Thats all. Hopefully we meet :slight_smile:

Hmm, nothing shows up when I click it. Maybe need to run from command line? I’ll try it

Nope, running from console with ‘java -jar’, at least it tries to connect somewhere(firewall noticed) but when accepted it just hangs there and doesn’t let you input anything.

No errors.

Weired bug in AWT. It hangs in the call setVisible(true);. It works after you try it multiple times.

Is there a screen supposed to appear when you double click the jar? Or do you need to run it from the command line?

Well, in either case, it’s not working and it’s not spitting out any errors. :confused:

Perhaps you’re doing stuff off of the EDT that you shouldn’t?

That would be really strange. Yes, I’m often NOT in the Event Dispatch Thread (Checked with SwingUtilities.isEventDispatchThread()), but I ALWAYS call SwingUtilities.invokeLater(new Runnable() { … }); if I’m not inside a dispatch thread, or I dont know. Inside that Runnable I call every Swing method, which needs to be called…

Okey, that is fixed now. Just quickly restarting server, (link works too, just donwload it again.).

Solution:

I used Swing-Components together inside a JFrame… That caused flickering and strange behavior. Should be fixed now :slight_smile:

trying to run it from the command line it just sits there. does not do anything.

… what?.. :expressionless: :cranky: :emo:
mhmm… I … I had that problems once too, but I really don’t get, why that still happens… I’m really confused. I started it from outside eclipse with a jar too, but for me it works perfectly.

Cracily strange…

Oh wait. Please run it with java -jar ConsoleChat.jar log-trace
That should output EVERY information about Kryonet, maybe it hangs there instead of setVisible(…).

Nope. still does not show anything.

As I am not able to reproduce the bug, can you please try to find, where it hangs?
Here is the src: http://dl.dropbox.com/u/45530199/Games/ConsoleChat.zip
I’d really appriciate that…

okey, the above link is the wrong one. Its the link for downloading the Program.

It should work now. I checked it in Windows XP, there it hangs in setVisibe(true);
After putting around a SwingUtilities.invokeLater(…). It seems to work. So just use the above link to download and run :slight_smile:

Checked and running!

It works fine for me! Really cool stuff :slight_smile:

ra4king hey :smiley: just saw, you posted somthing there :smiley: glad it worked for you :slight_smile:

EDIT: Just saw it… Sorry for 3 times doublepostin… oO

So it said “Unable to Connect Client:”.

Yepp, Server was not online, I’m starting it again now.