GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  Programming  >  Java Swing
Go To First  |  Previous Question  |  Next Question 
 Java Swing  |  Question 64 of 72    Print  
what is the differance between Frame and window?

  
Total Answers and Comments: 2 Last Update: May 15, 2006     Asked by: soumya 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 15, 2006 02:23:09   #1  
GovindaRao        

RE: what is the differance between Frame and window?

A resizable movable window with title bar and close button. Usually it contains Panels.

A window without a title bar or move controls. The program can move and resize it but the user cannot. Free standing Window not inside any other Window. It must have a parent Frame mentioned in the constructor.


 
Is this answer useful? Yes | No
May 15, 2006 04:44:24   #2  
srikanth boddu        

RE: what is the differance between Frame and window?
Frame is a top level window with a titlebar and a menubar Frame is the subclass of WindowFrame is a container for other java components Window is a top level window with no titllebar and no menubar
 
Is this answer useful? Yes | No

 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

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

Frame Relay

Frame Relay Frame Relay is a concept where the information is sent using data frames in a digital format Using this relay service the data can be sent in a fast and efficient manner through the internet Frame Relay is also a cheaper way to send data from one point to another mosgoogle The internet s
 

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

SQL Programming

SQL Programming Overview Anybody who has done something for a long time has probably wanted to change how things work at some point or another. A worker at a mill might have found a more efficient way of cutting logs, or a mathematics teacher might have had a hand in changing a school’s al
 

WinRunner Programming Concepts

If you want to create WinRunner scripts that are highly efficient, there are important programming concepts that you will want to become familiar with. Understanding these concepts will provide you with a large number of key benefits. In addition to understanding these concepts, you must also learn
 

Programming Languages Certification

IT Certification programs have several options that will offer you the best knowledge.  By learning everything that you need to know about information technology you will be able to open new doors to your career and personal business desires.  IT Certification offers several vari
 

JavaScript Window Object Timeout Methods

JavaScript Window Object Timeout Methods In this JavaScript tutorial you will learn about setTimeout clearTimeout and open methods of window object along with syntax usage and examples for each method mosgoogle center setTimeout The setInterval method of Window object is used to call a function or
 

JavaScript Window Object Open Method Part 2

JavaScript Window Object Open Method Part 2 In this JavaScript tutorial you will learn about JavaScript Window Object Open Method features of window object open method scrollbars status titlebar toolbar top width innerHeight innerWidth outerHeight outerWidth and hotkeys mosgoogle center scrollbars S
 

JavaScript Window Object Open Method

JavaScript Window Object Open Method In this JavaScript tutorial you will learn about JavaScript Window Object Open Method features of window object open method channelmode directories dependent fullscreen screenX screenY height left location menubar resizable alwaysLowered alwaysRaised mosgoogle ce
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape