1 / 9

Advanced GUI Components in JAVA

Advanced GUI Components in JAVA. Eric Stokes, Matt Behling. Advanced Layout Managers. GridbagLayout CardLayout SpringLayout. GridBagLayout. Advanced Layout Versatile U ses constraints to define positions. CardLayout. Similar to using tabbed panes

khalil
Download Presentation

Advanced GUI Components in JAVA

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. Advanced GUI Components in JAVA Eric Stokes, Matt Behling

  2. Advanced Layout Managers • GridbagLayout • CardLayout • SpringLayout

  3. GridBagLayout • Advanced Layout • Versatile • Uses constraints to define positions

  4. CardLayout • Similar to using tabbed panes • Gives the illusion of “hiding” and “showing components” • Keeps the state of components since it simply hides an entire JPanel • Can Use multiple switching components such as JMenu or JComboBox

  5. SpringLayout • Rudimentary layout • Not recommended for hand coding • Components are defined by their relationships to other components

  6. Other GUI Components • Tabbed Panes • JMenu • Buttons With Icons

  7. Tabbed Panes • Similar Behavior to CardLayout with a tab interface • Allows the use of Icons the same as JButtons

  8. Jbuttons and Icons • Icons can be added to a button • The Icon is defaulted to the Left of text

  9. JMenu • Creates a menu similar to many applications • Useful for saving, loading, new, functions that would be accessed from many different parts of an application • Menus created from top down, Create MenuBar, then Menu, then MenuItem • Also Allows Icons

More Related