how to send a swing object(i.e. JTextField jf=new JTextField()), here i have to send the jf object the server from the client problem, can i send it, if i can send, how do i send, if not ? y? please reply the question,
waiting for reply.
regards narasimharao konjeti
"Unwise to sweat petty stuff, wise to pet sweaty stuff."
Do you really need to send the JTextField? or only the text within it?
You can serialize a JTextField as any other object. However mind this warnning in the API:
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see XMLEncoder.
SCJP2. Please Indent your code using UBB Code
Joined: Apr 26, 2003
this was my interview question, that is what i want to clarify this doubt,