Index. Note: Boldface numbers indicate illustrations.

Size: px
Start display at page:

Download "Index. Note: Boldface numbers indicate illustrations."

Transcription

1 Index A aboutthisbean property, 113, , 132 About tab contents for, 132 Features tab contents for, , 133, 134 For bean, 160, 160 If bean, 150 window structure of, , 133 Wiring example tab contents for, 133, 133 absolute URLs and, Abstract Window Toolkit (AWT), 16, 177 layout managers and, 81 Swing and vs., 180 actionerror events, 127 actionperformed description, 257, 257 Add Application Wizard, 38 Add button, 19-21, 19, 20, 21, 184, , 187 Add Class Wizard, 38 Adding Machine adding new elements to, , 149 autoaction property and, , 122 bound properties and, bound test results in, 121 BoundExample applet in, , 121, , 148 CheckBox bean in, 150 connections in, , 116, 117, 118, , 120, 150, 150 fetcharguments event and, , 117, 129, 130 final wiring for, , 123 function beans and, If bean in, inputcondition property in, 150 Plus bean in, , 116, , 120 triggeraction() method in, UnboundExample applet in, , 114 unbound properties in, , 114, 115 alphabeans, xxvi, 113, 124, , 152, 160 AnalogView bean in TimeModelDemo, , 202 anchor in, GridBagConstraints, 109 Applet class, 54, 182 <applet> descriptor, , 319 appletcontext property, , 325 applets, 4, 5, absolute vs. relative URLs and, advanced development techniques for, <applet> descriptor in, , 319 appletcontext property in, , 325 applications using, browser support for, 34-37, 315, 317, , 350, 352 certificates and certification authorities for, , class creation for, 316 ClassLoader service and, 316 compressing contents of, 332 configuration of, context in, creating, 15-16, 316 Drag and Drop functionality in, 339, , 345, 348 exporting to directory, 351 exporting to JAR files, , 333, 334, 335, 349 Factory beans for, , 324 HTML descriptors and, 316 HTML tags and, 325 JAR archive and, 317 Java Virtual Machine (JVM) and, 316 NavigationPanel example of, Netscape Signing Tool for, <param> tags in, , 319 parameters for, , 320, , 321, 322, 323 publishing, RunningText applet example in, security restrictions and (See also browser support of), 38, 315, 350 signing (See also trusted), Swing and, target parameters in, 325 tearing off appletcontext property in, , 325 trusted (See also signing), Uniform Resource Locators (URLs) and, visual components for, 321 application creation, xxvii, 2, 38-43, 49, 315 applets transformed into, ClearList bean for, 41 command prompt to run, exporting to a directory, 45-46, 46 FileName bean for, loading ToDoList to, 40 main() method in, 69 ReadFile bean for, 40-41, 41 referenced classes and, 47 running as independent application, running outside VisualAge for Java, 44-48, Note: Boldface numbers indicate illustrations.

2 414 Index A - C application creation, continued saving ToDoList in, 42 Swing and, , 182 TaskList bean for, 41 working with files in, WriteFile bean for, 40-41, 41 ArithmeticEvaluator bean, 131, 134 ArrayIndexOutOfBoundsException and, arrays, 31, 153 AscendantSequence bean, , 163, 164 attributes, 294 autoaction property and, , 122, , 125, 128 B BackgroundColorPanel, 87-88, 88 BeanInfo page, preferred features setting in, 64-66, 64, 65 BeanObserver bean in, 261, beans, xxv, xxvii, 2, 4, 49, 50 aboutthisbean property and, 113, , 132 autoaction property and, , 122, , 125, 128, bound properties and, , changing name or title of, 60 creating, 52 design patterns for, display name for features in, error handling and, 222 fetcharguments event and, , 117, 129, 130 helpful, , 132, 134 importing, 8-9, 50, preferred features in, 64-66, 64, 65 promoting features of, 61-63, 62, 63, 93-95, 94, 95 property setting for, 60, 61 selecting, 16, 16 setting properties for, 57 unbound properties in, , 114 behaviors (See also properties), 272 bending connection wires, 23, 72, 72 binding keyboard events to components in Swing, 180 blue connection lines, 19 BorderLayout manager, 55, 76-83, 76, 88 bound properties, 18, , autoaction property and, , 122, , 125, 128 function beans and, , 125 If bean, , 145 Iterator bean, , 155 Loop bean, , 157 triggeraction() method and, 121, 126, 128 BoundExample applet, , 121, , 148 BoundJList, 182 BoundJTextField, 182, , 192 BoundList bean, 17, 18, 19, 161 BoundTextField bean in, 161, 166 BoxLayout, 76, 107, 108, 203 branching, 144, 145 browser support for applets, 34-37, 315, 317, , 350, 352 browser support for Swing, 180, 214 Button bean, 19, 56, 177 buttons alignment of, using horizontalalignment, alignment of, using verticalalignment, 188 creating, 16-17, 17 cursor property in, 189, 190 pressedicon property in, 189, , 191 rollovericon property in, , 190 tooltiptext property in, 188, 188 ButtonsPanel in, 305, 305 C Calculator, aboutthisbean properties for, 131 ArithmeticEvaluator bean in, 131, 134 autoaction property and, connections in, 140, 140 DivideButton in, error processing in, error Occurred event for, , 138 MinusButton in, MultiplyButton in, PlusButton in, running, , 140 SimpleCalculator applet for, 131, starting, Step bean in, to simplify wiring, switching operations in, , 137 triggeraction() and, calling methods and, 295 CardContainerPanel, , 103, 105 CardLayout manager, 76, 82, moving through cards or deck of, 105 placing components in, cards, in CardLayout manager, 97 CD companion to book, xxxii, 5-6 certificates and certification authorities, , CHARACTER data type, 364, 365 CheckBox bean, 92, 150 CheckBoxGroup bean, 92-93, 92 CheckBoxMenuItem bean in, 247 classes, 51, 52, attributes in, 294 ClassLoader service and, 316 constructors in, , 292 containers and, 54 creating, 53, 53, 77-78, 78, , 243, 316 importing, 124 Java foundation classes (JFC) and, parameter setting and, , 293, 294 referenced, 47 ClassLoader service and, 316 CLASSPATH, 223, 227, 240, 270, 313 databases and setting, , 380, 381 Clear button, 27, 27 ClearButton, in SwingToDoList, 185, 187 ClearList bean, 41 ClockProject, adding SettingPanel bean to, BackgroundColorPanel and connections in, 87-88, 88, 102 BorderLayout manager used in, 77, 88

3 C - D Index 415 CardContainerPanel and connections in, , 103, 105 CardLayout manager and, 82 CheckBoxGroup bean for, 92-93, 92 Clock class creation for, 77-78, 78 color selection in, connections in, 84-86, 85 copying and modifying the DigitsColorPanel in, 86-87, 87 DateFormatPanel and connections in, , 100 DigitsColorPanel and connections in, 83-86, 84, 85, 86, display names for promoted features in, FlowLayout manager in, 82-90, 83 frame for, 78, 79 IClock bean imported and added to, 79-81, 80 layout manager setup for, placing panels in frame for, promoting SettingPanel features in, 93-95, 94, 95 property setting for IClock in, 80, 80, Radio button panel for, removing unneeded components from, 99 resizing, 89 running, 82, 82, 89 SettingPanel subcomponent for, 91-92, 91, 97, , 98 sizing the clock in, 81 testing, 81, 81, 89 vertical borders for, 89-90, 90 Codd, E.F., 356 color codes for connections, 19 columns, in databases, 357, , , 370, 371 columns, in GridLayout manager, 107 com.sun.java.swing, 179 command prompt to run application, comments, commenting code, committing changes to databases and, 379 Comparators, 6 components and wiring concept, xxv-xxvi, xxv, 4 compressing applet contents, 332 condition testing, , 151 connections, xxv, 4, 19-26, 68-70, 68, 69, 241 aboutthisbean information on, 133, 133 bending, 23, 72, 72 color codes for, 19 crossed wiring in, 71, 71 event-to-code type, 19 event-to-method type, 19, 85, 85 event-to-property type, 19 exceptions thrown by, frame, 78 good wiring style in, 70-73, 71 order and reordering in, 40, 71, 72, 165, 165, , 169, 172 parameter type, 19 property to property type, 19 consequences description in, 113 constraints, 162 database, 363, 372 constructors, , 274, , 292 Container class, 54 containers, 54 layout managers and, 82 placing components in, Swing and, 182 ContentsPane, 78 context, applets and, controller, Swing and, 201 conventions used in book, xxxi Copy and Paste components, 86-87, 87 adding tabs to JTabbedPane using, 199 counting in Java (starting at zero), 234 cursor property, 189, 190 Customizer frame, RunningText applet, , 343 customizing properties, 18-19, 19 D dashed connection lines, 19 DAT files, xxxiii, 10-12, 11 data, 273 Data Access beans, , 382 data types, 153, DatabaseAccess example, database connection for, , 389 DBNavigator bean for, displaying information from, displaying photos in, 393 exporting to a directory, , 399 ExtendedFileDialog bean in, , 394 ImageGlyphFactory bean in, , 394 improvements for, inserting and changing photos in, PhotoJPanel in, , 386, 387 query and Query window in, 388, running as independent application, , 401 running outside VisualAge for Java, Select bean for, starting new project for, TextJPanel in, , 385 unique IDs for, , 396 visual components for, 384 databases, accessing, from VisualAge for Java, columns in, 357, , , 370, 371 committing changes to, 379 connecting to, , 374, , 389 constraints in, 363, 372 creating, , 367, 368 Data Access beans for, , 382 data types in, DatabaseAccess example for, DB2 Universal Database in, , DBNavigator bean for, deleting data in, entering data in, , foreign keys in, for relationships between tables, , 361, 362, 372 inserting and manipulating data in, installation of, 357 Java Database Connectivity (JDBC) for, JDBC driver for, , 381 modifying and updating data in, 378, 378 Open Database Connectivity (ODBC) for, 357 primary key in, 358, 371, 372 query and Query window for, 388, Note: Boldface numbers indicate illustrations.

4 416 Index D - E databases, continued relational, 356, rollback of changes to, 379 rows in, 357, Select bean for, selecting data in, , 376, 377 Show SQL button in, 372 sources for database products, SQL commands for, 373 Structured Query Language (SQL) and, 372 tables in, 357, , , 369 unique IDs for records in, , 396 workspace CLASSPATH setting for, , 380, 381 Date classes, 395 DATE data type, 364 DateFormatPanel, , 100 DB2 Universal Database (See also databases) , , 366, 367, DBNavigator bean for, debugging, actionperformed description in, 257, 257 BeanObserver bean in, 261, connecting EventDebugger to application for, 256, 256 Debugger window for, 258, 258 debugging events and, EventDebugger bean for, full debugging mode in, 255, 265 generated code vs. visual components in, history of actions in, 255, 259, 260 ImageProcessing example for, itemstatechanged option in, , 258 modes for, 255, 265 no debugging mode in, 255, 261, 265 observing state of target bean in, PropertyChangeDebugger bean in, 261 Property-to-PropertyDebugger bean in, 261 requirements specifications and, tracing mode in, 255, 265 WiringDebugger bean suite in, 242, WiringDebuggerMonitor bean in, 261, , 268, 269 DECIMAL data type, 364 deck, in CardLayout manager, 97 DeleteButton in in SwingToDoList, 184, 187 DescendantSequence bean in, , 171 design patterns, aboutthisbean property and, 113, , 132 AddingMachine project in, , 114, 115 alphabeans and, autoaction property and, , 122, , 125, 128, bound properties and, , Calculator project and, consequences description in, 113 error handling and, , 138 fetcharguments event and, , 117, 129, 130 flow control using (See flow control), function bean, If bean, Iterator bean, , 152, 154 Loop bean, pattern name in, 113 problem description in, 113 solution description in, 113 Step bean and, triggeraction() method, , 121, 126, 128, 129, 130, unbound properties in, , 114 DesignPatterns project (See AddingMachine) Dialog class, 54 dialogs, DigitalView bean in TimeModelDemo, , 202 DigitsColorPanel, 83-86, 84, 85, 86 directories, exporting applications to, 45-46, 46, 351, display names for features, Done button, 27-28, 28 DOS command prompt, running application from, double types, 153 Drag and Drop functionality, 339, , 345, 348 drop zones, in layout managers, 88 dynamic creation and reference of bean instance, adding properties in, , 289, 290 attributes in, 294 calling methods and, 295 constructors and, , 292 customizing a bean instance, 274 Factory beans in, 271, object oriented programming and, parameter setting and, , 293, 294 reusable views and, tearing off properties in, , 311 Variable beans in, 271, 297 E easyswing bean suite, 182, 183 encapsulation, xxv, 51 Epoch, 395 error events, ReadFile/WriteFile beans, , 239 error handling, ArrayIndexOutOfBoundsException and, , 232 beans and, 222 comments and commented code in, connections as cause of exception and, Console window showing details of, 230, 230 error events in, exception handling and, exceptionoccurred event in, 233, 233 exceptions and, 222 FileManipulationPanel example of, , 236 handleexception method stub in, , 228

5 E - G Index 417 incorrect values entered and, , 224, 225 NumberFormatException and, , ReadFile bean and, , 239 recognizing exceptions thrown in, SequencesBuilder example of, targetexceptionoccurred in, , 226 throwing and catching an exception in, 222, ToDoList example of, WriteFile bean and, , 239 erroroccured event, , 138, 157 event-to-code connections, 19 event-to-method connection, 19, 85, 85, 85 event-to-property connections, 19 EventDebugger bean, connections for, 256, 256 observing state of target bean in, events, 3, 51, 241 exception handling and, exceptionoccurred event, 233, 233 expert features, 18, 24 exporting applications, , 3991 to directories, 45-46, 46, 351, to JAR file, 35-37, 36, 70, , 333, 334, 335, 349 ExtendedFileDialog, 58-61, , 394 F Factory beans, 271, , , 324 fetcharguments event, , 117, 129, 130, 147 File menu, in ImageProcessing example, , 245 FileDialog beans, 50 FileManagement, 6 FileManipulation, adding FileManipulationPanel to composition in, 67 changing titles of beans in, 60 connections in, 68-70, 68, 69 dialogs for, exporting to JAR file, 70 extending the ToDoList in, FileManipulationPanel bean for, 52-53, 52 layout manager for, LoadFileDialog for, 58-59, 59 preferred features in, 64-66, 64, 65 promoting features in, 61-63, 62, 63 property setting in, 60, 61 removing unneeded components in, 67, 67 running, 69-70, 70 SaveFileDialog for, 59-60, 60 subcomponent layout of, 72, 73 writing the display name for the feature, FileManipulationPanel, 52-53, 52 error events in, ReadFile and WriteFile beans, , 239 error handling and, , 236 testing, , 240 FileName bean, files, loading components to, saving components in, fill in, GridBagConstraints, 109 FLOAT data type, 153, 364 floating point, 153 flow control, branching and, 144, 145 condition testing and, , 151 For bean in, 160, 160 If bean for, inputcondition property in, 150 Iterator bean for, , 152, 154 Loop bean, SequencesBuilder example for, uses for, 144 FlowLayout manager, 55, 76, 82-97, 83 For bean, 160, 160, 161, 162, 171 foreign keys, in databases and, , 361, 362, 372 frames, 39, 54, 77, 182 connections to, 78 creation of, 78, 79 free-form surface of Visual Composition Editor, 16 FriendClass, adding properties to, , 289, 290 FriendInfoView in, Friends Database example, assigning FriendClass instance in, 302 attributes in, 294 ButtonsPanel in, 305, 305 calling methods and, 295 connections in, 298, 298, , 302, 307, 307 constructors in, , 292 FriendInfoView in, FriendsCatalogueApplication in, functionality of, 306 Hashtable instance in, improvements to, 311 instance creation in, parameter setting and, , 293, 294 PhotoView in, preferred features in, 300, 300, 303 promoting a Variable bean in, , 299 promoting other bean features in, 299, 299, 303, 303 running, 313, 313 searching Hashtable in, , 309 sending information between Variable and views, stub creation for, , 304, 305 tearing off properties in, , 311 Variable beans in, 297 wiring simplification in, , 312 full debugging mode in, 255, 265 function beans, 121, , 143 actionerror events in, 127 additional features in, autoaction property and, , 125, 128 bound properties and, , 125 in Calculator project use of, default behavior of, 128 operation property in, 124 property setting for, 127 triggernextaction event in, 127 unbound properties in, , 128, 129 G green connection lines, 19 GridBagLayout manager, 55-58, 76, , 108 gridheight/gridwidth in, GridBagConstraints, 109 GridLayout manager, 55, 76, 107, 107 gridx/gridy in, GridBagConstraints, 109 Note: Boldface numbers indicate illustrations.

