Option Panes CSCI 201 Principles of Software Development

Size: px
Start display at page:

Download "Option Panes CSCI 201 Principles of Software Development"

Transcription

1 Option Panes CSCI 201 Principles of Software Development Jeffrey Miller, Ph.D.

2 Outline Program USC CSCI 201L

3 Option Panes Option panes are popup dialog boxes There are four types of option panes in Java Message dialog shows a message and waits for the user to click OK Confirmation dialog shows a question and asks for confirmation, such as OK or Cancel Input dialog shows a question and gets the user s input from a text field, combo box, or list Option dialog shows a question and gets the user s answer from a set of options To display an option pane, there are static methods on the JOptionPane class called showmessagedialog, showconfirmationdialog, showinputdialog, and showoptiondialog USC CSCI 201L 3/14

4 Message Dialog Example 1 import java.awt.event.actionevent; 2 import java.awt.event.actionlistener; 3 4 import javax.swing.imageicon; 5 import javax.swing.jbutton; 6 import javax.swing.jframe; 7 import javax.swing.joptionpane; 8 9 public class Test extends JFrame { 10 public Test() { 11 super("joptionpane Example"); 12 JButton jb = new JButton("Click Here"); 13 jb.addactionlistener(new ActionListener() { 14 public void actionperformed(actionevent ae) { 15 JOptionPane.showMessageDialog(Test.this, 16 Message", 17 Message Dialog", 18 JOptionPane.INFORMATION_MESSAGE, 19 new ImageIcon("uscshield.png")); 20 } 21 }); 22 add(jb); this.setdefaultcloseoperation(jframe.exit_on_close); 25 setsize(250, 225); 26 setlocationrelativeto(null); 27 setvisible(true); 28 } public static void main(string args[]) { 31 Test t = new Test(); 32 } 33 } USC CSCI 201L 4/14

5 Message Dialog Types JOptionPane.showMessageDialog(Test.this, "Message", "Message Dialog", JOptionPane.ERROR_MESSAGE); JOptionPane.showMessageDialog(Test.this, "Message", "Message Dialog", JOptionPane.WARNING_MESSAGE); JOptionPane.showMessageDialog(Test.this, "Message", "Message Dialog", JOptionPane.INFORMATION_MESSAGE); JOptionPane.showMessageDialog(Test.this, "Message", "Message Dialog", JOptionPane.PLAIN_MESSAGE); JOptionPane.showMessageDialog(Test.this, "Message", "Message Dialog", JOptionPane.QUESTION_MESSAGE); USC CSCI 201L 5/14

