Hello everyone!
I'm working on a project in C# and I have program already written in Java some time ago. I've worked with JToggleButton and have this setSelected method that can be set to true/false. Can someone explain me what this function does because I'm affraid that I will have to write similar in C#.
I used it like this:
btnArr[i][j] = new JToggleButton();
btnArr[i][j].addMouseListener(this);
btnArr[i][j].setFocusable(false);
if (table.getElement(i, j) == false)
btnArr[i][j].setSelected(true);
else
btnArr[i][j].setSelected(false);
add(btnArr[i][j], c);
Thanks :)
Cheers!!