![add border to text box in java add border to text box in java](https://www.joehxblog.com/images/inkscape/image-border-2.png)
JTextarea(String s): It is used to create a text area that displays specified text initially.JTextArea(): It is used to create a text area that displays no text initially.Syntax: JTextArea jta = new JTextArea() JTextArea Constructors It basically inherits the JTextComponent class.ĭeclaration: public class JTextArea extends JTextComponent
![add border to text box in java add border to text box in java](https://www.iitk.ac.in/esc101/05Aug/tutorial/figures/uiswing/misc/BorderDemo4.gif)
It also allows the editing of multiple-line text. The JTextArea component allows the user to type the text in multiple lines.
![add border to text box in java add border to text box in java](http://www.cs.fsu.edu/~jtbauer/cis3931/tutorial/figures/ui/BorderDemo-0.5.gif)
This component allows the user to select multiple items from a group of items. Syntax : ButtonGroup bg = new ButtonGroup() JCheckBox We can add RadioButtons to the ButtonGroup by using the add method. So the user can select only one value from that group. This class is used to place multiple RadioButton into a single group.
![add border to text box in java add border to text box in java](http://www.javaperspective.com/images/borders-simple.png)
Data Structures and Algorithms Tutorials.We create a new table with 3 columns and 3 rows. PdfWriter.getInstance(document, new FileOutputStream("iTextTable.pdf")) Let's take a look at the example: Document document = new Document()