Action « JPanel « Java Swing Q&A





3. Swing- How to indentify certain actions from sub-panels..    java-forums.org

Hello everyone, I'm new to Swing... and I desperately need help... I have n numbers of JPanel. And each panel contains certain number of sub-panels. Those sub-panels have actionlisteners. How can I identify which sub-panel fire an action? For example Panel_1 => sub_1, sub_2, sub_3 Panel_2 => sub_1, sub_2, sub_3 Panel_n => sub_1, sub_2, sub_3 Note that n is unknown ...