Differences between GridLayout and GridBagLayout?



Differences between GridLayout and GridBagLayout?..

Answer / shweta

The major difference between GridLayout and GridBagLayout is
that GrigBagLayout supports components of different sizes,
and you can specify layout options for each component

Is This Answer Correct ?    49 Yes 16 No

Post New Answer

More Core Java Interview Questions

which pattern is default in scanner package?

0 Answers   Satyam,


what is enumset?

0 Answers  


What is the best definition for data?

0 Answers  


What is null object in java?

0 Answers  


What is the difference between a choice and a list?

0 Answers  






What must a class do to implement an interface in java programming?

0 Answers  


Write a program for recursive Traverse?

1 Answers  


what is domain object

1 Answers  


What is join () in java?

0 Answers  


Draw a UML class diagram for the code fragment given below: public class StringApplet extends Applet { private Label sampleString; private Button showTheString; private ButtonHandler bHandler; private FlowLayout layout; public StringApplet() { sampleString = new Label(" "); showTheString = new Button (" Show the String"); bHandler = new ButtonHandler(); layout = new FlowLayout(); showTheString.addActionListener(bHandler); setLayout(layout); add(sampleString); add(showTheString); } class ButtonHandler implements ActionListener { public void actionPerformed(ActionEvent e) { samplestring.setText("Good Morning"); } } } Note: The methods need not be indicated on the diagram.

0 Answers  


State some advantages of java?

0 Answers  


What is difference between static variable and global variable?

0 Answers  


Categories