You'll have to explore the Swing component hierarchy with .getComponent(int). However, you will likely be unable to call the custom method on the retrieved Swing components unless you have my Integration Toolkit module installed (formerly known as Simulation Aids), due to limitations of Ignition's native PyComponentWrapper callsites. See this topic for skull-cracking details: