hi guy i would like help or info about socket
little exemple of code:
clientSocket = new Socket(ip, 6784);
BufferedReader insideServer = new BufferedReader(
new InputStreamReader(clientSocket.getInputStream()));
its that possible from the inputStream getting the click event ?
example a user click from a button and another user using same application
on another computer receive data from that button.
it's hard how to explain what i am looking for but
i extends a new jbutton and redefine with new parameter and i want to get those value when that person click.
this my new button i want the x y
class MyButton extends JButton implements ActionListener {
int x, y;
MyButton(String text, int x, int y) {
super(text);
this.x = x;
this.y = y;
addActionListener(this);
}
public void ActionPerform(ActionEvent e) {
}
}