From bc50e4e6da293e7577a5888bd4d103478932d945 Mon Sep 17 00:00:00 2001 From: royalblue13 <44386771+royalblue13@users.noreply.github.com> Date: Fri, 25 Jan 2019 21:07:06 -0700 Subject: [PATCH] Added text "Text Components" (#26624) * Added text "Text Components" Included "text components" section and relevant summary and example of text components in Swing. * Reformatted change to be part of existing heading --- guide/english/java/swing/index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/guide/english/java/swing/index.md b/guide/english/java/swing/index.md index 72869e7151..bc3a85a257 100644 --- a/guide/english/java/swing/index.md +++ b/guide/english/java/swing/index.md @@ -11,8 +11,10 @@ Let's explore the Java swing tutorial. Before making our hands all dirty with th 2. Pluggable Look and Feel(PLAF)- The Look and Feel of component is entirely determined by Swing itself. That makes it easier to distinguish between look and feel and the logic of component. Swing GUI consists of two main pillars:-components and containers.The following part discusses about both of them thoroughly. + ### Components -An Component is simply an independent visual control.Swing components are derived from JComponent class. Further JComponent inherits all its characteristics from AWT Containers and Components.For more information, please go through the hierarchy of [JComponent](https://docs.oracle.com/javase/tutorial/uiswing/components/jcomponent.html) class. +An Component is simply an independent visual control. Swing components are derived from JComponent class. Further JComponent inherits all its characteristics from AWT Containers and Components.For more information, please go through the hierarchy of [JComponent](https://docs.oracle.com/javase/tutorial/uiswing/components/jcomponent.html) class. Some of the useful Components are - +- **Text Components**: Swing text components can be used to display or edit text. One example of this is `JTextField`, which can be used to enter a small amount of text from the user. ### Containers All containers are also components. Containers may comprise of one or more components. Swing defines two types of containers