Ted Young

Subscribe to Ted Young: eMailAlertsEmail Alerts
Get Ted Young: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Top Stories by Ted Young

When creating user interfaces for a data entry application (as opposed to one where the user is directly manipulating graphics, such as a network diagram designer), a typical scenario is to create some containers, instantiate their layout managers, and add some components such as JLabels, JTextFields, or JButtons. When the application needs to gather the information entered by the user, it accesses the components directly. Figure 1 shows a screen with a table of information (a book inventory) and a search area that allows users to find one of the books by various criteria specified in the fields.   To find a book with a given word in its title or description, the user enters the query criteria and presses the "Search" button. After the query has executed, the matching items in the table are then highlighted. Listing 1 shows a typical example of how the code can be w... (more)