#how to know if something belong to some class like JButton or JPanel
1 messages · Page 1 of 1 (latest)
Do you mean instanceof? (used like if (something instanceof JButton) {)
oh aight let me try that but can i know if the jbutton in specific jpanel or not?
like is there anyway to get the jpanel that hold a jbutton is it even possible