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
Kay [80]
3 years ago
13

To create a window, which of thefollowing classes has to be extended?ContainerJFrameJButtonJTextField

Computers and Technology
1 answer:
irga5000 [103]3 years ago
3 0

Answer:

J frame class has to be extended for the creation of a window

Explanation:

J frame needs to be extended to create a window, this is because this class in windows has a title, support buttons components, a border or we can say it has decorations for windows.  

The rest of the classes like J button and J text fields lie within the J frame and the Container class is a super class and provides only outlines to J Frame class.

You might be interested in
Write a static method called bothStart that allows the user to input two Strings and returns the String that is the longest subs
marishachu [46]

Answer:

  1.    public static String bothStart(String text1, String text2){
  2.        String s = "";
  3.        if(text1.length() > text2.length()) {
  4.            for (int i = 0; i < text2.length(); i++) {
  5.                if (text1.charAt(i) == text2.charAt(i)) {
  6.                    s += text1.charAt(i);
  7.                }else{
  8.                    break;
  9.                }
  10.            }
  11.            return s;
  12.        }else{
  13.            for (int i = 0; i < text1.length(); i++) {
  14.                if (text1.charAt(i) == text2.charAt(i)) {
  15.                    s += text1.charAt(i);
  16.                }else{
  17.                    break;
  18.                }
  19.            }
  20.            return s;
  21.        }
  22.    }

Explanation:

Let's start with creating a static method <em>bothStart()</em> with two String type parameters, <em>text1 </em>&<em> text2</em> (Line 1).  

<em />

Create a String type variable, <em>s,</em> which will hold the value of the longest substring that both inputs start with the same character (Line 2).

There are two possible situation here: either <em>text1 </em>longer than<em> text2 </em>or vice versa. Hence, we need to create if-else statements to handle these two position conditions (Line 4 & Line 13).

If the length of<em> text1</em> is longer than <em>text2</em>, the for-loop should only traverse both of strings up to the length of the <em>text2 </em>(Line 5). Within the for-loop, we can use<em> charAt()</em> method to extract individual character from the<em> text1</em> & <em>text2 </em>and compare with each other (Line 15). If they are matched, the character should be joined with the string s (Line 16). If not, break the loop.

The program logic from (Line 14 - 20) is similar to the code segment above (Line 4 -12) except for-loop traverse up to the length of <em>text1 .</em>

<em />

At the end, return the s as output (Line 21).

5 0
3 years ago
News video for cable does not need to be reformatted before being placed online.
vladimir2022 [97]

Answer:

True

Explanation:

5 0
3 years ago
Read 2 more answers
Finish the code to search for a 7 in the array.
guapka [62]

Answer:

The complete code is as follows:

from array import *

myArr = array('f',[3, 5, 7,3, 10])

location = myArr.index(7)

print(str("7")+" is at position "+str(location+1))

Explanation:

I made corrections to the third line of the code and I added a line

This line gets the index of 7 from the array myArr using the index keyword

location = myArr.index(7)

This line prints the position of the 7 in the array

print(str("7")+" is at position "+str(location+1))

8 0
3 years ago
A condensing oil furnace operates at a higher efficiency because part of the heat output is:________
mario62 [17]

Because some of the heat produced by a condensing oil furnace is latent heat, it functions more efficiently.

<h3>Is the capacity of an oil furnace expressed in input or output?</h3>

The steady-state heat output of the furnace, expressed in BTU/h, is known as the heating (bonnet) capacity of oil heating appliances. Today's typical oil-fired central heating units for residential use have heating capacity ranging from 56,000 to 150,000 BTU/h.

<h3>What unit of heat is the capacity of an oil furnace stated in?</h3>

The amount of heat (Btu per gallon) released during the combustion process, in which the oxygen from the air combines with the hydrogen and carbon in the fuel, is how a fuel oil's heat of combustion value is expressed.

To learn more about condensing oil furnace and heating (bonnet) capacity, Visit:

<u>brainly.com/question/14783076</u>

#SPJ4

4 0
2 years ago
Three different filters are incorporated into the detector packet of the optically stimulated luminescence (OSL) dosimeter. Thes
TEA [102]

Answer: Aluminum, tin, and copper

Explanation: Optically stimulated luminescence (OSL)  is a method in which the ionizing radiation help in measuring of the doses. It has working dependent on the radioactivities which are present in the sediments.

The filters that are used for detection of the OSL is usually made of aluminium , copper or tin because the can easily detect isotopes in the sediments which is cause by minerals like uranium etc.

7 0
3 years ago
Other questions:
  • How might your use of computers and knowledge of technology systems affect your personal and professional success?
    7·2 answers
  • Malcolm is part of a team developing a new smartphone app to track traffic patterns. Because team members are located throughout
    12·1 answer
  • Write a program to compute answers to some basic geometry formulas. The program prompts the user to input a length (in centimete
    7·1 answer
  • Importing data is sending data to a new file.Is this true or false
    10·2 answers
  • Hi! This is python coding. Please don't take advantage, actually, answer!
    11·1 answer
  • Debug the recursive reverseString method, which is intended to return the input String str reversed (i.e. the same characters bu
    13·1 answer
  • What is this....... Iam booking train to patna. ​
    13·2 answers
  • ¿Qué diferencia existe entre un virus biológico y virus informático?
    12·1 answer
  • How do I change my username/display name
    12·2 answers
  • A construction-based client would like to develop an application that can analyze an image of machinery and overlay information
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!