1 / 4

Graphical user interfaces

Graphical user interfaces. Chapter 17. Some GUI already used in text. scrollbars, labels, textfields, buttons New Ones: Checkboxes, group checkboxes (radio buttons), choiceboxes (drow down lists), textboxes, canvasses, panels, layout managers. For each GUI component:. The implements class

corbin
Download Presentation

Graphical user interfaces

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Graphical user interfaces Chapter 17

  2. Some GUI already used in text • scrollbars, labels, textfields, buttons • New Ones: • Checkboxes, group checkboxes (radio buttons), choiceboxes (drow down lists), textboxes, canvasses, panels, layout managers

  3. For each GUI component: • The implements class • Declaration and initialization • Registration • The event handling • See Demo program in chapter for various GUI (checkboxes, checkbox groups) • Note method …public void itemStateChanged(ItemEvent e) {

  4. Make use of the item chosen by the program user • Choiceboxes (drop down lists) • Again see program Demo similar to menus (not allowed with applets) • Text areas: text in a window that has scrollbars left/right and up/down as needed • Canvasses – See program CanvasDemo • Panels • Layout Managers Flow layout managers

More Related