![]() Related Questions A) PanelB) DialogC) FrameD) Window Latest Answer : The default layout of a Panel is FlowLayout.The default layout of Window class is BorderLayout.BorderLayout is the default layout of the subclasses of window class such as Frame and Dialog. So the answer would be B,C,D. ... A) CanvasB) ImageC) FrameD) Graphics Latest Answer : Canvasimage ... An application has a frame that uses a Border layout manager. Why is it probably not a good idea to put a vertical scroll bar at North in the frame? A) The scroll bar’s height would be its preferred height, which is not likely to be enough.B) The scroll bar’s width would be the entire width of the frame, which would be much wider than necessary.C) If a frame uses a Grid layout manager and does not contain any panels, then all the components within the frame are the same width and height. A) TrueB) False A) A panelB) A frameC) An appletD) A menu bar Latest Answer : FramePanelAppletMenubarMenu ... What is the result of executing the following Java class: import java.awt.*; public class FrameTest extends Frame {public FrameTest() {add (new Button("First"));add (new Button("Second"));add (new Button("Third"));pack();setVisible(true);}public static void main(String args []) {new FrameTest();}} Select from the following options: A) Only the "third" button is displayed.B) A runtime exception is generated (no layout manager specified).C) Only the "first" button is displayed.D) Only the "second" button A) The AWT automatically causes a window to be repainted when a portion of a window has been minimized and then maximized.B) The AWT automatically causes a window to be repainted when a portion of a window Latest Answer : a and c ... You have created a simple Frame and overridden the paint method as follows public void paint(Graphics g){ g.drawString("Dolly",50,10);}What will be the result when you attempt to compile and run the program? A) The string "Dolly" will be displayed at the centre of the frameB) An error at compilation complaining at the signature of the paint methodC) The lower part of the word Dolly will be seen at A) Container - ComponentB) MenuComponent - ObjectC) Dialog - WindowD) Applet - Panel Latest Answer : answer is A,B,C ... A) ButtonB) LabelC) CheckboxMenuItemD) ToolbarE) Frame Latest Answer : All are correct. ...
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||