6 418 Index H - J H handleexception method stub in, , 228 hardware requirements for VisualAge for Java, Hashtable, 306 adding instance to, searching, , 309 helpful beans, , 132, 134 history of actions in debugging and, 255, 259, 260 Homepage Builder Version 6.0, installation, horizontalalignment, HTML descriptors, for applets and, 316 HTML tags, 325 I IBM DB2 Universal Database Personal Edition, xxxii IBM VisualAge for Java, Entry Edition, xxxii IBM VisualAge for Java, Entry Professional Edition, xxxii IBM WebSphere Homepage Builder, xxxii IClock bean, 79-81, 80 Icon properties, , 186, 187 If bean, aboutthisbean property for, 150 Adding Machine use of, bound properties in, , 145 changing program direction using, on conditions, , 151 connections for, 147 fetcharguments and, 147 triggeraction(), 147 unbound properties for, 146, 146 illegalarguments, 238 Image menu, , 247 ImageCanvas bean for, 331, 331 ImageGlyphFactory bean in, , 394 ImageProcessing example, actionperformed description in, 257, 257 BeanObserver bean in, CheckBoxMenuItem bean in, 247 class creation for, , 243 connecting EventDebugger to application for, 256, 256 creating stub for, EventDebugger bean for, File menu in, , 245 final corrections to, , 267 functionality for, Image menu in, , 247 itemstatechanged option in, , 258 menu bar component in, 242, 244 Menu bean in, MenuSeparator bean for, no debugging mode in, 261 observing state of debug target bean in, Open File option in, 249, 263, 264 OpenMenuItem bean in, 249, 263, 264 requirements specifications and, Revert File option in, , 250, 263 Rotate submenu in, , 247, 249, , 254 rotation commands in, , 247, 249, , 254 RotationFilter bean in, 252, running, 246 Scalable feature bug in, 254 ScalableCheckBoxMenuItem in, 251, 252 testing, , 257, WiringDebugger bean suite and, 242, WiringDebuggingMonitor in, , 268, 269 importing beans, 8-9, 50, importing classes, 124 inheritance, 52 inputcondition property, 150 insets, GridBagConstraints, 109 installing software, instance, 272 instances, instantiation, INTEGER and INT data type, 153, 364 interface layout and design, 16-18, 17 ioerror, 238 ipadx/ipady in, GridBagConstraints, 109 itemstatechanged option, , 258 Iterator bean, 31, 32, , 152, 154 bound properties for, , 155 erroroccurred event in, 157 sorting using, triggeraction(), 157 unbound properties for, , 156 J JApplet, 180, 182, 214 JAR files, xxxiii, 8, 317 accessing images in, 338 compressing contents of, 332 exporting to, 35-37, 36, 70, , 333, 334, 335, 349 Swing and, importing, Java Beans Around the World project, xxi-xxii java command, 44, 47 Java Database Connectivity (JDBC) for, , Java Development Kit (JDK), 44-45, 92, 179 Java foundation classes (JFC) and, Java Virtual Machine (JVM), 44-45, 316 Java, xxiii java.awt.panel, 78 java.util.date class, 395 java.util.hashtables class, 306 JavaBeans, xxvii, 2-3 javax.swing, 179 JButton, 177, 184 JDBC driver, , 381 JDialog bean, in TimeModelDemo, , 207 JFrame, 39, 182, 183, 197 JFrameContentPane, 183, 197 JLabel, 177 JPanel, 182 JProgressBar, 181, 197, , 212, 213 JRE package, 45 JScrollPane, in SwingToDoList, , 192 JSlider, 181, 197, , 209, 210, 211 JTabbedPane, 181, 197, 198, 198 adding tabs to, , 200 tabicon property for, 200 tabplacement property for, 200

7 K - P Index 419 K keys, databases and, 358 L Label bean, 56, 177 layout managers, 55-58, anchor in, 109 BorderLayout, 55, 76-83, 76, 88 BoxLayout, 76, 107, 108 CardLayout, 76, 82, containers and, 82 drop zones in, 88 fill in, 109 FlowLayout, 55, 76, 82-90, 83 GridBagConstraints and, 109 GridBagLayout, 55-58, 76, , 108 gridheight/gridwidth in, 109 GridLayout, 55, 76, 107, 107 gridx/gridy in, 109 insets, 109 ipadx/ipady in, 109 null, 76 placing components within, Radio button panel using, selecting, 55-56, 56 setup for, vertical borders using, 89-90, 90 weightx/weight Y in, 109 LCDView bean in TimeModelDemo, , 202 Less bean, 28-31, 29, 30, 47, 49, 124, LessThan bean, error handling and, , 225 LoadFileDialog bean, 58-59, 59, 62-63, 62, 63 loading components to file, long integers, 153 look and feel concept, Swing and, 178, 179, Loop bean, bound properties in, , 157 triggeraction() in, 159 unbound properties in, , 159 looping For bean in, 160, 160 Iterator bean for, , 152, 154 Loop bean, M main() method, 69 MaxEntities button in SwingToDoList, 185 menu bar CheckBoxMenuItem bean in, 247 File menu in, , 245 in ImageProcessing example, 242, 244 Image menu in, , 247 Menu bean in, MenuItem bean, , 246 MenuSeparator bean for, OpenMenuItem bean in, 249, 263, 264 RevertMenuItem bean in, , 250, 263 Rotate submenu in, , 247, 249, , 254 rotation commands in, , 247, 249, , 254 ScalableCheckBoxMenuItem in, 251, 252 Menu bean in, MenuItem bean, , 246 MenuSeparator bean for, Metal look and feel, 179, 215 methods, 3, 51, 241, 273 calling, 295 Model-View-Controller architecture, Swing and, 181, modes for debugging and, 255, 265 Modify Palette, 9-10, 9 Motif look and feel, 179, , 219 MovingText bean in, 340, 340 N NavigationPanel applet example, absolute vs. relative URLs and, <applet> descriptor in, , 319 appletcontext property in, , 325 browser support for, , 337 configuration of, connections for, , 331 displaying an image in, , 330 exporting to JAR files in, , 333, 334, 335 Factory beans for, , 324 functionality of, 318 ImageCanvas bean for, 331, 331 <param> tags in, , 319 parameters for, , 320, , 321, 322, 323 starting new project for, 318 status line control in, , 328 StringFactory bean for, 323 tearing off appletcontext property in, , 325 uicontrols package for, , 336 Uniform Resource Locators (URLs) and, URLFactory bean for, visual components for, 321 Netscape Signing Tool, no debugging mode in, 255, 261, 265 null layout manager, 76 NumberFormatException, , O object-oriented programming, xxvi, objects, xxv, 2, Open Database Connectivity (ODBC), 357 openerror, 238 OpenMenuItem bean in, 249, 263, 264 operation property, 124 Oracle 8i Database, 356 order of connections, 40, 71, 72 P packages, 6, 49 creating, 14, 14 Swing and, Panel class, 54, 182 <param> tags, applets and, , 319 parameters, 19 applet, , 320, , 321, 322, 323 setting, , 293, 294 target, in applets, 325 pattern name in, 113 PhotoJPanel in, , 386, 387 PhotoView in, Plus bean, 124, 143, 161, , 167 bound properties in, , 120 preferred features, 64-66, 64, 65, 300, 300, 303 pressedicon property, 189, , 191 primary key in databases and, 358, 371, 372 problem description in, 113 Note: Boldface numbers indicate illustrations.

8 420 Index P - S programming concepts, xxiv-xxv projects, 6, 7-9, 8 promotion, 51, 61-63, 62, 63, 93-95, 94, 95, 299, 299, 303, 303 display names for, Variable beans and, , 299 properties, 3, 51, 241, 272 adding, , 289, 290 customizing, 18-19, 19 tear off, , 311 property-to-property connections, 19 PropertyChangeDebugger bean in, 261 Property-to-PropertyDebugger bean in, 261 publishing an applet, R Radio button panel, ReadFile bean, 40-41, 41, 49 error handling in, 222, , 239 promoting features of, 62-63, 62, 63 referenced classes, 47 relational databases, 356, relative URLs and, removing components, 26-28, 27, 67, 67 repositories (See also JAR files), 8 requirements specifications, debugging and, reuse of components, 2 RevertMenuItem bean in, , 250, 263 rollback of changes to databases and, 379 rollovericon property, , 190 Rotate submenu in, , 247, 249, , 254 rotation commands, in ImageProcessing example, , 247, 249, , 254 RotationFilter bean, 252, rows, in databases and, 357, rows, in GridLayout manager, 107 running an application, 13 running applications outside VisualAge for Java, RunningText applet example, Customizer frame in, , 343 DataFlavor window for, , 347, 348 Drag and Drop functionality in, 339, , 345, 348 exporting to directory, 351 exporting to JAR files in, 349 MovingText bean in, 340, 340 parameters for, 340, , 341 running, 342, 342 signing, stub creation for, 339 S Save bean, 26 SaveFileDialog bean, 59-60, 60, 62-63, 62, 63 saving work, 26 ScalableCheckBoxMenuItem in, 251, 252 scrolling, JScrollPane in, , 192 security, applets and (See also browser support for applets), 38, 315, 350 Select bean for databases and, separable model architectures, 201 SequencesBuilder, , 232, 235 ArrayIndexOutOfBoundsExcepti on and, , AscendantSequence bean in, , 163, 164 bean names in, 162 BoundList bean in, 161 BoundTextField bean in, 161, 166 connections as cause of exception and, connections in, 167, 167, , 173, 174 Console window showing exception details for, 230, 230 constraints in, 162 counting in Java and (starting at zero), 234 DescendantSequence bean in, , 171 error handling and, exceptionoccurred event in, 233, 233 final wiring for, , 170 For bean in, , 171 handleexception method stub in, , 228 NumberFormatException and, , Plus bean in, 161, 166, 167, 167 recognizing exceptions thrown in, reordering connections in, 165, 165, , 169, 172 running, 170, 170 second argument in, using VariableHolder bean, , 168 stub creation for, , 161 testing, 165, 165, 232 throwing and catching exceptions in, values for DescendantList in, VariableHolder bean in, 161, 166, , 168 Setting Panel, 91-92, 91, , 97, 98 connections for, 102, 102 property settings for, Show SQL button in, 372 signing an applet, SimpleCalculator applet, 131, sizing a bean, 18 SMALLINT data type, 364 SmartGuide, 12-15, 13, 14 solution description, 113 solution files, xxxiii Sort bean, 6, 31-34, 32, 33, 49 SortedList bean, 32 sorting AscendantSequence bean in, , 163, 164 DescendantSequence bean in, , 171 Iterator bean and, Sort bean in, 6, 31-34, 32, 33 SortedList bean in, 32 sortstringarray() in, 33 sortstringarray(), 33 spreadsheets, xxiv SQL commands, 373 SQL Server, status line control, NavigationPanel applet, , 328

