You can enable/disable any Jcomponent using below method.
public void setFieldsEnabled ( Component comp , boolean enabled )
{
if(comp instanceof LabeledComponent || comp instanceof
JRadioButton
||
comp instanceof JTextField || comp instanceof
JCheckBox || comp
instanceof JList || comp instanceof JTable){
comp.setEnabled ( enabled ) ;
}
}
On Sep 7, 6:32 pm, RAFAEL TAVERAS <[email protected]> wrote:
> Hello, please , i want to know how to enable or disable Jtextbox or other
> object's Jframe or similar "not one by one".
> all a same time!
>
> thanks.
>
> Rafael Taveras
> Computer Sciences.
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en