Use the _______ method of class OpenFileDialog to show a dialog that allows the user to select a file to be opened.

a) OpenFile
b) ChooseFile
c) ShowDialog
d) OpenFileDialog


c) ShowDialog

Computer Science & Information Technology

You might also like to view...

If the Picture Type property of a report is set to Embedded, the picture is linked to the report and Access stores a pointer to the location of the picture on the disk.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Java provides methods to access your application’s components, as well as property values for those components. In this exercise, compo- nentsArrayList is provided and contains a reference to each component in the application. You will use a while statement to iterate through each component. As each component is encountered, add the component’s identifier (that is, the component’s name) to another ArrayList, called outputArrayList. Finally, you will display the component names in a Tutorial 19 Shipping Hub Application 445 JList and change the component’s background color to magenta (Fig. 19.58). [Note: We will explain how to change background colors


a) Copying the template to your working directory. Copy the C:Examples Tutorial19ExercisesComponentsCollection directory to your C:SimplyJava directory.
b) Opening the template file. Open the ComponentsCollection.java file in your text editor.
c) Clearing outputArrayList. ArrayList outputArrayList will be used to specify the output that will be displayed in List of components: JList. Find the sub- mitJButtonActionPerformed method, which begins at line 146. Inside the sub- mitJButtonActionPerformed method, add code to remove all previous elements that were stored in outputArrayList.
d) Creating the Iterator. After clearing the outputArrayList, declare an Iterator (componentIterator) for componentsArrayList. ArrayList componentsArrayL- ist already contains references to each component in the application. These refer- ences are of type Component, which can be used to access information about any component, such as the name of the component.
e) Creating the whil

Computer Science & Information Technology

In Windows 8.1 the Backup and Restore applet in the Control Panel enables easy configuration of backup options

Indicate whether the statement is true or false

Computer Science & Information Technology

A laptop is not charging the battery and occasionally shuts off even when the power cord is plugged in. This is a symptom of a bad:

A. DC jack. B. hard drive. C. cooling system. D. battery.

Computer Science & Information Technology