By: Stag and Fish; Party Animals.  Radio buttons are a way of letting users choose only one option of a list.

Slides:



Advertisements
Similar presentations
Teacher Functions. Teacher Functions in OAS Create Tests Assign Tests to a Class View Reports of Student Performance.
Advertisements

Swing! Components and Images. Example Swing Components (also called “widgets”) Graphic from sun.com.
More on GUI We wrap up our examination of Java GUI programming by looking at several other components and their listeners – The components all come from.
Graphical User Interfaces, 2D Graphics & Game Programming.
TCU CoSc Programming with Java Handling Events.
CS 178: Programming with Multimedia Objects Aditya P. Mathur Professor of Computer Sciences Purdue University, West Lafayette Sept 9, 2004 Last update:
Survey design This work is licensed under a Creative Commons Attribution-Noncommercial- Share Alike 3.0 License. Skills: survey design, patient planning.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved L03 (Chapter 15) Creating.
Chapter 13: Advanced GUIs and Graphics J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program Design, Second Edition.
GUI Programming using NetBeans. What is a GUI ? GUI – Graphical User Interface The (visual) interface between humans and computers Ranging from command.
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.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Chapter 13 Advanced GUIs and Graphics. Chapter Objectives Learn about applets Explore the class Graphics Learn about the class Font Explore the class.
Combo Box, Check Boxes, and Radio Buttons. Radio Buttons User can click radio buttons, just like other buttons BUT Radio buttons are mutually exclusive.
Java Programming: From Problem Analysis to Program Design, 4e Chapter 12 Advanced GUIs and Graphics.
Liang, Introduction to Java Programming, Fifth Edition, (c) 2005 Pearson Education, Inc. All rights reserved Chapter 13 Creating User.
CIS 068 Welcome to CIS 083 ! Introduction to GUIs: JAVA Swing.
Chapters (ArrayList / Generic)
A First Look at GUI Applications Part IV: Radio Buttons 1.
MT311 Java Application Development and Programming Languages Li Tak Sing ( 李德成 )
SWING. AbstractButton Swing Buttons are subclasses of the AbstractButton class, which extends JComponent. Abstract class javax.swing.AbstractButton AbstractButton.
More GUI CSCE 190 – Java Instructor: Joel Gompert Lecture 8 – July 28, 2004.
Java Methods A & AB Object-Oriented Programming and Data Structures Maria Litvin ● Gary Litvin Copyright © 2006 by Maria Litvin, Gary Litvin, and Skylight.
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.
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.
RURadfordUniversity Simple Extended Desktop Use Function-F7 to bring up the following menu, then select one of the following schemes depending on where.
Session 8: Working with Form iNET Academy Open Source Web Development.
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.
Java GUI. Overview The ”idea” The ”idea” The Components The Components Listeners Listeners The Program The Program Interface Eventlistener Interface Eventlistener.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 6 – Graphical User Interfaces Java Foundations: Introduction to Programming.
Kim B. Bruce, Andrea Danyluk & Tom Murtagh Williams College † Partially supported by NSF CCLI grant DUE Java: An Eventful Approach An innovative.
2d – CheckBox Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
Teacher Functions. Teacher Functions in OAS Create Tests Assign Tests to a Class View Reports of Student Performance.
GUI Components CSCI 201L Jeffrey Miller, Ph.D. HTTP :// WWW - SCF. USC. EDU /~ CSCI 201 USC CSCI 201L.
1 Chapter 4 – Decisions 4.1 Relational and Logical Operators (see other set of slides) 4.2 If Blocks (see other set of slides) 4.3 Select Case Blocks (see.
2e – RadioButtons Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
Java Programming, Second Edition Chapter Thirteen Understanding Swing Components.
Chapter 14: Introduction to Swing Components. Objectives Understand Swing components Use the JFrame class Use the JLabel class Use a layout manager Extend.
HTML forms. Form elements  Forms consist of  Descriptions (explanation, instructions)  Places to enter information  free form (enter text)  check.
GUI Tutorial 1. A Bit of Philosophy on what to Teach  There are numerous libraries, frameworks, options  Modern GUIs are often developed using XML (e.g.,
Graphical User Interfaces (GUI). PART ONE About GUI’s.
 Figure illustrates a hierarchy containing many event classes from the package java.awt.event.  Used with both AWT and Swing components.  Additional.
Java Swing Controls. JButton One of the most commonly used swing component is Push Button or simply button which is created through JButton class of Swing.
Controls for Choices. Let’s look at a couple of new controls: option buttons and check boxes These controls are designed to be used when you want the.
CheckBox i Option Button. Private Sub Command1_Click() Check1 = 1 If Check1 = 1 Then Text1.FontBold = True Else Text1.FontBold = False End If Check2 =
Introduction to GUI in 1 Graphical User Interface 3 Nouf Almunyif.
Clicker quiz 11/5/13 CSE 1102 Fall A. a FlowLayout B. a BorderLayout C. a GridGrouping D. a JSplitPane E. a GridLayout Suppose we want to to lay.
Dept. of CSIE, National University of Tainan 10/21/2012 Working with Swing.
Java Programming Fifth Edition Chapter 13 Introduction to Swing Components.
Ashima Wadhwa Java Script And Forms. Introduction Forms: –One of the most common Web page elements used with JavaScript –Typical forms you may encounter.
GUI Programming using NetBeans
A First Look at GUI Applications Radio Buttons and Check Boxes
Christopher Budo, Davis Nygren, spencer franks, Luke miller
Advanced User Interfaces
CHAPTER 7 & 8 REVIEW QUESTIONS
Quick intro to Event Driven Programming
Chapter 13: Advanced GUIs and Graphics
Teacher Functions.
Together Let’s Design an Online Quiz
variable vs object Read pgs on variables
Graphical User Interface
Tooltip -Radio Button.
CheckBox i Option Button
Form Creation.
Advanced GUIs and Graphics
Presentation transcript:

By: Stag and Fish; Party Animals

 Radio buttons are a way of letting users choose only one option of a list

 Uses:  Surveys  Multiple choice questions  terms of service

 They are created by implementing `JRadioButton` and grouping the buttons into a `ButtonGroup` public class Demo extends JPanel implements ActionListener { //Create a set of private reusable variables private String button1 = “Choice 1"; public Demo () { super(new BorderLayout()); //I have no idea what this does //Create Choice 1 JRadioButton button1 = new JRadioButton(Choice 1);

 Check boxes are a way to allow users to select multiple options from a list

 Uses:  Surveys with many applicable choices  Select all that apply  Choosing items from a list

 Check boxes are created using JCheckBox items with unique names public class Checkboxes extends JPanel implements ItemListener { private JCheckBox b1; public Checkboxes() { super(new BorderLayout()); //This is a mystery //Create the check boxes. b1 = new JCheckBox("Do not uncheck!"); b1.setSelected( true);

 Java Docs