No products in the cart.

Difference between setvisible and setenable

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Difference between setvisible and setenable
  • 1 answers

Yogita Ingle 4 years, 9 months ago

The setVisible() method in Java makes the GUI component visible to the user depending on the Boolean parameter you pass in the function. For instance, if it is set as false then it will hide that component else if true ,it will be shown to the user.

The setEditable() method has one Boolean parameter. If you set the parameter to false, then the user cannot edit that field so it’s basically used to prevent the user from entering the wrong value. While if set to true then the user can edit that particular field. For instance, if I have a text field theText and I want to set its property setEditable() to false so that user cannot change it ,so setText.setEditable(false).

http://mycbseguide.com/examin8/

Related Questions

Founder of python
  • 2 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App