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
True [87]
4 years ago
14

In Java, which of these classes implement the LayoutManagerinterface?

Computers and Technology
1 answer:
STALIN [3.7K]4 years ago
8 0

Answer:

GridBagLayout,FlowLayoutManager

Explanation:

LayoutManager interface is the interface used for laying out containers.Components like Button,text boxes are placed by Layout Manager,it is used to determine size and position of components in a container.

We can implement this interface via many classes like -

 SpringLayout, SynthScrollBarUI, ViewportLayout  ,  FlowLayout, GridBagLayout, GridLayout etc.

GridBagLayout-This layout arranges the components in vertical,horizontal or in baseline irrespective of their size.The orientation of the GridBagLayout depends on the container's ComponentOrientation property.  

GridBagLayout is associated with an instance of GridBagConstraints which manages each component.

FlowLayoutManager-This layout arranges the components in a directional flow. The alignment of line is determined by componentOrientation.

ComponentOrientation .LEFT_TO_RIGHT  

ComponentOrientation.RIGHT_TO_LEFT

You might be interested in
What are language standards? At this point in your study of programming, what do they mean to
garri49 [273]
In computing, a programming language specification (or standard or definition) is a documentation artifact that defines a programming language so that users and implementors can agree on what programs in that language mean.
5 0
4 years ago
Create a basic program that accomplishes the following requirements: Allows the user to input 2 number , a starting number x and
katrin [286]

Answer:

Explanation:

The following program is written in Java. It asks the user for the two inputs and then uses those inputs in a for loop. The loop goes through each number checking to see if it is even or odd. If it is even it prints out Even: and the number after multiplying it by 3. If it is odd it prints out Odd: and the number after adding 10 to it. The output can be seen in the attached picture below.

import java.util.Scanner;

class Brainly {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.println("Enter number 1: ");

       int num1 = in.nextInt();

       System.out.println("Enter number 2:");

       int num2 = in.nextInt();

       for (int x = num1; x <= num2; x++) {

           if ((x % 2) == 0) {

               System.out.println("Even: " + (x*3));

           } else {

               System.out.println("Odd: " + (x+10));

           }

       }

   }  

}

6 0
3 years ago
How to connect two monitors for one desktop
Tems11 [23]

Answer:

two HDMI cords, this will help you your monitors

5 0
2 years ago
Read 2 more answers
Amber wants to give her audience copies of her presentation so they can follow along and take notes. What option should Amber ch
blagie [28]

Answer:

Print handouts

Explanation:

I had this question and even if you didn't put the answer options i knew what it was I hope this helped you out (:

6 0
3 years ago
Read 2 more answers
1. A formula =A1+B2 is in cell D8. If you copy that formula to cell D9, what is the new formula in cell D9?
MaRussiya [10]
1. Answer is B   (D9=<span>A2+B3)
2. </span><span>C. identifies how many cells with data were in the range 
3. </span><span>A. ascending (smallest to largest)
</span><span>4. A. the current worksheet </span>
6 0
3 years ago
Other questions:
  • (04.01 MC)
    11·1 answer
  • Fill in the function shopSmart(orders,shops) in shopSmart.py, which takes an orderList (like the kind passed in to FruitShop.get
    6·1 answer
  • How and why do engineers use models?
    15·1 answer
  • What are the steps to creating a blank database? Use the drop-down menus to complete them.
    9·1 answer
  • Solving Systems of Equations by Substitution <br> pdf
    11·1 answer
  • Who wont me???????????????
    6·2 answers
  • Although it is not a term Excel uses, how do most people think of Excel?
    13·1 answer
  • What is 3x10? PLZZZZZ
    11·1 answer
  • How do i delete peoples comments
    14·2 answers
  • Assume that two students are trying to register for a course in which there is only one open seat. What component of a database
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!