Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


neelam
Java Frame
1 Answer(s)      3 years and 10 months ago
Posted in : Java Interview Questions


What is the difference between a Window and a Frame?

Advertisement
View Answers

October 19, 2010 at 6:26 PM


Hi,

Here is the answer.

A Frame is part of java.awt package, frame is a resizable, movable window with title bar and close button. Usually it contains Panels. Its derived from a window and has a borderlayout by default.

A window is a Container and has BorderLayout by default. A window must have a parent Frame mentioned in the constructor.

Thanks.



Related Tutorials/Questions & Answers:
Java Frame
Java Frame  What is the difference between a Window and a Frame
single frame coding in java
single frame coding in java  sir, i am a beginner in java.i want to do a desktop application in java in which a single frame satisfies all needs.but i want changes in that frame only.how can i solve this?i think multiple frames
Advertisements
call frame - Java Beginners
call frame   dear java, I want to ask something about call frame to another frame and back to first frame. I have FrameA and FrameB. In frameA...(browse) then view FrameB. In FrameB i fill JTextfield1(FrameB) with "JAVA
Frame related query - Java Beginners
Frame related query  hi..... i m having a query dat...can i open a frame inside another frame like dis.. m a new biginner of java n m finding... java.awt.event.*; public class TestFrame extends Frame implements ActionListener
Java Frame/ Applet /swing/awt
Java Frame/ Applet /swing/awt  I have produced a .exe file with the help of .jar file................... Now How can I Protect my software( .exe ) file bulid in Java from being Copy and Paste....????????? please reply
frame
frame  how to creat a frame in java   Hi Friend, Try the following code: import java.awt.*; import javax.swing.*; import java.awt.event.*; class RetrieveDataFromTextFields{ public static void main(String[] args
Create a Frame in Java
Create a Frame in Java     ... in java AWT package. The frame in java works like the main window where your... windows are represented by the Frame class. Java supports the look and feel
FRAME
FRAME  WHILE I'M RUNNINGFILE OF A GUI PROGRAMME(JDBC CONNECTION) INSTEAD OF OUTPUT FRAME ONLY TWO BLANK FRAMES ARE GETTING DISPLAYD... CAN ANYONE HELP ME TO SOLVE DS PROBLEM
FRAME
FRAME  WHILE I'M RUNNINGFILE OF A GUI PROGRAMME(JDBC CONNECTION) INSTEAD OF OUTPUT FRAME ONLY TWO BLANK FRAMES ARE GETTING DISPLAYD... CAN ANYONE HELP ME TO SOLVE DS PROBLEM
Collection frame work - Java Beginners
Collection frame work  How to a sort a list of objects ordered by an attribute of the object
call frame again - Java Beginners
call frame again  d, thank's for your answer, but i can't combine... can run ,first i have one frameA in this frame have one jTextfield1,one jbutton1,second i have FrameB in this frame have one Jtextfield1 and jbutton1. I can
creating a modal frame - Java Beginners
creating a modal frame  i have a JFrame with 2 textfields. i want that this frame should open in a modal mode. how to do this? please tell. thanks
Iconifying and Maximizing a frame in Java
Iconifying and Maximizing a frame in Java   ... and maximizing a frame in java. Iconifying means to show a frame in minimized form. This program displays a frame in both forms. By default the frame
Frame
Frame  Michael wants to create a Java application with the following requirements: 1.Two labels representing name and age. 2.Two textboxes accepting name and age. The textbox accepting age should accept maximum 2 values. 3.A
Setting an Icon for a Frame in Java
Setting an Icon for a Frame in Java   ... an icon for the frame in Java Swing. This program helps us to set the icon (image) on the title bar of the frame. When you open frame or window the icon
Setting the Icon for the frame in Java
Setting the Icon for the frame in Java   ... the icon of the frame. This program is the detailed illustration to set the icon to the frame. Toolkit class has been used to get the image and then the image
OFbiz frame work - Java Beginners
OFbiz frame work   Hi.. I just wanted to know which is the best resource to study more about ofbiz framework.Im currently working on a project using Ofbiz. Please give me a suggestion Regards Vishnu  Hi friend
collection frame - Java Interview Questions
collection frame   starting from jdk1.0 to jdk 1.5,what are the feature s added in each version of collection frame up to jdk1.5 .  Hi friend, (1)Generics:Provides compile-time (static) type safety
I want display frame in another frame - Java Beginners
I want display frame in another frame  Hi all, this is available in jsps folder and Admin.jsp is main page i m taking two frame fisrt... in left side uses link if i click this link then open the page in another frame
how to go from one frame to another frame in swings - Java Beginners
how to go from one frame to another frame in swings  Hi, My task is to go from one frame to another.......... let us think that iam having two buttons on a frame........button names are ok and next........ when iam clicking
pass data from java frame to file
pass data from java frame to file  i want to write the data to file, and data must be copy from java frame java frame contains 7-8 labels n below that 1 table. i want store all this data to 1 file. plz help me
How to make frame in java
How to make frame in java We are going to discus about frame in java. In this example We have make frame in java Swing. We have created JFrame class... of the window or frame. We have used setVisible(true) function. The setVisible
Removing the title bar of the Frame in Java
Removing the title bar of the Frame in Java  ... how to display the frame or window without title bar in java. This type of the frame is mostly used to show the splash screen at starting of the application
Help me to write this simple java frame program
Help me to write this simple java frame program   I want to write a Java program for.... To create a frame with 4 text fields;name,street,city and pin;with suitable labels. Also add a button "OK". After enter values
Hiding Frame in Java
Hiding Frame in Java       Introduction This section illustrates you how to hide the Java Awt frame... will see that only one method of the frame is important for the purpose
how can i close a frame. - Java Beginners
how can i close a frame.  Hi, My question is how can we close a frame when an action is taken......For example let us think that we have a frame and in that table is displayed and one button is added to that frame
Setting the close button operation for the frame in Java
Setting the close button operation for the frame in Java... will learn how to implement the close button of any frame or window in java application. By default the close button of the frame is not in working state. If you
How to set the Gradient Color as a background color for Java Frame?
How to set the Gradient Color as a background color for Java Frame?  How to set the Gradient Color as a background color for Java Frame
how display jsp frame - Java Beginners
how display jsp frame  Hi all, I am creating two jsp in frame like this page content in left side.i am... in another frame,you have to use target attribute of tag in your footer.jsp.
Java Query divide frame into 3 rows and 3 columns
Java Query divide frame into 3 rows and 3 columns  how can we divide the frame into 3 rows and 3 columns
how to convert java Applet to Jave Frame
how to convert java Applet to Jave Frame  hi every java master or Java Professional my name is vincent i'm java beginners hope u all can ,tech me how to convert Java Applet to Jave Frame below this code is my applet source code
frame update another frame.
frame update another frame.   How do I make a link or form in one frame update another frame
Making a Frame Non Resizable in Java
Making a Frame Non Resizable in Java       This program illustrates you how to make a frame non resizable. It means, disabling the maximize button of the frame. The setResizable
Making a Frame Non Resizable in Java
Making a Frame Non Resizable in Java   ... a frame non resizable. It means that the disabling the maximize button of the frame. The setResizable() method has been used to make the frame resizable
Creating a Frame
;    This program shows you how to create a frame in Java Swing Application. The frame in java works like the main window where your components... and decoration for the frame.  For creating java standalone application you must
Image on Frame in Java AWT
Image on Frame in Java AWT     ... on the frame. This program shows you how to display image in your application... the image on the frame in your application. These are explained below :  main
how can i close particular frame in swings - Java Beginners
how can i close particular frame in swings  Hi, I want to know, how can we close a particular frame when mulitple frames are appearing as output... on second frame close button, it should only get close....iam trying this in swings
How will you add panel to a frame? - Java Interview Questions
How will you add panel to a frame?   How will you add panel to a frame?   you can simply use add method to add panel to a frame i.e panelA.add(frameA)  Hi Friend, Using add() method of JFrame. import
TextArea Frame in Java
TextArea Frame in Java      ... on the frame. This program uses the TextArea class of  java.awt package. Here.... Description of this program: This java program displays the text area  using java AWT
Removing the Title Bar of a Frame
bar of a frame or window in java. That means show the frame or window without title bar. The title bar of the frame or window which holds the icon, minimize... Removing the Title Bar of a Frame   
Frame query
Frame query  Hi, I am working on Images in java. I have two JFrame displaying same image. We shall call it outerFrame and innerFrame.In innerFrame i am rotating the image.After all the rotations i need to display this image
one frame update another frame
one frame update another frame  How do I make a link or form in one frame update another frame
panel and frame
panel and frame  What is the difference between panel and frame
billing frame
billing frame  how to generate billing frame using swing which contain sr. no, name of product, quantity, price & total
Java program to create a frame with 4 fields;name,sreet,city,pin;with suitable table
Java program to create a frame with 4 fields;name,sreet,city,pin;with suitable table  Java program to create a frame with 4 fields;name,street,city,pin;with suitable table. Also add a button "OK". whe it is clicked
Image on frame
Image on frame   Hi, This is my code. In this I am unable to load... java.awt.event.*; public class AwtImg extends Frame { Image img; public...(); } AwtImg() { super("Image Frame"); MediaTracker mt=new
frame generation
frame generation  Hi I wnat to genarate one frame with two tabs working ,production..and I want two radiobuttons sector ,others in the frames..based on the tab selection I want to clikc the radio button..when i ckick the radio
To write a Java program To create a frame with 4 fields;name,street,city,pin;with suitable table
To write a Java program To create a frame with 4 fields;name,street,city,pin;with suitable table  I want to write a Java program To create a frame with 4 fields;name,street,city,pin;with suitable table
Remove Minimize and Maximize Button of Frame in Java
Remove Minimize and Maximize Button of Frame in Java... of a frame. We know that the title bar contains icon, minimize, maximize and close..., the frame or window displays on the screen without minimize and maximize button
Creating a Frame
Java Swing In this section we are giving many tutorial example of Java..., calender, combobox checkbox and many more for creating GUI in Java based... in Java. Some of the features of Swing are: * Swing GUI Components* Java 2D API
 

 

 

DMCA.com