9 S - T Index 421 Step bean, 40, 47, 49, triggeraction() and, string, 153 StringFactory bean, 323 Structured Query Language (SQL) (See also databases), 372 stub creation, , 161 subcomponents, 49-73, 73, creating, defined, Swing, 39, 107, 177 Abstract Windows Toolkit (AWT) vs., 180 applets in, application creation in, , 182 binding keyboard events to components in, 180 browser support for, 180, 214 com.sun.java.swing in, 179 containers in, 182 controller in, 201 cursor property in, 189, 190 easyswing bean suite in, 182, 183 JApplets in, 180 JAR file import for, Java Development Kit (JDK) and, 179 Java foundation classes (JFC) and, Java plug in for, 214 javax.swing in, 179 look and feel concept of, 178, 179, model in, 201 Model-View-Controller architecture in, 181, package names in, palette for, 178 pressedicon property in, 189, , 191 project setup, rollovericon property in, , 190 separable model architectures in, 201 SwingToDoList example in, 180, 182 TimeModelDemo example in, 181, 197 tool tips and, 180, 188, 188 view in, 201 visual features of, 180 SwingToDoList, 180, 182 AddButton in, 184, , 187 adding items to TaskList in, 194 adding visual components in, , 184 alignment and text position of buttons in, BoundJTextField in, , 192 ClearButton in, 185, 187 clearing TaskList in, 194 constraints in, 184 cursor property setting in, 190 DeleteButton in, 184, 187 easyswing bean suite in, 183 final layout for, 193, 193 Icon properties in, , 186, 187 JButtons in, 184 JFrame configuration in, 183 JFrameContentPane configuration in, 183 MaxEntities button in, 185 pressedicon property in, , 191 removing items from TaskList in, 194 restricting number of items in TaskList in, 195 rollover buttons added to, , 190 running, 196, 196 scrolling, JScrollPane in, , 192 testing, 196 tooltiptext property in, 188, 188 wiring and connections in, , 195, 196 switching operations, SimpleCalculator, , 137 T tabicon property, 200 tables in databases and, 357, , , 369 tabplacement property, 200 target parameters in applets, 325 targetexceptionoccurred, , 226 TaskList bean, 32, 41, 51 TaskTextField connections, 21-24, 22, 23, 24 tearing off properties, , 311 applets, appletcontext property, , 325 TextField bean, 19 TextJPanel in, , 385 throwing and catching an exception in, 222, TimeModelDemo, 181, 197 Alarm tab wiring in, , 206 alarmaction setting in, 208, 208 AlarmDialog for, , 207 AnalogView bean in, , 202 Clock tab wiring in, 204, 204 creating package and classes for, 197 DigitalView bean in, , 202 JDialog bean in, , 207 JFrame in, 197 JFrameContentPane in, 197 JProgressBar added to, , 212, 213 JSlider added to, , 209, 210, 211 JTabbedPane added to, 198, 198 LCDView bean in, , 202 tabs added to JTabbedPane in, , 200 testing, 208 TimeModel bean in, , 202, 203 Timer tab wiring in, , 205 wiring and connections for, , 204, 205, 206 ToDoList, 5, 5, 16-26, 134, 223 Add button connected to TaskList, 19-21, 20, 21 Add button connected to TaskTextField in, 22-24, 23, 24 Add button in, 19-21, 19, 20, 21 adding a bean to, 17-18, 17 bean selection in, 16, 16 browser running, 37, 37 Clear button for, 27, 27 connections in, customizing properties for, 18-19, 19 Done button for, 27-28, 28 error handling and, expert features box for, 24 exporting to JAR file, 35-37, 36 final wiring for, 25 incorrect values entered and, , 224, 225 interface layout and design in, 16-18, 17 Iterator design pattern added to, Less bean to limiting number of tasks in, placing a button in, 17, 17 publishing, removing tasks from, 26-28, 27, 67, 67 Note: Boldface numbers indicate illustrations.

10 422 Index T - W ToDoList, continued running, 26, 26 saving, 26 second list added to, 31-34, 31 sizing a bean in, 18 Sort bean to sort tasks in, 31-34, 31 source code (HTML) for, 36-37, 37 TaskTextField text property to previous connection, 21-24, 22, 23, 24 tool tips, 180, 188, 188 tooltiptext property in, 188, 188 tracing mode in debugging and, 255, 265 triggeraction(), , 121, , If bean, 147 Iterator bean, 157 Loop bean, 159 triggernextaction event, 127 trusted applets, tutorials in book, xxix-xxx types, 272, 273 U uicontrols package, 6, , 336 unbound properties, 18, , , 114 fetcharguments event and, , 117, 129, 130 function beans and, , 128, 129 If bean, 146, 146 Iterator bean, , 156, 156 Loop bean, , 159, 159 triggeraction() method and, 115, 129, 130 UnboundExample applet in, , 114, 114 UnboundExample applet in, , 114 Uniform Resource Locators (URLs), URLFactory bean, V VARCHAR data type, 364 Variable beans, 271, 297 promoting, , 299 sending information between views and, VariableHolder bean in, 161, 166, , 168 vertical borders, layout managers and, 89-90, 90 verticalalignment, 188 views FriendInfoView in, PhotoView in, sending information between Variable bean and, Swing and, 201 violet connection lines, 19 Visual Composition Editor, 3-4, 3, 15-16, 15, 49, 274 visual programming concepts, xxiv-xxv, 2, 2-4, 2 visual surface of Visual Composition Editor, 16 VisualAge Developer Domain Web site, xxvi, xxix, 79, 339 VisualAge for Java, xxvii-xxviii adding beans to project in, 9-10 applet creation in, application creation in, 38-43, 39 bean selection in, 16, 16 connections in, customizing properties in, 18-19, 19 importing beans for, 8-9 importing DAT files in the repository, 10-12, 11 interface layout and design in, 16-18, 17 modifying the palette in, 9-10, 9 package added to Workbench in, 12-13, 13 package creation in, 14, 14 placing an object in, 17, 17 project creation in, 7-9, 8 removing tasks in, 26-28, 27 running applications outside, running the application in, 13 saving work in, 26 selecting beans in, 9 sizing a bean in, 18 startup, 6-7 Version 3.02, installation, Version 4.0, installation, Visual Composition Editor for, 15-16, 15 Workbench in, 6-7, 7 W weightx/weight Y in, GridBagConstraints, 109 Windows look and feel, 179, , 218 WiringDebugger bean suite, 242, WiringDebuggingMonitor, 261, , 268, 269 WiringHelpers, 6 Workbench, 6-7, 7 packaged added to, 12-13, 13 WriteFile bean, 40-41, 41, 49, 62-63, 62, 63 error handling and, , 239

Contents Introduction 1

Contents Introduction 1 SELF-STUDY iii Introduction 1 Course Purpose... 1 Course Goals...1 Exercises... 2 Scenario-Based Learning... 3 Multimedia Overview... 3 Assessment... 3 Hardware and Software Requirements... 4 Chapter 1

More information

Supporting Materials

Supporting Materials Preface p. xxiii Introduction p. xxiii Key Features p. xxiii Chapter Outlines p. xxiv Supporting Materials p. xxvi Acknowledgments p. xxvii Java Fundamentals p. 1 Bits, Bytes, and Java p. 2 The Challenge

