Jump to content


Check out our Community Blogs

Norm

Member Since 22 Jan 2012
Offline Last Active Sep 17 2014 04:15 AM
-----

#637803 java chat server file sharing

Posted by Norm on 05 September 2012 - 04:57 AM

What package is the ByteOutputStream class in?
  • 1


#628682 Chat Program Help

Posted by Norm on 30 April 2012 - 07:21 AM

That wasn't for you. It was for the other volunteers so they can see if the question has already been answered and not waste time.
  • 1


#628361 Is This Looping Forever?

Posted by Norm on 27 April 2012 - 03:27 AM

Do you know where the code is looping? Add some println statements to all the loops to see where it is looping. When you find the loop then add println statements to print out the values of the variables that control the looping. The output will show you what the computer sees and help you understand the problem and fix it.

Where do you get any input from the players?
  • 1


#627817 Executable File?

Posted by Norm on 23 April 2012 - 10:16 AM

If you put the class files in a jar file with the correct manifest file, the code in the jar file can be executed on any PC with a current version of the JRE installed. Many IDEs will create the jar file for you.

See this tutorial for details:http://docs.oracle.c.../jar/index.html
  • 1


#627808 Constructors

Posted by Norm on 23 April 2012 - 07:42 AM

public class Character {
It would be less confusing if you did NOT name your class with the same name as an existing Java class.
  • 1


#627241 Noob Gui Help

Posted by Norm on 17 April 2012 - 06:01 PM

You have added panel to two containers. You can only add a component to one container.

JScrollPane scroll = new JScrollPane(panel);
main.add(panel);

Where do you add the scroll pane to a container so it will be shown?
  • 1


#627235 Noob Gui Help

Posted by Norm on 17 April 2012 - 05:11 PM

Create a panel to hold the panels, fill it with panels and add that panel to the scroll pane.
Don't add the panels to main
  • 1


#626198 Asigment Help Multimap Collection

Posted by Norm on 10 April 2012 - 11:05 AM

Can you use another foreach with l to get the items in the List?
l is a poor variable name for writing about. Hard to use Find and looks like a 1
  • 1


#624762 Phone Directory problems

Posted by Norm on 25 March 2012 - 08:01 AM

It looks like you add to name every time you call the getName() method. The print out shows that you have called it twice and each time name was getting longer.
  • -1


#622538 Need help With KeyListeners Please

Posted by Norm on 23 February 2012 - 05:14 PM

Your listener method will be called one time for every time it is added. You should notice that the motion speeds up.jumps farther the longer the program runs as more and more listeners are added.
  • -1


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download