Set several components at the same time

0

I was looking for if there is a function to set several components when finishing a jinternalframe form and not having to set one by one in "", I could think of an array of components, but it did not seem like the best idea.

    
asked by Nairda17 03.01.2018 в 22:24
source

1 answer

1

The ideal for these cases is to create a method that sets the components you want to "" as you say and call it whenever you need to do this action.

public void limpiar(){
    componente1 = "";
    ...
} 
    
answered by 04.01.2018 / 01:36
source