More information

Index SELF-STUDY. Symbols

Index SELF-STUDY. Symbols SELF-STUDY 393 Index Symbols -... 239 "Event-to-property"... 144 "Faux" variables... 70 %... 239 ( )... 239 (Pme) paradigm... 14 *... 239 +... 239 /... 239 =... 239 = Null... 46 A A project... 24-25, 35

More information

Introduction to the JAVA UI classes Advanced HCI IAT351

Introduction to the JAVA UI classes Advanced HCI IAT351 Introduction to the JAVA UI classes Advanced HCI IAT351 Week 3 Lecture 1 17.09.2012 Lyn Bartram lyn@sfu.ca About JFC and Swing JFC Java TM Foundation Classes Encompass a group of features for constructing

More information

Contents. iii Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services August 1998, Revision B

Contents. iii Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services August 1998, Revision B Contents About the Course...xv Course Overview... xvi Course Map... xvii Module-by-Module Overview... xviii Course Objectives... xxii Skills Gained by Module... xxiii Guidelines for Module Pacing... xxiv

More information

Contents Chapter 1 Introduction to Programming and the Java Language

Contents Chapter 1 Introduction to Programming and the Java Language Chapter 1 Introduction to Programming and the Java Language 1.1 Basic Computer Concepts 5 1.1.1 Hardware 5 1.1.2 Operating Systems 8 1.1.3 Application Software 9 1.1.4 Computer Networks and the Internet

More information

Introduction to Java Programming

Introduction to Java Programming Introduction to Java Programming Length: 5 Days Description: This course presents an overview of the Java programming language, including file I/O threads. In order to build a solid foundation for Java

More information

CHAPTER 1: A GENERAL INTRODUCTION TO PROGRAMMING 1

CHAPTER 1: A GENERAL INTRODUCTION TO PROGRAMMING 1 INTRODUCTION xxii CHAPTER 1: A GENERAL INTRODUCTION TO PROGRAMMING 1 The Programming Process 2 Object-Oriented Programming: A Sneak Preview 5 Programming Errors 6 Syntax/Compilation Errors 6 Runtime Errors

More information

Forte for Java Community Edition 1.0

Forte for Java Community Edition 1.0 Forte for Java Community Edition 1.0 Java Integrated Development Environment Tutorials Tutorials version 0.9.4 Copyright 1997-1999 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303, U.S.A.

More information

Introduction to Java Programming

Introduction to Java Programming Introduction to Java Programming Length: 5 Days Description: This course presents an overview of the Java programming language, including file I/O threads. In order to build a solid foundation for Java

More information

"Charting the Course... Java Programming Language. Course Summary

Charting the Course... Java Programming Language. Course Summary Course Summary Description This course emphasizes becoming productive quickly as a Java application developer. This course quickly covers the Java language syntax and then moves into the object-oriented

More information

Introduction... xv SECTION 1: DEVELOPING DESKTOP APPLICATIONS USING JAVA Chapter 1: Getting Started with Java... 1

Introduction... xv SECTION 1: DEVELOPING DESKTOP APPLICATIONS USING JAVA Chapter 1: Getting Started with Java... 1 Introduction... xv SECTION 1: DEVELOPING DESKTOP APPLICATIONS USING JAVA Chapter 1: Getting Started with Java... 1 Introducing Object Oriented Programming... 2 Explaining OOP concepts... 2 Objects...3

More information

Introduction p. 1 JFC Architecture p. 5 Introduction to JFC p. 7 The JFC 1.2 Extension p. 8 Swing p. 9 Drag and Drop p. 16 Accessibility p.

Introduction p. 1 JFC Architecture p. 5 Introduction to JFC p. 7 The JFC 1.2 Extension p. 8 Swing p. 9 Drag and Drop p. 16 Accessibility p. Introduction p. 1 JFC Architecture p. 5 Introduction to JFC p. 7 The JFC 1.2 Extension p. 8 Swing p. 9 Drag and Drop p. 16 Accessibility p. 17 MVC Architecture p. 19 The MVC Architecture p. 20 Combined

More information

CONTENTS. Chapter 1 Getting Started with Java SE 6 1. Chapter 2 Exploring Variables, Data Types, Operators and Arrays 13

CONTENTS. Chapter 1 Getting Started with Java SE 6 1. Chapter 2 Exploring Variables, Data Types, Operators and Arrays 13 CONTENTS Chapter 1 Getting Started with Java SE 6 1 Introduction of Java SE 6... 3 Desktop Improvements... 3 Core Improvements... 4 Getting and Installing Java... 5 A Simple Java Program... 10 Compiling

More information

Introduction to Graphical Interface Programming in Java. Introduction to AWT and Swing

Introduction to Graphical Interface Programming in Java. Introduction to AWT and Swing Introduction to Graphical Interface Programming in Java Introduction to AWT and Swing GUI versus Graphics Programming Graphical User Interface (GUI) Graphics Programming Purpose is to display info and

More information

Oracle 10g: Java Programming

Oracle 10g: Java Programming Oracle 10g: Java Programming Volume 1 Student Guide D17249GC12 Edition 1.2 July 2005 D19367 Author Kate Heap Technical Contributors and Reviewers Ken Cooper Brian Fry Jeff Gallus Glenn Maslen Gayathri

More information

Chapter 2 FEATURES AND FACILITIES. SYS-ED/ Computer Education Techniques, Inc.

Chapter 2 FEATURES AND FACILITIES. SYS-ED/ Computer Education Techniques, Inc. Chapter 2 FEATURES AND FACILITIES SYS-ED/ Computer Education Techniques, Inc. Objectives You will learn: JDeveloper features. Java in the database. Simplified database access. IDE: Integrated Development

More information

Graphical User Interface (GUI) components in Java Applets. With Abstract Window Toolkit (AWT) we can build an applet that has the basic GUI

Graphical User Interface (GUI) components in Java Applets. With Abstract Window Toolkit (AWT) we can build an applet that has the basic GUI CBOP3203 Graphical User Interface (GUI) components in Java Applets. With Abstract Window Toolkit (AWT) we can build an applet that has the basic GUI components like button, text input, scroll bar and others.

More information

Java Swing. based on slides by: Walter Milner. Java Swing Walter Milner 2005: Slide 1

Java Swing. based on slides by: Walter Milner. Java Swing Walter Milner 2005: Slide 1 Java Swing based on slides by: Walter Milner Java Swing Walter Milner 2005: Slide 1 What is Swing? A group of 14 packages to do with the UI 451 classes as at 1.4 (!) Part of JFC Java Foundation Classes

More information

PROGRAMMING DESIGN USING JAVA (ITT 303) Unit 7

PROGRAMMING DESIGN USING JAVA (ITT 303) Unit 7 PROGRAMMING DESIGN USING JAVA (ITT 303) Graphical User Interface Unit 7 Learning Objectives At the end of this unit students should be able to: Build graphical user interfaces Create and manipulate buttons,

More information

CS 251 Intermediate Programming GUIs: Components and Layout

