@@ -6,7 +6,7 @@ <h1>Graphical User Interfaces: Display and Layout</h1>
66</ p >
77< p >
88In fact, the standard WIMP model of graphical user interfaces (Windows, Icons,
9- Menus, Pointer) was developed at Xerox PARC during the 1970's in and along with
9+ Menus, Pointer) was developed at Xerox PARC during the 1970's along with
1010one of the first object-oriented programming languages, Smalltalk. GUIs
1111influenced the language design and vice versa. The WIMP model first saw
1212widespread deployment by Apple with the first Macintosh computer and was
@@ -110,7 +110,7 @@ <h2>Building a GUI</h2>
110110< pre >
111111JComponent parent = ...;
112112JComponent child = ...;
113- p .add(child);
113+ parent .add(child);
114114</ pre >
115115< p >
116116The method < code > getComponents()</ code > returns an array of the child components
@@ -119,7 +119,7 @@ <h2>Building a GUI</h2>
119119< h2 > GUI Designers</ h2 >
120120< p >
121121Support for GUI design is built into various IDEs, such as NetBeans or IntelliJ
122- IDEA. For example, IntelliJ has a GUI Designer for this purposes . These design
122+ IDEA. For example, IntelliJ has a GUI Designer for this purpose . These design
123123applications give you a user interface to design GUIs and save them into an
124124external file in XML format that can be read in later by an application to set
125125up its component tree and to connect it to application code.
@@ -183,7 +183,7 @@ <h2>Threads</h2>
183183< p >
184184Unlike simple Java programs, a Swing application typically has multiple
185185concurrent threads: a < strong > main thread</ strong > , an < strong > event dispatch
186- thread</ strong > , and optionally more threads that do computation n the
186+ thread</ strong > , and optionally more threads that do computation in the
187187background. The job of the event dispatch thread is to loop continuously,
188188listening for the occurrence of hardware-generated events such as mouse clicks.
189189For each such occurrence, it constructs an event object describing the event
0 commit comments