CS 413 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’ JEditor. Pane Rendering of Styled objects i. e. HTML pages, build a web browser Swing Actions To build reusable, user-interface logic components JSplit. Pane and JTabbed. Pane Multiple-document-interface components For organizing GUI elements cs 413_chapt 02. ppt
CS 413 JText. Component – Class Base class for all Swing text components JText. Field – subclass Single line text component Input/output No special text styling Text is a single font and color JPassword. Field – subclass Obtaining passwords JText. Area – sublclass Provides a larger visible area Supports larger plain-text documents No special text styling Text is a single font and color JEditor. Pane – subclass Enhanced text-rendering Supports styled documents formatting, font and color Render HTML and Rich Text Format (RTF) JText. Pane – subclass Only styled documents and not plain text Fine-grained control over the style of: Each character Each paragraph cs 413_chapt 02. ppt