CS 251 Intermediate Programming GUIs: Components and Layout CS 251 Intermediate Programming GUIs: Components and Layout Brooke Chenoweth University of New Mexico Fall 2017 import javax. swing.*; Hello GUI public class HelloGUI extends JFrame { public HelloGUI ()

More information

Java Application Development

Java Application Development A Absolute Size and Position - Specifying... 10:18 Abstract Class... 5:15 Accessor Methods...4:3-4:4 Adding Borders Around Components... 10:7 Adding Components to Containers... 10:6 Adding a Non-Editable

More information

Forte for Java (Community Edition) QuickStart Guide

Forte for Java (Community Edition) QuickStart Guide Forte for Java (Community Edition) QuickStart Guide Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA 94303 USA 650 960-1300 fax 650 969-9131 Part No.: 806-4569-10 Revision 01, February 2000 Forte

More information

All the Swing components start with J. The hierarchy diagram is shown below. JComponent is the base class.

All the Swing components start with J. The hierarchy diagram is shown below. JComponent is the base class. Q1. If you add a component to the CENTER of a border layout, which directions will the component stretch? A1. The component will stretch both horizontally and vertically. It will occupy the whole space

More information

Chapter 1 GETTING STARTED. SYS-ED/ Computer Education Techniques, Inc.

Chapter 1 GETTING STARTED. SYS-ED/ Computer Education Techniques, Inc. Chapter 1 GETTING STARTED SYS-ED/ Computer Education Techniques, Inc. Objectives You will learn: WSAD. J2EE business topologies. Workbench. Project. Workbench components. Java development tools. Java projects

More information

Week Chapter Assignment SD Technology Standards. 1,2, Review Knowledge Check JP3.1. Program 5.1. Program 5.1. Program 5.2. Program 5.2. Program 5.

Week Chapter Assignment SD Technology Standards. 1,2, Review Knowledge Check JP3.1. Program 5.1. Program 5.1. Program 5.2. Program 5.2. Program 5. Week Chapter Assignment SD Technology Standards 1,2, Review JP3.1 Review exercises Debugging Exercises 3,4 Arrays, loops and layout managers. (5) Create and implement an external class Write code to create

More information

Table of Contents. Chapter 1 Getting Started with Java SE 7 1. Chapter 2 Exploring Class Members in Java 15. iii. Introduction of Java SE 7...

Table of Contents. Chapter 1 Getting Started with Java SE 7 1. Chapter 2 Exploring Class Members in Java 15. iii. Introduction of Java SE 7... Table of Contents Chapter 1 Getting Started with Java SE 7 1 Introduction of Java SE 7... 2 Exploring the Features of Java... 3 Exploring Features of Java SE 7... 4 Introducing Java Environment... 5 Explaining

More information

Graphical User Interface (GUI)

Graphical User Interface (GUI) Graphical User Interface (GUI) Layout Managment 1 Hello World Often have a static method: createandshowgui() Invoked by main calling invokelater private static void createandshowgui() { } JFrame frame

More information

IBM VisualAge for Java,Version3.5. Domino AgentRunner

IBM VisualAge for Java,Version3.5. Domino AgentRunner IBM VisualAge for Java,Version3.5 Domino AgentRunner Note! Before using this information and the product it supports, be sure to read the general information under Notices. Edition notice This edition

More information

This page intentionally left blank

This page intentionally left blank This page intentionally left blank arting Out with Java: From Control Structures through Objects International Edition - PDF - PDF - PDF Cover Contents Preface Chapter 1 Introduction to Computers and Java

More information

Core Java SYLLABUS COVERAGE SYLLABUS IN DETAILS

Core Java SYLLABUS COVERAGE SYLLABUS IN DETAILS Core Java SYLLABUS COVERAGE Introduction. OOPS Package Exception Handling. Multithreading Applet, AWT, Event Handling Using NetBean, Ecllipse. Input Output Streams, Serialization Networking Collection

More information

MyProgram m i ng Lab. get with the programming. Through the power of practice and immediate personalized

MyProgram m i ng Lab. get with the programming. Through the power of practice and immediate personalized get with the programming Through the power of practice and immediate personalized feedback, MyProgrammingLab improves your performance. MyProgram m i ng Lab Learn more at www.myprogramminglab.com Preface

More information

Sri Vidya College of Engineering & Technology

Sri Vidya College of Engineering & Technology UNIT-V TWO MARKS QUESTION & ANSWER 1. What is the difference between the Font and FontMetrics class? Font class is used to set or retrieve the screen fonts.the Font class maps the characters of the language

More information

The AWT Package, An Overview

The AWT Package, An Overview Richard G Baldwin (512) 223-4758, baldwin@austin.cc.tx.us, http://www2.austin.cc.tx.us/baldwin/ The AWT Package, An Overview Java Programming, Lecture Notes # 110, Revised 02/21/98. Preface Introduction

More information

Java Programming. Price $ (inc GST)

Java Programming. Price $ (inc GST) 1800 ULEARN (853 276) www.ddls.com.au Java Programming Length 5 days Price $4235.00 (inc GST) Overview Intensive and hands-on, the course emphasizes becoming productive quickly as a Java application developer.

More information

Murach s Beginning Java with Eclipse

Murach s Beginning Java with Eclipse Murach s Beginning Java with Eclipse Introduction xv Section 1 Get started right Chapter 1 An introduction to Java programming 3 Chapter 2 How to start writing Java code 33 Chapter 3 How to use classes

More information

Designing Applications with JBuilder

Designing Applications with JBuilder Designing Applications with JBuilder JBuilder 2005 Borland Software Corporation 100 Enterprise Way Scotts Valley, California 95066-3249 www.borland.com Refer to the file deploy.html located in the redist

More information

Swing. By Iqtidar Ali

Swing. By Iqtidar Ali Swing By Iqtidar Ali Background of Swing We have been looking at AWT (Abstract Window ToolKit) components up till now. Programmers were not comfortable when doing programming with AWT. Bcoz AWT is limited

More information

CONTENTS. PART 1 Structured Programming 1. 1 Getting started 3. 2 Basic programming elements 17

CONTENTS. PART 1 Structured Programming 1. 1 Getting started 3. 2 Basic programming elements 17 List of Programs xxv List of Figures xxix List of Tables xxxiii Preface to second version xxxv PART 1 Structured Programming 1 1 Getting started 3 1.1 Programming 3 1.2 Editing source code 5 Source code

More information

About the Authors. Who Should Read This Book. How This Book Is Organized

About the Authors. Who Should Read This Book. How This Book Is Organized Acknowledgments p. XXIII About the Authors p. xxiv Introduction p. XXV Who Should Read This Book p. xxvii Volume 2 p. xxvii Distinctive Features p. xxviii How This Book Is Organized p. xxx Conventions

More information

Assignment 1. Application Development

Assignment 1. Application Development Application Development Assignment 1 Content Application Development Day 1 Lecture The lecture provides an introduction to programming, the concept of classes and objects in Java and the Eclipse development

More information

Hypertext Transfer Protocol (HTTP), 256

Hypertext Transfer Protocol (HTTP), 256 Index A Abstract Window Toolkit, 57 ActionPerformed method, 159 Administrative/technical functions, 511 Applets, 1 Application Programmers Interface (API), 51 Arrays, 393 declaration, 393 dostarttag, 395

More information

Part 3: Graphical User Interface (GUI) & Java Applets

Part 3: Graphical User Interface (GUI) & Java Applets 1,QWURGXFWLRQWR-DYD3URJUDPPLQJ (( Part 3: Graphical User Interface (GUI) & Java Applets EE905-GUI 7RSLFV Creating a Window Panels Event Handling Swing GUI Components ƒ Layout Management ƒ Text Field ƒ

More information

COURSE DETAILS & CURRICULUM

COURSE DETAILS & CURRICULUM COURSE DETAILS & CURRICULUM INTRODUCTION What is Oracle Forms? Oracle Form Builder Components Application Code Partitioning Exercise: Preparing to Work with Oracle Forms GETTING STARTED Creating an Oracle

More information

1 OBJECT-ORIENTED PROGRAMMING 1

1 OBJECT-ORIENTED PROGRAMMING 1 PREFACE xvii 1 OBJECT-ORIENTED PROGRAMMING 1 1.1 Object-Oriented and Procedural Programming 2 Top-Down Design and Procedural Programming, 3 Problems with Top-Down Design, 3 Classes and Objects, 4 Fields

More information

Chapter 6: Graphical User Interfaces

Chapter 6: Graphical User Interfaces Chapter 6: Graphical User Interfaces CS 121 Department of Computer Science College of Engineering Boise State University April 21, 2015 Chapter 6: Graphical User Interfaces CS 121 1 / 36 Chapter 6 Topics

More information

Starting Out with Java: From Control Structures Through Objects Sixth Edition

Starting Out with Java: From Control Structures Through Objects Sixth Edition Starting Out with Java: From Control Structures Through Objects Sixth Edition Chapter 12 A First Look at GUI Applications Chapter Topics 12.1 Introduction 12.2 Creating Windows 12.3 Equipping GUI Classes

More information

OracleAS 10g R3: Java Programming

OracleAS 10g R3: Java Programming OracleAS 10g R3: Java Programming Volume I Student Guide D18382GC20 Edition 2.0 April 2007 D50171 Authors Patrice Daux Kate Heap Technical Contributors and Reviewers Ken Cooper C Fuller Vasily Strelnikov

More information

Containers and Components

Containers and Components Containers and Components container A GUI has many components in containers. A container contains other components. A container is also a component; so a container may contain other containers. component

More information

Window Interfaces Using Swing Objects

Window Interfaces Using Swing Objects Chapter 12 Window Interfaces Using Swing Objects Event-Driven Programming and GUIs Swing Basics and a Simple Demo Program Layout Managers Buttons and Action Listeners Container Classes Text I/O for GUIs

More information

JAVA COURSES. Empowering Innovation. DN InfoTech Pvt. Ltd. H-151, Sector 63, Noida, UP

JAVA COURSES. Empowering Innovation. DN InfoTech Pvt. Ltd. H-151, Sector 63, Noida, UP 2013 Empowering Innovation DN InfoTech Pvt. Ltd. H-151, Sector 63, Noida, UP contact@dninfotech.com www.dninfotech.com 1 JAVA 500: Core JAVA Java Programming Overview Applications Compiler Class Libraries

More information

E Oracle 10g Java Bootcamp I v1

E Oracle 10g Java Bootcamp I v1 E Oracle 10g Java Bootcamp I v1 Student Guide Volume 1 D22059GC10 Edition 1.0 October 2005 D22281 Authors Jeff Gallus Glenn Stokol Editor Gayathri Rajagopal Technical Contributors and Reviewers Kenneth

More information

Core Java. Basics of Java. String Handling. OOPS Concepts. Exception Handling

Core Java. Basics of Java. String Handling. OOPS Concepts. Exception Handling Core Java Basics of Java Java - What, Where and Why? History and Features of Java Internals of Java Program Difference between JDK, JRE and JVM Internal Details of JVM Variable and Data Type Unicode System

More information

Human-Computer Interaction IS4300

Human-Computer Interaction IS4300 Human-Computer Interaction IS4300 1 Quiz 3 1 I5 due next class Your mission in this exercise is to implement a very simple Java painting applet. The applet must support the following functions: Draw curves,

More information

CROSS-REFERENCE TABLE ASME A Including A17.1a-1997 Through A17.1d 2000 vs. ASME A

CROSS-REFERENCE TABLE ASME A Including A17.1a-1997 Through A17.1d 2000 vs. ASME A CROSS-REFERENCE TABLE ASME Including A17.1a-1997 Through A17.1d 2000 vs. ASME 1 1.1 1.1 1.1.1 1.2 1.1.2 1.3 1.1.3 1.4 1.1.4 2 1.2 3 1.3 4 Part 9 100 2.1 100.1 2.1.1 100.1a 2.1.1.1 100.1b 2.1.1.2 100.1c

More information

IBM. Developing with IBM Rational Application Developer for WebSphere Software V6

IBM. Developing with IBM Rational Application Developer for WebSphere Software V6 IBM 000-255 Developing with IBM Rational Application Developer for WebSphere Software V6 Download Full Version : http://killexams.com/pass4sure/exam-detail/000-255 Answer: C QUESTION: 99 A developer is

More information

Introduction to Graphical User Interfaces (GUIs) Lecture 10 CS2110 Fall 2008

Introduction to Graphical User Interfaces (GUIs) Lecture 10 CS2110 Fall 2008 Introduction to Graphical User Interfaces (GUIs) Lecture 10 CS2110 Fall 2008 Announcements A3 is up, due Friday, Oct 10 Prelim 1 scheduled for Oct 16 if you have a conflict, let us know now 2 Interactive

More information

The figure below shows the Dreamweaver Interface.

The figure below shows the Dreamweaver Interface. Dreamweaver Interface Dreamweaver Interface In this section you will learn about the interface of Dreamweaver. You will also learn about the various panels and properties of Dreamweaver. The Macromedia

More information

CSSE 220 Day 19. Object-Oriented Design Files & Exceptions. Check out FilesAndExceptions from SVN

CSSE 220 Day 19. Object-Oriented Design Files & Exceptions. Check out FilesAndExceptions from SVN CSSE 220 Day 19 Object-Oriented Design Files & Exceptions Check out FilesAndExceptions from SVN A practical technique OBJECT-ORIENTED DESIGN Object-Oriented Design We won t use full-scale, formal methodologies

More information

Introduction... xxxiii. Chapter 1: Essential Java In Depth... 2

Introduction... xxxiii. Chapter 1: Essential Java In Depth... 2 Introduction... xxxiii Chapter 1: Essential Java... 1 In Depth... 2 All about Java... 2 Java Appears... 3 All about Bytecodes... 3 Features of Java... 4 Java Environment... 6 Java Development Kit... 6

More information

Creating Professional Swing UIs Using the NetBeans GUI Builder

Creating Professional Swing UIs Using the NetBeans GUI Builder Creating Professional Swing UIs Using the NetBeans GUI Builder Tomas Pavek, Jan Stola, Scott Violet Sun Microsystems http://www.netbeans.org http://swinglabs.dev.java.net TS-4916 Copyright 2006, Sun Microsystems,

More information

CSSE 220 Day 19. Object-Oriented Design Files & Exceptions. Check out FilesAndExceptions from SVN

CSSE 220 Day 19. Object-Oriented Design Files & Exceptions. Check out FilesAndExceptions from SVN CSSE 220 Day 19 Object-Oriented Design Files & Exceptions Check out FilesAndExceptions from SVN A practical technique OBJECT-ORIENTED DESIGN Object-Oriented Design We won t use full-scale, formal methodologies

More information

China Jiliang University Java. Programming in Java. Java Swing Programming. Java Web Applications, Helmut Dispert

China Jiliang University Java. Programming in Java. Java Swing Programming. Java Web Applications, Helmut Dispert Java Programming in Java Java Swing Programming Java Swing Design Goals The overall goal for the Swing project was: To build a set of extensible GUI components to enable developers to more rapidly develop

More information

JAVA MICROSERVICES. Java Language Environment. Java Set Up. Java Fundamentals. Packages. Operations

JAVA MICROSERVICES. Java Language Environment. Java Set Up. Java Fundamentals. Packages. Operations Java Language Environment JAVA MICROSERVICES Object Oriented Platform Independent Automatic Memory Management Compiled / Interpreted approach Robust Secure Dynamic Linking MultiThreaded Built-in Networking

More information

Visit for more.

Visit  for more. Chapter 3: Getting Started with JAVA IDE Programming Informatics Practices Class XI (CBSE Board) Revised as per CBSE Curriculum 2015 Visit www.ip4you.blogspot.com for more. Authored By:- Rajesh Kumar Mishra,

More information

Abstract Window Toolkit Overview

Abstract Window Toolkit Overview In this chapter: Components Peers Layouts Containers And the Rest Summary 1 Abstract Window Toolkit Overview For years, programmers have had to go through the hassles of porting software from BSD-based

More information

Index. Animation. factors, 186. Abstract Window Toolkit (AWT), 111. frame rate, 185. Access modifiers. multiple objects. package-private, 27

Index. Animation. factors, 186. Abstract Window Toolkit (AWT), 111. frame rate, 185. Access modifiers. multiple objects. package-private, 27 Index A Abstract Window Toolkit (AWT), 111 Access modifiers package-private, 27 private, 27 protected, 27 public, 27 Additive operators, 57 58 Animal classes animals speak, 106 Carnivore interface, 105

More information

11/6/15. Objec&ves. RouleQe. Assign 8: Understanding Code. Assign 8: Bug. Assignment 8 Ques&ons? PROGRAMMING PARADIGMS

11/6/15. Objec&ves. RouleQe. Assign 8: Understanding Code. Assign 8: Bug. Assignment 8 Ques&ons? PROGRAMMING PARADIGMS Objec&ves RouleQe Assign 8: Refactoring for Extensibility Programming Paradigms Introduc&on to GUIs in Java Ø Event handling Nov 6, 2015 Sprenkle - CSCI209 1 Nov 6, 2015 Sprenkle - CSCI209 2 Assign 8:

More information

Educational Fusion. Implementing a Production Quality User Interface With JFC

Educational Fusion. Implementing a Production Quality User Interface With JFC Educational Fusion Implementing a Production Quality User Interface With JFC Kevin Kennedy Prof. Seth Teller 6.199 May 1999 Abstract Educational Fusion is a online algorithmic teaching program implemented

More information

Java: Graphical User Interfaces (GUI)

Java: Graphical User Interfaces (GUI) Chair of Software Engineering Carlo A. Furia, Marco Piccioni, and Bertrand Meyer Java: Graphical User Interfaces (GUI) With material from Christoph Angerer The essence of the Java Graphics API Application

More information

CSE 143. Event-driven Programming and Graphical User Interfaces (GUIs) with Swing/AWT

CSE 143. Event-driven Programming and Graphical User Interfaces (GUIs) with Swing/AWT CSE 143 Event-driven Programming and Graphical User Interfaces (GUIs) with Swing/AWT slides created by Marty Stepp based on materials by M. Ernst, S. Reges, D. Notkin, R. Mercer, Wikipedia http://www.cs.washington.edu/331/

More information

DRAFT. Table of Contents About this manual... ix About CuteSITE Builder... ix. Getting Started... 1

DRAFT. Table of Contents About this manual... ix About CuteSITE Builder... ix. Getting Started... 1 DRAFT Table of Contents About this manual... ix About CuteSITE Builder... ix Getting Started... 1 Setting up... 1 System Requirements... 1 To install CuteSITE Builder... 1 To register CuteSITE Builder...

More information

COURSE DETAILS: CORE AND ADVANCE JAVA Core Java

COURSE DETAILS: CORE AND ADVANCE JAVA Core Java COURSE DETAILS: CORE AND ADVANCE JAVA Core Java 1. Object Oriented Concept Object Oriented Programming & its Concepts Classes and Objects Aggregation and Composition Static and Dynamic Binding Abstract

More information

Oracle Fusion Middleware 11g: Build Applications with Oracle Forms

Oracle Fusion Middleware 11g: Build Applications with Oracle Forms Oracle University Contact Us: 00 9714 390 9050 Oracle Fusion Middleware 11g: Build Applications with Oracle Forms Duration: 5 Days What you will learn This course is also suitable for customers using Forms

More information

WIMP Elements. GUI goo. What is WIMP?

WIMP Elements. GUI goo. What is WIMP? WIMP Elements GUI goo What is WIMP? 1 There are many kinds of WIMPs WIMP The GUI Interface Windows Icons Menus Pointers 2 Windows Icons Pointers Menus Windows Windows are areas of the screen that act like

More information

How to be a Good Bean

How to be a Good Bean How to be a Good Bean A JavaBeans component, or simply a Bean, is a reusable software component that can be manipulated visually in a builder tool. The JavaBeans 1.0 architecture specifies how a JavaBeans

More information

SELF-STUDY. Glossary

SELF-STUDY. Glossary SELF-STUDY 231 Glossary HTML (Hyper Text Markup Language - the language used to code web pages) tags used to embed an applet. abstract A class or method that is incompletely defined,

More information

CS506 Web Programming and Development Solved Subjective Questions With Reference For Final Term Lecture No 1

CS506 Web Programming and Development Solved Subjective Questions With Reference For Final Term Lecture No 1 P a g e 1 CS506 Web Programming and Development Solved Subjective Questions With Reference For Final Term Lecture No 1 Q1 Describe some Characteristics/Advantages of Java Language? (P#12, 13, 14) 1. Java

More information

Graphical User Interfaces. Comp 152

Graphical User Interfaces. Comp 152 Graphical User Interfaces Comp 152 Procedural programming Execute line of code at a time Allowing for selection and repetition Call one function and then another. Can trace program execution on paper from

More information

Console Guide. Version 4.4

Console Guide. Version 4.4 Console Guide Version 4.4 Table of Contents Preface 4 Who Should Use This Guide 4 How This Guide is Organized 4 Document Feedback 4 Document Conventions Used in This Guide 5 Connecting to the Database

More information

Syllabus & Curriculum for Certificate Course in Java. CALL: , for Queries

Syllabus & Curriculum for Certificate Course in Java. CALL: , for Queries 1 CONTENTS 1. Introduction to Java 2. Holding Data 3. Controllin g the f l o w 4. Object Oriented Programming Concepts 5. Inheritance & Packaging 6. Handling Error/Exceptions 7. Handling Strings 8. Threads

More information

Creating your first JavaServer Faces Web application

Creating your first JavaServer Faces Web application Chapter 1 Creating your first JavaServer Faces Web application Chapter Contents Introducing Web applications and JavaServer Faces Installing Rational Application Developer Setting up a Web project Creating

More information

The Definitive Guide to. NetBeans Platform 7. Heiko Bock. Apress*

The Definitive Guide to. NetBeans Platform 7. Heiko Bock. Apress* The Definitive Guide to NetBeans Platform 7 Heiko Bock Apress* Contents About the Author About the Translator About the Technical Reviewers Acknowledgments Introduction xiv xiv xv xvi xvii * Part 1: Basics

More information

Software Development & Education Center. Java Platform, Standard Edition 7 (JSE 7)

Software Development & Education Center. Java Platform, Standard Edition 7 (JSE 7) Software Development & Education Center Java Platform, Standard Edition 7 (JSE 7) Detailed Curriculum Getting Started What Is the Java Technology? Primary Goals of the Java Technology The Java Virtual

More information

Chapter 13. Applets and HTML. HTML Applets. Chapter 13 Java: an Introduction to Computer Science & Programming - Walter Savitch 1

Chapter 13. Applets and HTML. HTML Applets. Chapter 13 Java: an Introduction to Computer Science & Programming - Walter Savitch 1 Chapter 13 Applets and HTML HTML Applets Chapter 13 Java: an Introduction to Computer Science & Programming - Walter Savitch 1 Overview Applets: Java programs designed to run from a document on the Internet

More information

Unit 6: Graphical User Interface

Unit 6: Graphical User Interface Faculty of Computer Science Programming Language 2 Object oriented design using JAVA Dr. Ayman Ezzat Email: ayman@fcih.net Web: www.fcih.net/ayman Unit 6: Graphical User Interface 1 1. Overview of the

More information

Core Java Syllabus. Pre-requisite / Target Audience: C language skills (Good to Have)

Core Java Syllabus. Pre-requisite / Target Audience: C language skills (Good to Have) Overview: Java programming language is developed by Sun Microsystems. Java is object oriented, platform independent, simple, secure, architectural neutral, portable, robust, multi-threaded, high performance,

More information

Introduction to IBM Rational HATS For IBM System i (5250)

Introduction to IBM Rational HATS For IBM System i (5250) Introduction to IBM Rational HATS For IBM System i (5250) Introduction to IBM Rational HATS 1 Lab instructions This lab teaches you how to use IBM Rational HATS to create a Web application capable of transforming

More information

Rational Application Developer 7 Bootcamp

Rational Application Developer 7 Bootcamp Rational Application Developer 7 Bootcamp Length: 1 week Description: This course is an intensive weeklong course on developing Java and J2EE applications using Rational Application Developer. It covers

More information

Essential Series. Springer-Verlag London Ltd.

Essential Series. Springer-Verlag London Ltd. Essential Series Springer-Verlag London Ltd. Also in this series: Essential Visual Basic 4.0 fast 3-540-19998-5 Essential Delphi 2.0 fast 3-540-76026-1 Essential Java fast 3-540-76052-0 Essential Visual

More information

CSC 8205 Advanced Java

CSC 8205 Advanced Java Please read this first: 1) All the assignments must be submitted via blackboard account. 2) All the assignments for this course are posted below. The due dates for each assignment are announced on blackboard.

More information

Graphical User Interface (GUI)

Graphical User Interface (GUI) Graphical User Interface (GUI) An example of Inheritance and Sub-Typing 1 Java GUI Portability Problem Java loves the idea that your code produces the same results on any machine The underlying hardware

More information

Oracle Fusion Middleware 11g: Build Applications with Oracle Forms

Oracle Fusion Middleware 11g: Build Applications with Oracle Forms Oracle University Contact Us: +381 11 2016811 Oracle Fusion Middleware 11g: Build Applications with Oracle Forms Duration: 5 Days What you will learn This course teaches students how to use Oracle Forms

More information

Topic 9: Swing. Swing is a BIG library Goal: cover basics give you concepts & tools for learning more

Topic 9: Swing. Swing is a BIG library Goal: cover basics give you concepts & tools for learning more Swing = Java's GUI library Topic 9: Swing Swing is a BIG library Goal: cover basics give you concepts & tools for learning more Assignment 5: Will be an open-ended Swing project. "Programming Contest"

More information

Topic 9: Swing. Why are we studying Swing? GUIs Up to now: line-by-line programs: computer displays text user types text. Outline. 1. Useful & fun!

Topic 9: Swing. Why are we studying Swing? GUIs Up to now: line-by-line programs: computer displays text user types text. Outline. 1. Useful & fun! Swing = Java's GUI library Topic 9: Swing Swing is a BIG library Goal: cover basics give you concepts & tools for learning more Why are we studying Swing? 1. Useful & fun! 2. Good application of OOP techniques

More information

Packages: Putting Classes Together

Packages: Putting Classes Together Packages: Putting Classes Together 1 Introduction 2 The main feature of OOP is its ability to support the reuse of code: Extending the classes (via inheritance) Extending interfaces The features in basic

More information

Graphical User Interface (GUI)

Graphical User Interface (GUI) Graphical User Interface (GUI) Layout Managment 1 Hello World Often have a run method to create and show a GUI Invoked by main calling invokelater private void run() { } JFrame frame = new JFrame("HelloWorldSwing");

More information

GUI Components Continued EECS 448

GUI Components Continued EECS 448 GUI Components Continued EECS 448 Lab Assignment In this lab you will create a simple text editor application in order to learn new GUI design concepts This text editor will be able to load and save text

More information

John Hunt and Alex McManus. Key Java. Advanced Tips and Techniques

John Hunt and Alex McManus. Key Java. Advanced Tips and Techniques John Hunt and Alex McManus Key Java Advanced Tips and Techniques Preface xiii Part 1 Java Development 1 Introduction 3 1.1 Introduction 3 1.2 A Brief History of Java 3 1.3 The Three Stages of Java 4 1.4

More information

JFormDesigner 6 Documentation

JFormDesigner 6 Documentation Copyright 2004-2017 FormDev Software GmbH. All rights reserved. Contents 1 Introduction... 2 2 User Interface... 3 2.1 Menus... 4 2.2 Toolbars... 6 2.3 Design View... 7 2.3.1 Headers... 9 2.3.2 In-place-editing...

More information