|
68 | 68 | <figure xml:id="fig-guiscreen"> |
69 | 69 | <caption>Various GUI components from the <c>javax.swing</c> package. <term>[Artwork: We |
70 | 70 | need to label the components.]</term></caption> |
71 | | - <image width="73%" source=".."/> |
| 71 | + <image width="73%" source="guicapture.eps"/> |
72 | 72 | </figure> |
73 | 73 | <p> |
74 | 74 | The Swing classes are generally considered to be superior to their AWT \marginpar{Model-view-controller (MVC) architecture} counterparts. |
@@ -137,7 +137,7 @@ public class GreeterApp extends Object { ... } |
137 | 137 | <figure xml:id="fig-swing1"> |
138 | 138 | <caption>Top-level Swing and AWT classes. [NOTE: REDRAW JWindow |
139 | 139 | is a subclass of Window.]</caption> |
140 | | - <image width="73%" source=".."/> |
| 140 | + <image width="73%" source="swing1.eps"/> |
141 | 141 | </figure> |
142 | 142 | <p> |
143 | 143 | A <term>top-level container</term> |
@@ -184,7 +184,7 @@ public class JFrame extends Frame { ... } |
184 | 184 | </p> |
185 | 185 | <figure xml:id="fig-framecapture"> |
186 | 186 | <caption>A simple window.</caption> |
187 | | - <image width="73%" source=".."/> |
| 187 | + <image width="73%" source="framecapture.eps"/> |
188 | 188 | </figure> |
189 | 189 | <p> |
190 | 190 | <xref ref="fig-framecapture">Figure</xref> |
@@ -244,7 +244,7 @@ public class SimpleGUI extends JFrame |
244 | 244 | </p> |
245 | 245 | <figure xml:id="fig-framesubclass"> |
246 | 246 | <caption><c>SimpleGUI</c> is a subclass of <c>JFrame</c>.</caption> |
247 | | - <image width="73%" source=".."/> |
| 247 | + <image width="73%" source="framesubclass.eps"/> |
248 | 248 | </figure> |
249 | 249 | <p> |
250 | 250 | The constructor method illustrates how to use some of the methods inherited from <c>JFrame</c>. <xref ref="fig-framesubclass">Figure</xref> |
@@ -276,7 +276,7 @@ public class SimpleGUI extends JFrame |
276 | 276 | </p> |
277 | 277 | <figure xml:id="fig-swing2"> |
278 | 278 | <caption>Swing components.</caption> |
279 | | - <image width="73%" source=".."/> |
| 279 | + <image width="73%" source="swing2.eps"/> |
280 | 280 | </figure> |
281 | 281 | <p> |
282 | 282 | Let's begin by creating a simple user interface, |
@@ -317,7 +317,7 @@ public class SimpleGUI extends JFrame |
317 | 317 | </p> |
318 | 318 | <figure xml:id="fig-constructors"> |
319 | 319 | <caption>Public methods and constructors for basic Swing components.</caption> |
320 | | - <image width="73%" source=".."/> |
| 320 | + <image width="73%" source="swingmeth.eps"/> |
321 | 321 | </figure> |
322 | 322 | <p> |
323 | 323 | <xref ref="fig-constructors">Figure</xref> |
@@ -382,7 +382,7 @@ add(String region, Component comp) add comp at region |
382 | 382 | </p> |
383 | 383 | <figure xml:id="fig-borderlayout"> |
384 | 384 | <caption>Arrangement of components in a border layout.</caption> |
385 | | - <image width="73%" source=".."/> |
| 385 | + <image width="73%" source="border.eps"/> |
386 | 386 | </figure> |
387 | 387 | <p> |
388 | 388 | Components are added to a border layout by using the <c>add(String |
@@ -441,7 +441,7 @@ contentPane.add("South", inputPanel); // Add to JFrame |
441 | 441 | </p> |
442 | 442 | <figure xml:id="fig-eventmodel"> |
443 | 443 | <caption>Java's event model.</caption> |
444 | | - <image width="73%" source=".."/> |
| 444 | + <image width="73%" source="eventmodel.eps"/> |
445 | 445 | </figure> |
446 | 446 | <p> |
447 | 447 | In an event-driven programming model, |
@@ -471,7 +471,7 @@ Repeat forever or until the program is stopped |
471 | 471 | </p> |
472 | 472 | <figure xml:id="fig-eventhier"> |
473 | 473 | <caption>Java's event hierarchy.</caption> |
474 | | - <image width="73%" source=".."/> |
| 474 | + <image width="73%" source="eventhier.eps"/> |
475 | 475 | </figure> |
476 | 476 | <p> |
477 | 477 | When the user clicks the <c>JButton</c>, Java will create an <c>ActionEvent</c> object. |
|
0 commit comments