Advanced OOP MCS-3 OOP BSCS-3 Lecture # 7. GUI Components - > Jframe ->JPasswordField (javax.Swing.JPasswordField) GUI Components - > Jframe ->JPasswordField.

Slides:



Advertisements
Similar presentations
1 Chapter 8 Objects and Classes Lecture 2 Prepared by Muhanad Alkhalisy.
Advertisements

1 Chapter 13 Creating User Interfaces. 2 Objectives F To create graphical user interfaces with various user-interface components: JButton, JCheckBox,
Creating Graphical User Interfaces
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 16 Creating User Interfaces.
Lecture 16: GUI programming JFrame windows (p.247) Containers and layout managers (p.290) Inheriting GUI components (p.330) Chapter 12: GUI programming.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 15 Creating User.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved L03 (Chapter 15) Creating.
1 Creating User Interfaces. 2 Motivations A graphical user interface (GUI) makes a system user-friendly and easy to use. Creating a GUI requires creativity.
LAB SESSION 9 * COMPONENTS IN JAPPLET * SETBOUNDS METHOD * DIRECTION OF INPUT TO STDIN.
Advanced Java Class GUI, part 2. JComponent methods addXXXListener(XXXListener) repaint() – [optional arguments: delay and coordinates of sub-area to.
PROGRAMMING REVIEW Lab 2 EECS 448 Dr Fengjun Li and Meenakshi Mishra.
Advanced Java and Android Programming Day 1: Introduction to GUI Programming Intro to GUI Programming1.
1 TCSS 143, Autumn 2004 Lecture Notes Graphical User Interfaces Koffman/Wolfgang Appendix C, pp
1 Unit 9 : Graphical User Interface (GUI) 1. Explain the problem of creating a cross-platform GUI 2. Describe the Java way of creating GUIs 3. Use different.
TCU CoSc Introduction to Programming (with Java) Java Components.
Combo Box, Check Boxes, and Radio Buttons. Radio Buttons User can click radio buttons, just like other buttons BUT Radio buttons are mutually exclusive.
OBJECT ORIENTED PROGRAMMING
CIS 068 Welcome to CIS 083 ! Introduction to GUIs: JAVA Swing.
Creating User Interfaces F JComponent F JButton F JLabel F JTextField F JTextArea F JComboBox F JList F JCheckBox F JRadioButton F Dialogs.
1 TCSS 360, Spring 2005 Lecture Notes Model-View-Controller paradigm; Observer pattern; Creating Graphical User Interfaces in Java/Swing Relevant Reading:
A First Look at GUI Applications Part IV: Radio Buttons 1.
Chapter 9: Creating User Interfaces What is JavaBean? What is JavaBean? JComponent JComponent JButton JButton JLabel JLabel JTextField JTextField JTextArea.
Chapter 13 Creating User Interfaces F What is JavaBeans?  Component and JComponent F JButton  ImageIcon  JLabel  JTextField  JTextArea  JComboBox.
MT311 Java Application Development and Programming Languages Li Tak Sing ( 李德成 )
Java Swing. The origins of the Swing The AWT components use native code resources and referred to as heavyweight. The native use of peers led to several.
Java Swing. Swing is a set of classes that provides more powerful and flexible components than are possible with the AWT. In addition to the familiar.
SWING. AbstractButton Swing Buttons are subclasses of the AbstractButton class, which extends JComponent. Abstract class javax.swing.AbstractButton AbstractButton.
Chapter 9: Creating User Interfaces What is JavaBean? What is JavaBean? JComponent JComponent Jbutton Jbutton ImageIcon ImageIcon JLabel JLabel JTextField.
CS 112 Introduction to Programming Swing/Android GUI Programming Yang (Richard) Yang Computer Science Department Yale University 308A Watson, Phone:
CC1007NI: Further Programming Week 6-7 Dhruba Sen Module Leader (Islington College)
Dale Roberts GUI Programming using Java - GUI Components Dale Roberts, Lecturer Computer Science, IUPUI Department of Computer.
Advanced OOP MCS-3 OOP BSCS-3 Lecture # 9. GUI Components - > JFrame ->JComboBoxGUI Components - > JFrame ->JComboBox (javax.Swing.JComboBox) JComboBox()
MT311 Java Application Development and Programming Languages Li Tak Sing ( 李德成 )
Object Oriented Programming Engr. M. Fahad Khan Lecturer, Software Engineering Department University of Engineering & Technology, Taxila.
GUI Programming using NetBeans. RHS – SOC 2 GUI construction We have previously talked about elements in a (simple) GUI –Frames, Panes and Dialogs –Text.
Class Class 20 Objectives Use JCheckbox, JRadioButton, and a JComboBox in a UID.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 15 Creating User.
Getting Input. Text Fields A text field is a box that the user can type in Use the JTextField class JTextField tf1 = new JTextField(15); 15 is the field.
Introduction to Java Chapter 9 - Graphical User Interfaces and Applets1 Chapter 9 Graphical User Interfaces and Applets.
Java Swing. The origins of the Swing The AWT components use native code resources and referred to as heavyweight. The native use of peers led to several.
Swing. Introduction to Swing What is Swing? “ Swing is a diverse collection of lightweight components that can be used to build sophisticated user interfaces.”
The Swing GUI Components Chapter 29 An enhanced alternative to AWT The PC does not need an appletviewer or browser Swing overcomes some AWT drawbacks.
Session 26 Swing - 1. Java Simplified / Session 26 / 2 of 43 Review The new I/O classes are present in five packages. The new I/O system is based on two.
Java the UML Way versjon Only to be used in connection with the book "Java the UML Way", by Else Lervik and.
Visual Index of Swing GUI Components
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7: A First Look at GUI Applications Starting Out with Java From Control.
Chapter 11 Creating User Interfaces
Ajmer Singh PGT(IP) JAVA IDE Programming - I. Ajmer Singh PGT(IP) GUI (Graphical User Interface) It is an interface that uses a graphic entities along.
Software Construction LAB 08 Java Programming with SWING GUI Builder.
GUI Components CSCI 201L Jeffrey Miller, Ph.D. HTTP :// WWW - SCF. USC. EDU /~ CSCI 201 USC CSCI 201L.
Advanced OOP MCS-3 OOP BSCS-3 Lecture # 6. TOPICS TO COVER GUI Components - > JframeGUI Components - > Jframe (javax.Swing.JFrame) JFrame() JFrame(String)
Computer Science [3] Java Programming II - Laboratory Course Lab 4 -1 : Introduction to Graphical user interface GUI Components Faculty of Engineering.
Lecture 33: More Graphical User Interface (GUI) Announcements & Review Read Ch GU1 & GU2 Cohoon & Davidson Ch 14 Reges & Stepp Lab 10 set game due 4/26.
Lecture 08 Abstract Windows Toolkit (AWT) and Swing Jaeki Song.
Event Handler Methods Text field Object Responder JAVA AWT Environment: Messages are sent between JAVA Objects Screen Event Notification Press Button.
1 Lecture 8: User Interface Components with Swing.
Jaeki Song JAVA Lecture 08 Abstract Windows Toolkit (AWT) and Swing Components.
CIS 270—Application Development II Chapter 11—GUI Components: Part I.
Dept. of CSIE, National University of Tainan 10/21/2012 Working with Swing.
회원가입 - GUI ** 오지*.
JButton Chapter 11 Lecture 3.
A First Look at GUI Applications Radio Buttons and Check Boxes
Advanced Java Programming Lecture 1: Introduction to GUI Programming
Lecture 16 More GUI programming
Graphical user interface with Swing by jose maria gonzalez pinto
Chapter 7 Creating User Interfaces
Chapter 13 Creating User Interfaces
JButton – Container Layout & Icons
Tooltip -Radio Button.
CS Problem Solving and Object Oriented Programming Spring 2019
Presentation transcript:

Advanced OOP MCS-3 OOP BSCS-3 Lecture # 7

GUI Components - > Jframe ->JPasswordField (javax.Swing.JPasswordField) GUI Components - > Jframe ->JPasswordField JPasswordField() JPasswordField(int) JPasswordField(String) JPasswordField(String, int) char[] getPassword() GUI Components - > Jframe ->JButton (javax.Swing.JButton) JButton() JButton(Icon) JButton(String) JButton(String, Icon) void doClick(int) TOPICS TO COVER

GUI Components - > Jframe ->JCheckBox (javax.Swing.JCheckBox) JCheckBox()//unselected with no text, no icon. JCheckBox(Icon) JCheckBox(Icon, boolean) JCheckBox(String) JCheckBox(String, boolean) JCheckBox(String, Icon) JCheckBox(String, Icon, boolean) boolean isSelected() void setSelected(boolean) void doClick(int) TOPICS TO COVER

GUI Components - > Jframe ->JRadioButtonGUI Components - > Jframe ->JRadioButton (javax.Swing.JRadioButton) JRadioButton() JRadioButton(Icon) JRadioButton(Icon, boolean) JRadioButton(String) JRadioButton(String, boolean) JRadioButton(String, Icon) JRadioButton(String, Icon, boolean) boolean isSelected() void setSelected(Boolean) void doClick(int) GUI Components - > Jframe ->ButtonGroup (javax.Swing.ButtonGroup) GUI Components - > Jframe ->Button ButtonGroup() add(AbstractButton) void clearSelection() int getButtonCount() ButtonModel getSelection() boolean isSelected(ButtonModel) TOPICS TO COVER

GOOD LUCK ! ☻...