No products in the cart.

Difference between jTextField and jTextArea

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Difference between jTextField and jTextArea
  • 1 answers

Sia ? 3 years, 5 months ago

JTextField

  • JTextFeld is one of the most important components that allow the user to an input text value in a single line format.
  • JTextField will generate an ActionListener interface when we trying to enter some input inside it.
  • The JTextComponent is a superclass of JTextField that provides a common set of methods used by JTextfield.
  • The important methods in the JTextField class are setText(), getText(), setEnabled(), etc.

JTextArea

  • JTextArea is a multi-line text component to display text or allow the user to enter text.
  • JTextArea will generate a CaretListener interface.
  • The JTextComponent is a superclass of JTextArea that provides a common set of methods used by JTextArea.
  • The important methods in the JTextArea class are setText(), append(), setLineWrap(), setWrapStyleWord(), setCaretPosition(), etc.
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