1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Zanzabum
4 years ago
12

Which of the following statements is used to terminate the program when closing the frame?

Computers and Technology
1 answer:
blondinia [14]4 years ago
4 0

Answer:

frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)

Explanation:

JFrame is the swing class that is used to display a frame object. The JFrame display contains an X button on the top right position which is used to turn off the display of the frame. However if we want to terminate the program on pressing the X button, we need to update the DefaultCloseOperation for the frame. JFrame provides a method ''setDefaultCloseOperation' for this purpose. When this method is called with the argument JFrame.EXIT_ON_CLOSE , it will cause the program to exit when the close button is pressed.

You might be interested in
Swapping Order of Vowels Write a program to swap the order of the vowels in a given word. For example, if the word is programmin
Georgia [21]

Answer:

Program is as follow:

Explanation:

#include<iostream.h>

#include < conio.h>

bool isVowel(char b)

{

return

( b=='a' || b=='A' || b=='e' || b=='E' || b=='i' || b=='I' || b=='o' || b=='O' || b== 'u' || b=='U');

For swaoing the vowels

string reverseVowel ( String str)

{

int j = 0;

string v ;

for ( int i= 0 ; str [i]]!='0'; i++)

if( isv(str[i]))

v[j++] = str[i[;

for ( int i = 0; str[i]! = '0' ; i++

if ( isv (str[i]))

str{i} = v [--j]

return str;

}

int main ()

{ string str = " Programming";

cout<<swapv(str);

return 0 ;

}

7 0
3 years ago
A new object, Object Y, was discovered outside our solar system. Object Y is small and rocky, is not a satellite of any other ob
GuDViN [60]
Probably a meteor or an asteroid...
Please make brainliest!☺
4 0
4 years ago
Read 2 more answers
According to the video, what types of education are useful for Database Administrators? Check all that apply.
LUCKY_DIMON [66]

Answer:

college degrees and certification.

Explanation

7 0
3 years ago
Read 2 more answers
What statement best describes operating systems?
GenaCL600 [577]

Answer:

An operating system, or "OS," is software that communicates with the hardware and allows other programs to run

3 0
3 years ago
IF ANSWER I WILL BE REALLY HAPPY
butalik [34]

Answer:

C.

Explanation:

7 0
3 years ago
Read 2 more answers
Other questions:
  • I have a class named Counter. In this class I have a synchronized method called countRange(). This method prints out a count in
    10·1 answer
  • PLZ HURRRYYYYYY
    15·1 answer
  • To adjust the margins on a page, users will navigate to the _____ tab.
    13·2 answers
  • What is the useful chart used for comparing values over categories?​
    8·1 answer
  • The amount of RAM storage is measured in A: GB The rule of thumb that predicts that CPU capacity will double every 2 years is ca
    11·1 answer
  • Size of a MAN can range from ​
    5·1 answer
  • Holi alguien sabe como cambiar el gamertag en XBox App (para iOS)?
    9·1 answer
  • Write its features:features of computer ​
    15·1 answer
  • 4. In computers, an integer can be represented by more than 8-bit, what is the largest positive integer that
    9·1 answer
  • PART 2 - Exercise 2 - Programming Assignment
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!