No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
Hello everyone, I just started learning Java, I like it so far because it is very similar to c#, which I am familar with. But I can't get programs to compile for me. It gives me an error saying 'Exception in thread "main" ' I am using NetBeans to compile … |
|
So, in my applet, I need to run two threads, each using the same "communicationDriver" class: comIn, and comOut. Each has a socket connecting to port 2002 and 2001 respectively. I init my applet as such: public void init() { javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { makeGUI();}}); } Then … |
|
I have an applet that needs to have a sending socket and a receiving socket, each unidirectional, on ports 2001 and 2002. now, i tried making each one in a thread and it did not work. can someone give me a code example as to how to do this? i … |