Guys, tell me, please, how to make it so that by clicking with the left mouse button on the table cell it will be filled with the symbol that I need, after the second click it will be cleared. And by clicking the right button another symbol appeared in the same place. Thank you =)

    1 answer 1

    The task is not trivial, so I can tell you, only the direction in this question =)

    1. You must implement your model by implementing an interface ( implements TableModel )
    2. Hang Maustener on the table
    3. Check keystroke
    4. Take the cell number
    5. And display the necessary information