answersLogoWhite

0


Best Answer

The function of a layout manager is to help the java programmer with aligning and positioning components inside the AWT or Java Swing components like a Frame or a Panel. Without the layout managers the programmer will have to position these components one by one manually which is very difficult and may also result in poor layout response when the user re-sizes the UI window.

Some of the commonly used layout managers are:

a. BorderLayout

b. GridLayout

c. GridBagLayout

d. Etc

User Avatar

Wiki User

10y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

Flow Layout Manager

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

BorderLayout

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

Flow layout is the defalut layout in java

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

mala mahit nahi tumhi sanga

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the function of a layoutmanager in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

In java what is the purpose of a layout manager?

Java LayoutManagers are used to save you the effort of manually putting Components where you want them on a Container. Even more useful is the fact that a LayoutManager object will handle repositioning your objects whenever the Container is resized (which is a colossal waste of time when you do it yourself).


What is function in java terminology?

In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.


Is main a predefined function in java?

No. It is a user defined function which the person who is creating the java class has to code by himself.


In java public static voidmain function denotes what?

Java's main function denotes the entry point into the execution of your program.


What is flowlayout in java?

FlowLayout is the default layout for the AWT (Another Window Toolkit) library. Each component used with a FlowLayout manager will be positioned according to its Component.getPreferredSize() function call (just enough to contain all of its elements by default). Components are arranged from top to bottom and left to right in the default configuration. Components which can contain children components will compute their size as defined by the LayoutManager for that component.


What are functions in JAVA?

for loop function


Who invoke main function in java?

The Java Runtime Environment invokes main methods.


What is the difference between method and function in java?

A function is a piece of code that can be reused by calling its name while a method is a function that is associated with a class. In Java, functions are usually referred to as static methods.


What is a method in Java?

A Java method is a sequence of statements. It is comparable to a function, subroutine, or procedure in other languages.


Can we execute java program without main function?

no


Why args0 is used in IntegerparseInt in Java?

It is the default argument name for all Java BIF (Built-In Function)s.


Does java supports friend function?

I don't believe that Excel has such a function; you'll have to write one yourself.