Forums Register Login

Accessing Socket in actionPerformed function

+Pie Number of slices to send: Send
I have a Main class that creates the Socket object, and a UserLogin class that has a GUI to get some text as input.
My problem is that I am not able to access the same Socket object within the actionPerformed function of UserLogin.
I mean s.isClosed() returns TRUE within submitActionPerformed(ActionEvent ae)

I tried to solve it by making it final... but didn't work.



A wop bop a lu bop a womp bam boom! Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1519 times.
Similar Threads
why its not running or how to run it
Learning NetBeans JavaForms
Networked Programs that work across countries
how to write the data from text fields of my swing application to an xml file dynamically?
Help with Chat software
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:12:01.