6 Confirmation Dialog Example 1 import java.awt.event.*; 2 import javax.swing.*; 3 public class Test extends JFrame { 4 public Test() { 5 super("joptionpane Example"); 6 JButton jb = new JButton("Click Here"); 7 jb.addactionlistener(new ActionListener() { 8 public void actionperformed(actionevent ae) { 9 int selection = JOptionPane.showConfirmDialog(Test.this, "Please confirm.", "Confirmation", JOptionPane.YES_NO_OPTION); 10 switch (selection) { 11 case JOptionPane.YES_OPTION: // case JOptionPane.OK_OPTION is the same 12 System.out.println("Yes"); 13 break; 14 case JOptionPane.NO_OPTION: 15 System.out.println("No"); 16 break; 17 case JOptionPane.CANCEL_OPTION: 18 System.out.println("Cancel"); 19 break; 20 case JOptionPane.CLOSED_OPTION: 21 System.out.println("Closed"); 22 break; 23 } 24 } 25 }); 26 add(jb); 27 this.setdefaultcloseoperation(jframe.exit_on_close); 28 setsize(250, 225); 29 setlocationrelativeto(null); 30 setvisible(true); 31 } 32 public static void main(string args[]) { 33 Test t = new Test(); 34 } 35 } USC CSCI 201L 6/14

7 Confirmation Dialog Types JOptionPane.showConfirmDialog(Test.this, "Please confirm.", "Confirmation", JOptionPane.YES_NO_OPTION); JOptionPane.showConfirmDialog(Test.this, "Please confirm.", "Confirmation", JOptionPane.YES_NO_CANCEL_OPTION); JOptionPane.showConfirmDialog(Test.this, "Please confirm.", "Confirmation", JOptionPane.OK_CANCEL_OPTION); USC CSCI 201L 7/14

8 Input Dialog Example 1 import java.awt.event.actionevent; 2 import java.awt.event.actionlistener; 3 4 import javax.swing.jbutton; 5 import javax.swing.jframe; 6 import javax.swing.joptionpane; 7 8 public class Test extends JFrame { 9 public Test() { 10 super("joptionpane Example"); 11 JButton jb = new JButton("Click Here"); 12 jb.addactionlistener(new ActionListener() { 13 public void actionperformed(actionevent ae) { 14 String value = JOptionPane.showInputDialog(Test.this, 15 "Input", 16 "Input Dialog", 17 JOptionPane.QUESTION_MESSAGE); 18 System.out.println("value = " + value); 19 if (value == null) { 20 System.out.println("Cancel button or X clicked"); 21 } 22 } 23 }); add(jb); this.setdefaultcloseoperation(jframe.exit_on_close); 28 setsize(250, 225); 29 setlocationrelativeto(null); 30 setvisible(true); 31 } public static void main(string args[]) { 34 Test t = new Test(); 35 } 36 } USC CSCI 201L 8/14

9 Input Dialog Types String value = JOptionPane.showInputDialog(Test.this, Input", Input Dialog", JOptionPane.QUESTION_MESSAGE); Object values[] = {"option 1", "option 2", "option 3"}; Object defaultvalue = "option 2"; Object value = JOptionPane.showInputDialog(Test.this, "Input", "Input Dialog", JOptionPane.QUESTION_MESSAGE, null, // icon values, defaultvalue); USC CSCI 201L 9/14

10 Input Dialog Types (cont.) If you have more 20 or more items in the list, you will have a multiple selection box instead of a drop down list Object values[] = new Object[20]; for (int i=0; i < 20; i++) { values[i] = option + (i+1); } Object defaultvalue = "option 2"; Object value = JOptionPane.showInputDialog(Test.this, "Input", "Input Dialog", JOptionPane.QUESTION_MESSAGE, null, // icon values, defaultvalue); USC CSCI 201L 10/14

11 Option Dialog Example 1 import java.awt.*; 2 import javax.swing.*;; 3 public class Test extends JFrame { 4 public Test() { 5 super("joptionpane Example"); 6 JButton jb = new JButton("Click Here"); 7 jb.addactionlistener(new ActionListener() { 8 public void actionperformed(actionevent ae) { 9 Object [] options = {"Yes please", "No thanks", "Maybe"}; 10 int value = JOptionPane.showOptionDialog(Test.this, 11 "Which option would you like?", 12 "Option Dialog", 13 JOptionPane.YES_NO_CANCEL_OPTION, 14 JOptionPane.QUESTION_MESSAGE, 15 null, // icon to display 16 options, 17 options[1]); 18 System.out.println("value = " + value); 19 if (value == 0) { 20 System.out.println("Yes please clicked"); 21 } 22 else if (value == 1) { 23 System.out.println("No thanks clicked"); 24 } 25 else if (value == 2) { 26 System.out.println("Maybe clicked"); 27 } 28 else { // value == System.out.println("X clicked"); 30 } 31 } 32 }); 33 add(jb); 34 this.setdefaultcloseoperation(jframe.exit_on_close); 35 setsize(250, 225); 36 setlocationrelativeto(null); 37 setvisible(true); 38 } 39 public static void main(string args[]) { 40 Test t = new Test(); 41 } 42 } USC CSCI 201L 11/14

12 Custom Option Panes In most cases, the standard option panes will suffice for an application If the standard option panes are too restrictive, you can always create your own using JDialog Image from USC CSCI 201L 12/14

13 Outline Program USC CSCI 201L

14 Program Create a dialog box that pops up over an application that looks like the following. Retrieve the values of the radio buttons when the button is clicked. Image from 14/14

// Correntista. //Conta Corrente. package Banco; public class Correntista { String nome, sobrenome; int cpf;

// Correntista. //Conta Corrente. package Banco; public class Correntista { String nome, sobrenome; int cpf; // Correntista public class Correntista { String nome, sobrenome; int cpf; public Correntista(){ nome = "zé"; sobrenome = "Pereira"; cpf = 123456; public void setnome(string n){ nome = n; public void setsobrenome(string

More information

INTRODUCTION TO COMPUTER PROGRAMMING. Richard Pierse. Class 7: Object-Oriented Programming. Introduction

INTRODUCTION TO COMPUTER PROGRAMMING. Richard Pierse. Class 7: Object-Oriented Programming. Introduction INTRODUCTION TO COMPUTER PROGRAMMING Richard Pierse Class 7: Object-Oriented Programming Introduction One of the key issues in programming is the reusability of code. Suppose that you have written a program

More information

CSS 543 Program 3: Online Tic-Tac-Toe Game Professor: Munehiro Fukuda Due date: see the syllabus

CSS 543 Program 3: Online Tic-Tac-Toe Game Professor: Munehiro Fukuda Due date: see the syllabus CSS 543 Program 3: Online Tic-Tac-Toe Game Professor: Munehiro Fukuda Due date: see the syllabus 1. Purpose This assignment exercises how to write a peer-to-peer communicating program using non-blocking

More information

Graphical User Interfaces

Graphical User Interfaces M14_REGE1813_02_SE_C14.qxd 2/10/10 3:43 PM Page 822 Chapter14 Graphical User Interfaces 14.1 GUI Basics Graphical Input and Output with Option Panes Working with Frames Buttons, Text Fields, and Labels

More information

Handout 3 cs180 - Programming Fundamentals Spring 15 Page 1 of 6. Handout 3. Strings and String Class. Input/Output with JOptionPane.

Handout 3 cs180 - Programming Fundamentals Spring 15 Page 1 of 6. Handout 3. Strings and String Class. Input/Output with JOptionPane. Handout 3 cs180 - Programming Fundamentals Spring 15 Page 1 of 6 Handout 3 Strings and String Class. Input/Output with JOptionPane. Strings In Java strings are represented with a class type String. Examples:

More information

Advanced Network Programming Lab using Java. Angelos Stavrou

Advanced Network Programming Lab using Java. Angelos Stavrou Advanced Network Programming Lab using Java Angelos Stavrou Table of Contents A simple Java Client...3 A simple Java Server...4 An advanced Java Client...5 An advanced Java Server...8 A Multi-threaded

More information

CS 335 Lecture 06 Java Programming GUI and Swing

CS 335 Lecture 06 Java Programming GUI and Swing CS 335 Lecture 06 Java Programming GUI and Swing Java: Basic GUI Components Swing component overview Event handling Inner classes and anonymous inner classes Examples and various components Layouts Panels

More information

public class Craps extends JFrame implements ActionListener { final int WON = 0,LOST =1, CONTINUE = 2;

public class Craps extends JFrame implements ActionListener { final int WON = 0,LOST =1, CONTINUE = 2; Lecture 15 The Game of "Craps" In the game of "craps" a player throws a pair of dice. If the sum on the faces of the pair of dice after the first toss is 7 or 11 the player wins; if the sum on the first

More information

11. Applets, normal window applications, packaging and sharing your work

11. Applets, normal window applications, packaging and sharing your work 11. Applets, normal window applications, packaging and sharing your work In this chapter Converting Full Screen experiments into normal window applications, Packaging and sharing applications packaging

More information

Swing. A Quick Tutorial on Programming Swing Applications

Swing. A Quick Tutorial on Programming Swing Applications Swing A Quick Tutorial on Programming Swing Applications 1 MVC Model View Controller Swing is based on this design pattern It means separating the implementation of an application into layers or components:

More information

First Java Programs. V. Paúl Pauca. CSC 111D Fall, 2015. Department of Computer Science Wake Forest University. Introduction to Computer Science

First Java Programs. V. Paúl Pauca. CSC 111D Fall, 2015. Department of Computer Science Wake Forest University. Introduction to Computer Science First Java Programs V. Paúl Pauca Department of Computer Science Wake Forest University CSC 111D Fall, 2015 Hello World revisited / 8/23/15 The f i r s t o b l i g a t o r y Java program @author Paul Pauca

More information

Callbacks. Callbacks Copyright 2007 by Ken Slonneger 1

Callbacks. Callbacks Copyright 2007 by Ken Slonneger 1 Callbacks Callbacks refer to a mechanism in which a library or utility class provides a service to clients that are unknown to it when it is defined. Suppose, for example, that a server class creates a

More information

Text file I/O and simple GUI dialogues

Text file I/O and simple GUI dialogues Chapter 11 Text file I/O and simple GUI dialogues Lecture slides for: Java Actually: A Comprehensive Primer in Programming Khalid Azim Mughal, Torill Hamre, Rolf W. Rasmussen Cengage Learning, 2008. ISBN:

More information

The Basic Java Applet and JApplet

The Basic Java Applet and JApplet I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s The Basic Java Applet and JApplet Rob Dempster robd@cs.ukzn.ac.za School of Computer Science University of KwaZulu-Natal Pietermaritzburg Campus I2PUJ4 - Chapter

More information

Programming with Java GUI components

Programming with Java GUI components Programming with Java GUI components Java includes libraries to provide multi-platform support for Graphic User Interface objects. The multi-platform aspect of this is that you can write a program on a

More information

Appendix B Task 2: questionnaire and artefacts

Appendix B Task 2: questionnaire and artefacts Appendix B Task 2: questionnaire and artefacts This section shows the questionnaire, the UML class and sequence diagrams, and the source code provided for the task 1 (T2) Buy a Ticket Unsuccessfully. It

More information

5.17 GUI. Xiaoyi Jiang Informatik I Grundlagen der Programmierung

5.17 GUI. Xiaoyi Jiang Informatik I Grundlagen der Programmierung AWT vs. Swing AWT (Abstract Window Toolkit; Package java.awt) Benutzt Steuerelemente des darunterliegenden Betriebssystems Native Code (direkt für die Maschine geschrieben, keine VM); schnell Aussehen

More information

Lab 1A. Create a simple Java application using JBuilder. Part 1: make the simplest Java application Hello World 1. Start Jbuilder. 2.

Lab 1A. Create a simple Java application using JBuilder. Part 1: make the simplest Java application Hello World 1. Start Jbuilder. 2. Lab 1A. Create a simple Java application using JBuilder In this lab exercise, we ll learn how to use a Java integrated development environment (IDE), Borland JBuilder 2005, to develop a simple Java application

More information

Homework/Program #5 Solutions

Homework/Program #5 Solutions Homework/Program #5 Solutions Problem #1 (20 points) Using the standard Java Scanner class. Look at http://natch3z.blogspot.com/2008/11/read-text-file-using-javautilscanner.html as an exampleof using the

More information

CS 106 Introduction to Computer Science I

CS 106 Introduction to Computer Science I CS 106 Introduction to Computer Science I 01 / 29 / 2014 Instructor: Michael Eckmann Today s Topics Comments and/or Questions? import user input using JOptionPane user input using Scanner psuedocode import

More information

The Abstract Windowing Toolkit. Java Foundation Classes. Swing. In April 1997, JavaSoft announced the Java Foundation Classes (JFC).

The Abstract Windowing Toolkit. Java Foundation Classes. Swing. In April 1997, JavaSoft announced the Java Foundation Classes (JFC). The Abstract Windowing Toolkit Since Java was first released, its user interface facilities have been a significant weakness The Abstract Windowing Toolkit (AWT) was part of the JDK form the beginning,

More information

Using A Frame for Output

Using A Frame for Output Eventos Roteiro Frames Formatting Output Event Handling Entering Data Using Fields in a Frame Creating a Data Entry Field Using a Field Reading Data in an Event Handler Handling Multiple Button Events

More information

LAB 1. Familiarization of Rational Rose Environment And UML for small Java Application Development

LAB 1. Familiarization of Rational Rose Environment And UML for small Java Application Development LAB 1 Familiarization of Rational Rose Environment And UML for small Java Application Development OBJECTIVE AND BACKGROUND The purpose of this first UML lab is to familiarize programmers with Rational

More information

Skills and Topics for TeenCoder: Java Programming

Skills and Topics for TeenCoder: Java Programming Skills and Topics for TeenCoder: Java Programming Our Self-Study Approach Our courses are self-study and can be completed on the student's own computer, at their own pace. You can steer your student in

More information

Fondamenti di Java. Introduzione alla costruzione di GUI (graphic user interface)

Fondamenti di Java. Introduzione alla costruzione di GUI (graphic user interface) Fondamenti di Java Introduzione alla costruzione di GUI (graphic user interface) component - container - layout Un Container contiene [0 o +] Components Il Layout specifica come i Components sono disposti

More information

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Exam Name MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. 1) The JDK command to compile a class in the file Test.java is A) java Test.java B) java

More information

ICOM 4015: Advanced Programming

ICOM 4015: Advanced Programming ICOM 4015: Advanced Programming Lecture 10 Reading: Chapter Ten: Inheritance Copyright 2009 by John Wiley & Sons. All rights reserved. Chapter 10 Inheritance Chapter Goals To learn about inheritance To

More information

http://netbeans.org/kb/docs/java/gui-functionality.html?print=yes

http://netbeans.org/kb/docs/java/gui-functionality.html?print=yes Page 1 of 6 Introduction to GUI Building Contributed by Saleem Gul and Tomas Pavek, maintained by Ruth Kusterer and Irina Filippova This beginner tutorial teaches you how to create a simple graphical user

More information

file://c:\dokumente und Einstellungen\Marco Favorito\Desktop\ScanCmds.html

file://c:\dokumente und Einstellungen\Marco Favorito\Desktop\ScanCmds.html file:c:\dokumente und Einstellungen\Marco Favorito\Desktop\ScanCmds.html Seite 1 von 5 ScanCmds.java ------------------------------------------------------------------------------- ScanCmds Demontration

More information

Translating to Java. Translation. Input. Many Level Translations. read, get, input, ask, request. Requirements Design Algorithm Java Machine Language

Translating to Java. Translation. Input. Many Level Translations. read, get, input, ask, request. Requirements Design Algorithm Java Machine Language Translation Translating to Java Introduction to Computer Programming The job of a programmer is to translate a problem description into a computer language. You need to be able to convert a problem description

More information

DHBW Karlsruhe, Vorlesung Programmieren, Remote Musterlösungen

DHBW Karlsruhe, Vorlesung Programmieren, Remote Musterlösungen DHBW Karlsruhe, Vorlesung Programmieren, Remote Musterlösungen Aufgabe 1 RMI - TimeService public interface TimeServerInterface extends Remote { public String gettime() throws RemoteException; import java.util.date;

More information

Informatik II. // ActionListener hinzufügen btnconvert.addactionlistener(this); super.setdefaultcloseoperation(jframe.

Informatik II. // ActionListener hinzufügen btnconvert.addactionlistener(this); super.setdefaultcloseoperation(jframe. Universität Augsburg, Institut für Informatik Sommersemester 2006 Prof. Dr. Werner Kießling 20. Juli. 2006 M. Endres, A. Huhn, T. Preisinger Lösungsblatt 11 Aufgabe 1: Währungsrechner CurrencyConverter.java

More information

Dev Articles 05/25/07 11:07:33

Dev Articles 05/25/07 11:07:33 Java Crawling the Web with Java Contributed by McGraw Hill/Osborne 2005 06 09 Access Your PC from Anywhere Download Your Free Trial Take your office with you, wherever you go with GoToMyPC. It s the remote

More information

How to Get Blackboard Collaborate Up and Running in Google Chrome

How to Get Blackboard Collaborate Up and Running in Google Chrome How to Get Blackboard Collaborate Up and Running in Google Chrome Some things to consider before you begin to setup Blackboard Collaborate: These steps were created through the use of Google Chrome 37.0.

More information

Tutorial Reference Manual. Java WireFusion 4.1

Tutorial Reference Manual. Java WireFusion 4.1 Tutorial Reference Manual Java WireFusion 4.1 Contents INTRODUCTION...1 About this Manual...2 REQUIREMENTS...3 User Requirements...3 System Requirements...3 SHORTCUTS...4 DEVELOPMENT ENVIRONMENT...5 Menu

More information

Extending Desktop Applications to the Web

Extending Desktop Applications to the Web Extending Desktop Applications to the Web Arno Puder San Francisco State University Computer Science Department 1600 Holloway Avenue San Francisco, CA 94132 arno@sfsu.edu Abstract. Web applications have

More information

Step-by-Step Guide Procurement Card & Travel Reconciliation Expense Reports: Step 4c Attaching Documents by Receipt Store to Individual Expenses

Step-by-Step Guide Procurement Card & Travel Reconciliation Expense Reports: Step 4c Attaching Documents by Receipt Store to Individual Expenses There are three ways to attach documents to an expense report in the Concur Travel & Expense System: scanning, faxing, or using the Receipt Store to attach to individual expenses. Note: Approvers have

More information

How To Write A Program For The Web In Java (Java)

How To Write A Program For The Web In Java (Java) 21 Applets and Web Programming As noted in Chapter 2, although Java is a general purpose programming language that can be used to create almost any type of computer program, much of the excitement surrounding

More information

Microsoft Access 2007 Advanced Queries

Microsoft Access 2007 Advanced Queries Microsoft Access 2007 Advanced Queries When you run a query in Microsoft Access 2007, it is not only able to display records, but also able to perform specific tasks and actions based on user defined criteria.

More information

IRA EXAMPLES. This topic has two examples showing the calculation of the future value an IRA (Individual Retirement Account).

IRA EXAMPLES. This topic has two examples showing the calculation of the future value an IRA (Individual Retirement Account). IRA EXAMPLES This topic has two examples showing the calculation of the future value an IRA (Individual Retirement Account). Definite Counting Loop Example IRA After x Years This first example illustrates

More information

Lösningsförslag till tentamen 121217

Lösningsförslag till tentamen 121217 Uppgift 1 Lösningsförslag till tentamen 121217 a) Utskriften blir: a = 5 och b = 10 a = 5 och b = 10 b) Utskriften blir 1 2 3 4 5 5 2 3 4 1 c) Utskriften blir 321 Uppgift 2 Med användning av dialogrutor:

More information

D06 PROGRAMMING with JAVA

D06 PROGRAMMING with JAVA Cicles Formatius de Grau Superior Desenvolupament d Aplicacions Informàtiques D06 PROGRAMMING with JAVA Ch11 Interfaces & Polymorphism PowerPoint presentation, created by Angel A. Juan - ajuanp(@)gmail.com,

More information

FileBound: Internet Settings & Requirements

FileBound: Internet Settings & Requirements If you (or your PC!) is new to the FileBound v4 application, There are a few quick items that need to be addressed to ensure you will be able to access the image viewer section of the system. Minimum Requirements

More information

How To Build A Swing Program In Java.Java.Netbeans.Netcode.Com (For Windows) (For Linux) (Java) (Javax) (Windows) (Powerpoint) (Netbeans) (Sun) (

How To Build A Swing Program In Java.Java.Netbeans.Netcode.Com (For Windows) (For Linux) (Java) (Javax) (Windows) (Powerpoint) (Netbeans) (Sun) ( Chapter 11. Graphical User Interfaces To this point in the text, our programs have interacted with their users to two ways: The programs in Chapters 1-5, implemented in Processing, displayed graphical

More information

Medientechnik. Übung MVC

Medientechnik. Übung MVC Medientechnik Übung MVC Heute Model-View-Controller (MVC) Model programmieren Programmlogik Programmdaten Controller programmieren GUI Model Observer-Pattern Observable (Model) verwaltet Daten Observer

More information

How to Install Java onto your system

How to Install Java onto your system How to Install Java onto your system 1. In your browser enter the URL: Java SE 2. Choose: Java SE Downloads Java Platform (JDK) 7 jdk-7- windows-i586.exe. 3. Accept the License Agreement and choose the

More information

Essentials of the Java(TM) Programming Language, Part 1

Essentials of the Java(TM) Programming Language, Part 1 Essentials of the Java(TM) Programming Language, Part 1 http://developer.java.sun.com/developer...ining/programming/basicjava1/index.html Training Index Essentials of the Java TM Programming Language:

More information

Tutorial: Time Of Day Part 2 GUI Design in NetBeans

Tutorial: Time Of Day Part 2 GUI Design in NetBeans Tutorial: Time Of Day Part 2 GUI Design in NetBeans October 7, 2010 Author Goals Kees Hemerik / Gerard Zwaan Getting acquainted with NetBeans GUI Builder Illustrate the separation between GUI and computation

More information

Analysis Of Source Lines Of Code(SLOC) Metric

Analysis Of Source Lines Of Code(SLOC) Metric Analysis Of Source Lines Of Code(SLOC) Metric Kaushal Bhatt 1, Vinit Tarey 2, Pushpraj Patel 3 1,2,3 Kaushal Bhatt MITS,Datana Ujjain 1 kaushalbhatt15@gmail.com 2 vinit.tarey@gmail.com 3 pushpraj.patel@yahoo.co.in

More information

Installing LearningBay Enterprise Part 2

Installing LearningBay Enterprise Part 2 Installing LearningBay Enterprise Part 2 Support Document Copyright 2012 Axiom. All Rights Reserved. Page 1 Please note that this document is one of three that details the process for installing LearningBay

More information

WRITING DATA TO A BINARY FILE

WRITING DATA TO A BINARY FILE WRITING DATA TO A BINARY FILE TEXT FILES VS. BINARY FILES Up to now, we have looked at how to write and read characters to and from a text file. Text files are files that contain sequences of characters.

More information

Assignment No.3. /*-- Program for addition of two numbers using C++ --*/

Assignment No.3. /*-- Program for addition of two numbers using C++ --*/ Assignment No.3 /*-- Program for addition of two numbers using C++ --*/ #include class add private: int a,b,c; public: void getdata() couta; cout

More information

Internet Explorer 7 for Windows XP: Obtaining MIT Certificates

Internet Explorer 7 for Windows XP: Obtaining MIT Certificates Internet Explorer 7 for Windows XP: Obtaining MIT Certificates Overview In order to use secure web services at MIT, you will need to obtain two types of MIT web certificates: MIT Certificate Authority

More information

Altas, Bajas y Modificaciones de Registros en tabla MYSQL

Altas, Bajas y Modificaciones de Registros en tabla MYSQL Altas, Bajas y Modificaciones de Registros en tabla MYSQL 1. En MySql crear una base de datos de nombre EmpresaABC y dentro de ella la tabla Empleados con la siguiente estructura: DNI integer(8) Definir

More information

GUIs with Swing. Principles of Software Construction: Objects, Design, and Concurrency. Jonathan Aldrich and Charlie Garrod Fall 2012

GUIs with Swing. Principles of Software Construction: Objects, Design, and Concurrency. Jonathan Aldrich and Charlie Garrod Fall 2012 GUIs with Swing Principles of Software Construction: Objects, Design, and Concurrency Jonathan Aldrich and Charlie Garrod Fall 2012 Slides copyright 2012 by Jeffrey Eppinger, Jonathan Aldrich, William

More information

Karsten Lentzsch JGoodies SWING WITH STYLE

Karsten Lentzsch JGoodies SWING WITH STYLE Karsten Lentzsch JGoodies SWING WITH STYLE JGoodies: Karsten Lentzsch Open source Swing libraries Example applications Consultant for Java desktop Design assistance Training for visual design and implementation

More information

How to Configure Windows 8.1 to run ereports on IE11

How to Configure Windows 8.1 to run ereports on IE11 How to Configure Windows 8.1 to run ereports on IE11 Description: Windows 8.1 ships with IE10, but can be updated to IE11. There is a special mode in IE11 called Enterprise Mode that can be used to emulate

More information

How To Test In Bluej

How To Test In Bluej Unit Testing in BlueJ Version 1.0 for BlueJ Version 1.3.0 Michael Kölling Mærsk Institute University of Southern Denmark Copyright M. Kölling 1 INTRODUCTION.........................................................................

More information

Chapter 2 Introduction to Java programming

Chapter 2 Introduction to Java programming Chapter 2 Introduction to Java programming 1 Keywords boolean if interface class true char else package volatile false byte final switch while throws float private case return native void protected break

More information

Supplement IV.D: Tutorial for MS Access. For Introduction to Java Programming By Y. Daniel Liang

Supplement IV.D: Tutorial for MS Access. For Introduction to Java Programming By Y. Daniel Liang Supplement IV.D: Tutorial for MS Access For Introduction to Java Programming By Y. Daniel Liang This supplement covers the following topics: Creating Databases and Executing SQL Creating ODBC Data Source

More information

1 Hour, Closed Notes, Browser open to Java API docs is OK

1 Hour, Closed Notes, Browser open to Java API docs is OK CSCI 143 Exam 2 Name 1 Hour, Closed Notes, Browser open to Java API docs is OK A. Short Answer For questions 1 5 credit will only be given for a correct answer. Put each answer on the appropriate line.

More information

As your financial institution completes its system conversion, you

As your financial institution completes its system conversion, you QuickBooks Business Accounting Software 2007 2009 for Windows Account Conversion Instructions Converting from Direct Connect to Web Connect As your financial institution completes its system conversion,

More information

Final Project Report E3390 Electronic Circuit Design Lab. Electronic Notepad

Final Project Report E3390 Electronic Circuit Design Lab. Electronic Notepad Final Project Report E3390 Electronic Circuit Design Lab Electronic Notepad Keith Dronson Sam Subbarao Submitted in partial fulfillment of the requirements for the Bachelor of Science Degree May 10, 2008

More information

During the process of creating ColorSwitch, you will learn how to do these tasks:

During the process of creating ColorSwitch, you will learn how to do these tasks: GUI Building in NetBeans IDE 3.6 This short tutorial guides you through the process of creating an application called ColorSwitch. You will build a simple program that enables you to switch the color of

More information

CS108, Stanford Handout #33. Sockets

CS108, Stanford Handout #33. Sockets CS108, Stanford Handout #33 Fall, 2007-08 Nick Parlante Sockets Sockets Sockets make network connections between machines, but you just read/write/block on them like there were plain file streams. The

More information

How to increase virtual memory in Windows XP with Service Pack 2

How to increase virtual memory in Windows XP with Service Pack 2 How to increase virtual memory in Windows XP with Service Pack 2 1. Double-click on 'My Computer' found on the desktop. 2. Click on 'Control Panel' in the left hand pane of 'My Computer' under the category

More information

Tema: Encriptación por Transposición

Tema: Encriptación por Transposición import java.awt.*; import java.awt.event.*; import javax.swing.*; public class PrincipalSO extends JApplet implements ActionListener { // Declaración global JLabel lblclave, lblencriptar, lblencriptado,

More information

Stock Trading System Software Design Document

Stock Trading System Software Design Document Stock Trading System Software Design Document Project Name: Stock Trading System Prepared by: Jin Li Student ID: 3062211079 Version: 1.2 Faculty adviser: Jin Bo CATALOG 1 Introduction...4 1.1 Purpose...

More information

Knowledgebase Article

Knowledgebase Article Company web site: Support email: Support telephone: +44 20 3287-7651 +1 646 233-1163 2 EMCO Network Inventory 5 provides a built in SQL Query builder that allows you to build more comprehensive

More information

Uninstall Check Scanning software (Fujitsu S300)

Uninstall Check Scanning software (Fujitsu S300) Uninstall Check Scanning software (Fujitsu S300) Contents What software do you need to remove?... 2 Stop the I2iA and ScanSnap services... 2 Uninstall Active X controls... 4 If you have Internet Explorer

More information

Blackboard s Collaboration Tool

Blackboard s Collaboration Tool Blackboard s Collaboration Tool Using Blackboard s Collaboration Tool, instructors can create and host a course-related chat session or virtual classroom in which students and instructors can interact

More information

ios How to Back Up from icloud

ios How to Back Up from icloud ios How to Back Up from icloud How to back up from icloud icloud automatically backs up the most important data on your device using ios 5 or later. After you have enabled Backup on your iphone, ipad,

More information

GOPAL RAMALINGAM MEMORIAL ENGINEERING COLLEGE. Rajeshwari nagar, Panapakkam, Near Padappai, Chennai-601301.

GOPAL RAMALINGAM MEMORIAL ENGINEERING COLLEGE. Rajeshwari nagar, Panapakkam, Near Padappai, Chennai-601301. GOPAL RAMALINGAM MEMORIAL ENGINEERING COLLEGE Rajeshwari nagar, Panapakkam, Near Padappai, Chennai-601301. DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING OOAD LAB MANUAL Sub. Code/Sub. Name: CS2357-Object

More information

public class demo1swing extends JFrame implements ActionListener{

public class demo1swing extends JFrame implements ActionListener{ import java.io.*; import java.net.*; import java.io.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; public class demo1swing extends JFrame implements ActionListener JButton demodulacion;

More information

Secure File Transfer Guest User Guide Updated: 5/8/14

Secure File Transfer Guest User Guide Updated: 5/8/14 Secure File Transfer Guest User Guide Updated: 5/8/14 TABLE OF CONTENTS INTRODUCTION... 3 ACCESS SECURE FILE TRANSFER TOOL... 3 REGISTRATION... 4 SELF REGISTERING... 4 REGISTER VIA AN INVITATION SENT BY

More information

Changing Your Cameleon Server IP

Changing Your Cameleon Server IP 1.1 Overview Technical Note Cameleon requires that you have a static IP address defined for the server PC the Cameleon server application runs on. Even if the server PC has a static IP address, you may

More information

Redtail Integration. Establishing the Redtail Connection. 1. From the Applications dropdown, choose Setup.

Redtail Integration. Establishing the Redtail Connection. 1. From the Applications dropdown, choose Setup. In this user guide, we will demonstrate how to integrate your Redtail service into the emoney platform. This will allow the Advisor to import and link clients currently in Redtail into emoney. Establishing

More information

Using Eclipse to Run Java Programs

Using Eclipse to Run Java Programs Using Eclipse to Run Java Programs Downloading and Installing Eclipse Here s how: 1. Visit www.eclipse.org. 2. On that Web site, follow the links for downloading Eclipse. Be sure to pick the version that

More information

Managed File Transfer Utility

Managed File Transfer Utility The Managed File Transfer Utility (MFT) is a file transfer solution that enables DOT users and external parties to transfer files securely through an intuitive interface without some of the email pitfalls.

More information

PC Agent Quick Start. Open the Agent. Autonomy Connected Backup. Version 8.8. Revision 0

PC Agent Quick Start. Open the Agent. Autonomy Connected Backup. Version 8.8. Revision 0 T E C H N I C A L N O T E Autonomy Connected Backup Version 8.8 PC Agent Quick Start Revision 0 Use this document as a quick reference for common Connected Backup PC Agent tasks. If the Agent is not on

More information

How Scala Improved Our Java

How Scala Improved Our Java How Scala Improved Our Java Sam Reid PhET Interactive Simulations University of Colorado http://spot.colorado.edu/~reids/ PhET Interactive Simulations Provides free, open source educational science simulations

More information

LAB4 Making Classes and Objects

LAB4 Making Classes and Objects LAB4 Making Classes and Objects Objective The main objective of this lab is class creation, how its constructer creation, object creation and instantiation of objects. We will use the definition pane to

More information

Introduction to Java Applets (Deitel chapter 3)

Introduction to Java Applets (Deitel chapter 3) Introduction to Java Applets (Deitel chapter 3) 1 2 Plan Introduction Sample Applets from the Java 2 Software Development Kit Simple Java Applet: Drawing a String Drawing Strings and Lines Adding Floating-Point

More information

Assignment # 2: Design Patterns and GUIs

Assignment # 2: Design Patterns and GUIs CSUS COLLEGE OF ENGINEERING AND COMPUTER SCIENCE Department of Computer Science CSc 133 Object-Oriented Computer Graphics Programming Spring 2014 John Clevenger Assignment # 2: Design Patterns and GUIs

More information

A. BACK UP YOUR CURRENT DATA. QuickBooks Business Accounting Software 2006 2009 for Windows Account Conversion Instructions

A. BACK UP YOUR CURRENT DATA. QuickBooks Business Accounting Software 2006 2009 for Windows Account Conversion Instructions QuickBooks Business Accounting Software 2006 2009 for Windows Account Conversion Instructions As your financial institution completes its system conversion, you will need to modify your QuickBooks settings

More information

The Design and Implementation of Multimedia Software

The Design and Implementation of Multimedia Software Chapter 3 Programs The Design and Implementation of Multimedia Software David Bernstein Jones and Bartlett Publishers www.jbpub.com David Bernstein (jbpub.com) Multimedia Software Jones and Bartlett 1

More information

Alameda Alliance for Health SecureTransport Access Guide Web Access

Alameda Alliance for Health SecureTransport Access Guide Web Access Alameda Alliance for Health SecureTransport Access Guide Web Access System Requirements and Settings Microsoft Windows 2000 or later with Internet Explorer 8, 9 or 10 Internet Explorer must be configured

More information

How to Configure Windows 7 to run ereports on IE 11

How to Configure Windows 7 to run ereports on IE 11 How to Configure Windows 7 to run ereports on IE 11 Description: IE 11 is available for Window 7 but is not supported out of the box for use with ereports. Fortunately, there is a special mode in IE11

More information

Remote Method Invocation

Remote Method Invocation Goal of RMI Remote Method Invocation Implement distributed objects. Have a program running on one machine invoke a method belonging to an object whose execution is performed on another machine. Remote

More information

Secure Global Desktop (SGD)

Secure Global Desktop (SGD) Secure Global Desktop (SGD) Table of Contents Checking your Java Version...3 Preparing Your Desktop Computer...3 Accessing SGD...5 Logging into SGD...6 Using SGD to Access Your Desktop...7 Using SGD to

More information

ONBASE OUTLOOK CLIENT GUIDE for 2010 and 2013

ONBASE OUTLOOK CLIENT GUIDE for 2010 and 2013 To install Outlook 2010/2013 client Note: NOT currently compatible with Windows 10. Make sure your version of outlook is 32bit if not reinstall your version of Microsoft Office to the 32bit version. Must

More information

Start A New Project with Keil Microcontroller Development Kit Version 5 and Freescale FRDM-KL25Z

Start A New Project with Keil Microcontroller Development Kit Version 5 and Freescale FRDM-KL25Z Start A New Project with Keil Microcontroller Development Kit Version 5 and Freescale FRDM-KL25Z This tutorial is intended for starting a new project to develop software with Freescale FRDM-KL25Z board

More information

Log-in to the patient booking website

Log-in to the patient booking website Log-in to the patient booking website From the HealthSpace home page you can select Choose and Book from the menu or by clicking on the Choose and Book image both shown on the left side of the screen.

More information

Guidelines for Creating Reports

Guidelines for Creating Reports Guidelines for Creating Reports Contents Exercise 1: Custom Reporting - Ad hoc Reports... 1 Exercise 2: Custom Reporting - Ad Hoc Queries... 5 Exercise 3: Section Status Report.... 8 Exercise 1: Custom

More information

Lee County School Configuring Spec Ed Laptop Computers for Dialup, DSL/Cable Modem, and Wireless Access To the Internet

Lee County School Configuring Spec Ed Laptop Computers for Dialup, DSL/Cable Modem, and Wireless Access To the Internet Lee County School Configuring Spec Ed Laptop Computers for Dialup, DSL/Cable Modem, and Wireless Access To the Internet Prepared by: Rich Morgan Technology Director Configuring your Spec Ed laptop for

More information

HOW TO USE OIT EMAIL VIA THE WEB

HOW TO USE OIT EMAIL VIA THE WEB HOW TO USE OIT EMAIL VIA THE WEB A) Logging into your MyOIT account which includes your email account 1) Open a browser such as Firefox, Chrome or Safari. Please do not use Internet Explorer. 2) In the

More information

Unified Monitoring Portal Online Help Account Admin

Unified Monitoring Portal Online Help Account Admin Unified Monitoring Portal Online Help Account Admin This PDF file contains content from the Unified Monitoring Portal (UMP) Online Help system. It is intended only to provide a printable version of the

More information

Cours de Java. Sciences-U Lyon. Java - Introduction Java - Fondamentaux Java Avancé. http://www.rzo.free.fr

Cours de Java. Sciences-U Lyon. Java - Introduction Java - Fondamentaux Java Avancé. http://www.rzo.free.fr Cours de Java Sciences-U Lyon Java - Introduction Java - Fondamentaux Java Avancé http://www.rzo.free.fr Pierre PARREND 1 Octobre 2004 Sommaire Java Introduction Java Fondamentaux Java Avancé GUI Graphical

More information

Setting up Your Acusis Email Address. Microsoft Outlook

Setting up Your Acusis Email Address. Microsoft Outlook Setting up Your Acusis Email Address in Microsoft Outlook Click on your Microsoft Outlook Version you are using: Microsoft Outlook 2002/XP Microsoft Outlook 2003 Microsoft Outlook 2007 Microsoft Outlook

More information

There are several ways of creating a PDF file using PDFCreator.

There are several ways of creating a PDF file using PDFCreator. it Information Information Technology Services Introduction Using you can convert virtually any file from any application into Adobe Portable Document Format (PDF). Documents in Adobe PDF preserve the

More information