Pluggable look-and-feel– SWING based GUI Application look and feel can be changed at run time based on available values.Highly Customizable – Swing controls can be customized in very easy way as visual apperance is independent of internal representation.Rich controls – Swing provides a rich set of advanced controls like Tree, TabbedPane, slider, colorpicker, table controls.Light Weight – Swing component are independent of native Operating System’s API as Swing API controls are rendered mostly using pure JAVA code instead of underlying operating system calls.Behavior: These are events which occur when the user interacts with UI elements.Layouts: They define how UI elements should be organized on the screen and provide a final look and feel to the GUI (Graphical User Interface).GWT provides a huge list of widely used and common elements varying from basic to complex. UI elements : These are the core visual elements the user eventually sees and interacts with.Using this way, Swing has pluggable look-and-feel architecture.Įvery user interface considers the following three main aspects: Swing component have Model as a seperate element and View and Controller part are clubbed in User Interface elements.Controller takes the input from the user on the view and reflects the changes in Component’s data.View represents visual representation of the component’s data.Swing API architecture follows loosely based MVC architecture in the following manner. The javax.swing package provides classes for java swing API such as JButton, JTextField, JTextArea, JRadioButton, JCheckbox, JMenu, JColorChooser etc. Unlike AWT, Java Swing provides platform-independent and lightweight components. API is to use the Java Bean model so that Builder Tools and IDE can provide better services to the developers to use it.API is to model driven so that highest level API is not required to have the data. ![]() A single API is to be sufficient to support multiple look and feel.Swing component follows a Model-View-Controller architecture to fulfill the following criteria. It is build upon top of AWT API and acts as replacement of AWT API as it has almost every control corresponding to AWT controls. Swing API is set of extensible GUI Components to ease developer’s life to create JAVA based Front End/ GUI Applications. JAVA provides a rich set of libraries to create Graphical User Interface in platform independent way. Swing was developed to provide a more sophisticated set of GUI components than the earlier Abstract Window Toolkit (AWT). It is part of Oracle’s Java Foundation Classes (JFC) – an API for providing a graphical user interface (GUI) for Java programs.
0 Comments
Leave a Reply. |