Presentation is loading. Please wait.

Presentation is loading. Please wait.

Cs413_chapt02.ppt CS413 Advanced Swing Graphical User Interface Components Text: Advanced Java 2 Platform: Chapter 2 Abstract Windowing Toolkit (AWT) Library.

Similar presentations


Presentation on theme: "Cs413_chapt02.ppt CS413 Advanced Swing Graphical User Interface Components Text: Advanced Java 2 Platform: Chapter 2 Abstract Windowing Toolkit (AWT) Library."— Presentation transcript:

1 cs413_chapt02.ppt 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) Swing Components Develop functionally rich GUI interfaces More complete set of GUI components than AWT More advanced features New Java Class’ JEditorPane Rendering of Styled objects i.e. HTML pages, build a web browser Swing Actions To build reusable, user-interface logic components JSplitPane and JTabbedPane Multiple-document-interface components For organizing GUI elements

2 cs413_chapt02.ppt CS413 JTextComponent – Class Base 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 – sublclass Provides a larger visible area Supports larger plain-text documents No special text styling Text is a single font and color JEditorPane – subclass Enhanced text-rendering Supports styled documents formatting, font and color Render HTML and Rich Text Format (RTF) JTextPane – subclass Only styled documents and not plain text Fine-grained control over the style of: Each character Each paragraph

3 cs413_chapt02.ppt 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


Download ppt "Cs413_chapt02.ppt CS413 Advanced Swing Graphical User Interface Components Text: Advanced Java 2 Platform: Chapter 2 Abstract Windowing Toolkit (AWT) Library."

Similar presentations


Ads by Google