unit-vi - Unit-vi Introduction Graphical user interface...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
Unit-vi
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Introduction Graphical user interface (GUI) Presents a user-friendly mechanism for interacting with an application. Built from GUI components. Command Line interface In a command Line interface the commands are entered from the keyboard. It is not user-friendly. Difficult to remember commands.
Background image of page 2
Most modern programs use a GUI (pronounced “gooey”): G raphical: Not just text or characters but windows, menus, buttons, . . U ser: Person using the program I nterface: Way to interact with the program
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Graphical elements include: Window : Portion of screen that looks as a window within the screen. Menu : List of alternatives offered to user Button : Looks like a button that can be pressed Text fields: The user can write something in etc.
Background image of page 4
button menus title bar menu bar combo box scroll bars | Internet Explorer window with GUI components .
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Abstract Window Toolkit (AWT) The AWT contains several classes and methods that allow you to create and manage windows/GUI (Graphical User Interface ). The main purpose of the AWT is to support applet windows. It can also be used to create stand-alone GUI applications.
Background image of page 6
AWT class hierarchy Component Container Window Panel Frame Label Button TextComponent TextField TextArea Choice CheckBox CheckBoxGroup Scrollbar MenuComponent List MenuItem MenuBar Menu Dialog Canvas ScrollPane
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Component : This is superclass of all user interface classes. A component is something that can be displayed on a two-dimensional screen and with which the user can interact. Attributes of a component include a size, a location, foreground and background colors, whether or not visible etc Methods defined in class Component are: setLocation(int,int), getLocation() --- set and get component location setSize(int,int), getSize() ---- set and get component size setVisible() ---show or hide the component setForeground(Color), getForeground() – set and get foreground colors setBackground(Color), getBackground() -- set and get background colors.
Background image of page 8
Container This is a type of component that can nest other components within it. Ex:- Window, Frame, and panel are examples of containers. Methods defined in a class Container are: setLayout(LayoutManager) -- sets layout manager for display. add( Component ) -- add component to the display remove( Component ) -- remove component from dispaly
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Window : Window is a type of container, which has two-dimensional surface that can be displayed on an output device. It does not have title bar, menu , borders, and resizing corners. Frame : It is a type of Window with a title bar, menu bar , borders, and resizing corners. Methods defined in a
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/23/2012 for the course CS 101 taught by Professor Martand during the Spring '10 term at Punjab Engineering College.

Page1 / 110

unit-vi - Unit-vi Introduction Graphical user interface...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online