How to count number of controls like JTextField, J Label and so on so..in java swing form designing,for example if we use only one textbox and one text field means i need the o
With SwingX, you have in class org.jdesktop.swingx.util.WindowUtilspublic static List getAllComponents(Container c). With that you have all components and subcomponents in container.