This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

nerdlemon888
nerdlemon888 presents ...

2012/11/26

Chatroom

NOTE: Due to a major unfixable bug with the score setting of this scenario, use my new scenario instead: http://www.greenfoot.org/scenarios/7056


This is a chance to test the UserInfo class by creating a public chatting room. Press the up and down keys to navigate through the messages, and type on your keyboard to send your message!

The ability to see other people's messages should now be better. I am working on formatting the messages at this point in time.

NOTE: I recently made a bug fix to my scenario regarding the keyboard input. For the time being, I assume that the user uses the American QWERTY keyboard. If you find any more bugs related to the keyboard, please post a comment stating what exactly is the bug is (compared to the expected output) and what keyboard format you're using.

4069 views / 7 in the last 7 days

6 votes | 0 in the last 7 days

Tags: demo with-source

This scenario is a member of: UserInfo Shares


There is no HTML 5 translation of this scenario available.
View legacy version (requires Java plugin)

This scenarios uses Java features that are not available for use after conversion to HTML 5. Please try the legacy version, which requires the Java plugin to be installed.

IownUIownU

2012/11/26

Great room! Could to do with an indicator showing the time of when a message was sent
A new version of this scenario was uploaded on Mon Nov 26 19:03:06 UTC 2012 Better Documentation, also I forgot to mention that the up and down buttons scroll the messages so that you can view a large number of messages.
groengeelgroengeel

2012/11/26

Message too long: and its gone! Too bad. Apart from that: It is great! And a minor bug: combining SHIFT+top number keys (to get !@#$%^&*(), etc.) really gives me the wrong chars. This is due to my keyboard layout I think.
nerdlemon888nerdlemon888

2012/11/27

There's a bug with the keyboard input class I created. I just noticed that. I will fix it ASAP.
A new version of this scenario was uploaded on Wed Nov 28 00:43:27 UTC 2012 Minor improvements in documentation. I fixed a bug involving putting certain special characters. Note that this scenario assumes The user uses the American QWERTY keyboard.
leolino82leolino82

2012/11/28

I all good
BlackHawkLexBlackHawkLex

2012/11/28

I totally agree, an indicator showing the time of the message would be cool! Also: Maybe you could format/style the chat a bit more? Really cool, though!
A new version of this scenario was uploaded on Sat Dec 01 18:48:38 UTC 2012 I've made many improvements in this scenario: - Now loads the top 20 messages by default - You no longer lose your message if you attempt to enter a message that's too long - An arrow is provided to help navigate the chat boxes (it points to the top box) - I've finally placed time information on the chat bubbles (unfortunately, only new boxes get the time stamp) - fixed a few bugs dealing with navigating the chat bubbles
tylerstylers

2012/12/2

you need a span protection, a way of deleting messages AND so you can't send a blank message.
A new version of this scenario was uploaded on Fri Dec 14 19:49:00 UTC 2012 Two updates: - Added pretty background - Added the ability to delete your message

See all comments

Want to leave a comment? You must first log in.

Who likes this?

bourne tylers BlackHawkLex Blackbeltowen Busch2207 IownU