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 |
which pattern is default in scanner package?
what is enumset?
What is the best definition for data?
What is null object in java?
What is the difference between a choice and a list?
What must a class do to implement an interface in java programming?
Write a program for recursive Traverse?
what is domain object
What is join () in java?
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.
State some advantages of java?
What is difference between static variable and global variable?