Isuru Buddhika

Greenhorn
+ Follow
since Nov 04, 2012
Isuru likes ...
Firefox Browser Java Linux
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
4
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Isuru Buddhika

I created a chat room application using java socket and tried to connect a client via the internet. Both client and server machines were connected to the internet through USB HSPA modems. When the client tris to connect a StreamCorruptedException was thrown. I cannot figure out the reason for that. Can you please help me to fix this. Source code of my application is given below.

1) Server :



2). Client :



3). ClientListener :



4) GUI(Chatroom) :

I'm designing a GUI for a retail shop system and there I have a form to Add a customer. I want to make the add button enabled only after all the textfields are filled? Can you tell me the best way to do this?
11 years ago
I didnt knew it either. And Im not a typical crossposter. I cross posted few question today only because i was in a hurry. I mostly rely on answers on coderanch because I found them complete and understanable. Thank you all for helping me.
11 years ago
Thanks everybody who helped me in various ways.. And can some one tell me why it is good to use ActionListeners rather than using MouseListeners?
11 years ago
Im developing a simple calculator and I want to set the text of the TextField to label of the button clicked. Can anyone tell me how to do this?
11 years ago
Is there a linux version of this software? Our sir mentioned about this software and I want to use it. Unfortunately Im using ubuntu so it will be great if there is a linux version of this software. If not can you let me know whether this is working under WINE?
Thank You.
javaw is not found on my ubuntu java installation. What could be the reason?
11 years ago

Jesper de Jong wrote:Welcome to the Ranch.

Have a look at Understanding Instance and Class Members in Oracle's Java Tutorials.



Thanks!

On a lecture I was told that non static methods/variables exists in the object that get created in the heap while the static ones stays in the .class file that get loaded to the RAM. Is that correct?
11 years ago
what is the different between a
1) static variable and a non static variable
2) static method and a non static method.
11 years ago
What is the reason for the following programme to give a compile error?

11 years ago