Tonga Institute of Higher Education Simple Input/Output Tonga Institute of Higher Education
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.
Console Application Inputs
Console Application Inputs Demonstration Console Application Inputs
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.
Displaying a Window This code will bring up a window on any operating system with a Java Virtual Machine. (JVM)
Demonstration Displaying a Window
Obtaining Input From A Window
Obtaining Input From A Window Demonstration Obtaining Input From A Window
Handling Special Inputs
Handling Special Inputs Demonstration Handling Special Inputs