Download presentation
Presentation is loading. Please wait.
1
Tonga Institute of Higher Education
Simple Input/Output Tonga Institute of Higher Education
2
Introduction Programs give output to a user.
Programs accept input from a user. A User Interface (UI) is a set of commands or menus through which a user communicates with a program.
3
Console Application Inputs
4
Console Application Inputs
Demonstration Console Application Inputs
5
Windows Application Inputs
Windows are the most popular user interface. You can have windows on computers running Microsoft Window, Linux, Macintosh and other operating systems. This is a good thing! With Java, you can write 1 program that uses windows on different operating systems.
6
Displaying a Window This code will bring up a window on any operating system with a Java Virtual Machine. (JVM)
7
Demonstration Displaying a Window
8
Obtaining Input From A Window
9
Obtaining Input From A Window
Demonstration Obtaining Input From A Window
10
Handling Special Inputs
11
Handling Special Inputs
Demonstration Handling Special Inputs
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.