jeudi 30 mai 2019

set visible false to button using reflection, is posible?

I just trying hide button through relfection

Class userClass = Class.forName("vistas.RegistroPersonal");

Field f = userClass.getDeclaredField("btneliminar");

f.setAccessible(true);

f.setVisible(false);

Please help.

Is this possible?.





Aucun commentaire:

Enregistrer un commentaire