1 / 3

CS413 Advanced Swing Graphical User Interface Components

CS413 Advanced Swing Graphical User Interface Components. Text: Advanced Java 2 Platform: Chapter 2 Abstract Windowing Toolkit (AWT) Library of pre-written Java code for graphical and data manipulation Java Foundation Class (JFC)

Télécharger la présentation

CS413 Advanced Swing Graphical User Interface Components

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. CS413Advanced Swing Graphical User Interface Components Text: Advanced Java 2 Platform: Chapter 2 Abstract Windowing Toolkit (AWT)Library of pre-written Java code for graphical and data manipulation Java Foundation Class (JFC) Swing ComponentsDevelop functionally rich GUI interfacesMore complete set of GUI components than AWT More advanced features New Java Class’ JEditorPaneRendering of Styled objects i.e. HTML pages, build a web browser Swing ActionsTo build reusable, user-interface logic components JSplitPane and JTabbedPane Multiple-document-interface components For organizing GUI elements

  2. CS413 JTextComponent – ClassBase class for all Swing text components JTextField – subclass Single line text component Input/output No special text styling Text is a single font and color JPasswordField – subclass Obtaining passwords JTextArea – sublclassProvides a larger visible area Supports larger plain-text documents No special text styling Text is a single font and color JEditorPane – subclassEnhanced text-rendering Supports styled documents formatting, font and color Render HTML and Rich Text Format (RTF)JTextPane – subclassOnly styled documents and not plain text Fine-grained control over the style of: Each character Each paragraph

  3. CS413 Sample: WebBrowserPane.java(Page 31, Figure 2.1) WebToolBar.java(Page 35, Figure 2.3) WebBrowser.java(Page 38, Figure 2.4) – Initial Program

More Related