samar
panel and frame
2 Answer(s)      2 years and 7 months ago
Posted in : Java Interview Questions

What is the difference between panel and frame ?
View Answers

October 29, 2010 at 4:54 PM


Hi,

Here is the answer.

Frame : A resizable, movable window with title bar and close button. Usually it contains Panels. It is Derived From Window. Default layout is BorderLayout.

Panel : A region internal to a Frame or another Panel. Used for grouping components together. Not bounded by a visible border. You can change background colour of a panel to delimit it though. Lives inside some enclosing Container. It is Derived From Container. Default layout is FlowLayout.

Thanks.


July 15, 2012 at 4:16 PM


thanks for giving this beautiful answer..









Related Pages:
panel and frame
panel and frame  What is the difference between panel and frame
how to add panel inside frame?
how to add panel inside frame?  I prepared a Frame with two labels... should be appear(those text fields should be added to the panel) .I want to add panel after those components.but while compilation its showing errors.how
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... extends JFrame { JButton ADD; JPanel panel; JFrame f; FormDemo
multiple records on same panel
multiple records on same panel  i have multiple access of records and i want to display all of them at one panel.Each time a new panel opens for a keyrecord , i want just to show records on same panel or frame, whatever u can
Left and Right panel in JSP - Java Beginners
Left and Right panel in JSP  Hello Friends, Please help me to showing right and left frame on my JSP page. I want to showing fix left frame which... on frame2 means in frame right. Give suggest me solution which support my
Helps with combo box and frame
on add button another frame pop up with text field(name ,address etc..) ,confirm button and cancel button at bottom of the frame. When i put something...() { return TelephoneNumber; } public AddressList(){ JFrame frame
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
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
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
add button to the frame - Swing AWT
table with database data JFrame frame = new JFrame("View Patients"); Container content = frame.getContentPane(); JPanel panel = new
panel visibility
panel visibility  give me an example how may I change panel visibility dynamicly with commandbutton. thanks
Displaying search results in same panel of gridview in same jframe window.
Displaying search results in same panel of gridview in same jframe window.  Hello Sir, I have a search frame window from which we can search and see the results in the same panel of the Jframe in Gridview Jtable
Displaying search results in same panel of gridview in same jframe window.
Displaying search results in same panel of gridview in same jframe window.  Hello Sir, I have a search frame window from which we can search and see the results in the same panel of the Jframe in Gridview Jtable
Zooming Panel
Zooming Panel  Hello, i have to create a small panel of size( 50, 50 ), which allow to display web pages and should allow the user to zoom the panel... to make the URL display correctly, but am unable to make the panel to grow in size
Showing the Frame with Default Look and Feel
Showing the Frame with Default Look and Feel   ... the frame in the default look and feel. Displayed frame has a combo box and a text... shot of frame with default look and feel: Here is the code of the program
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
frame update another frame.
frame update another frame.   How do I make a link or form in one frame update another frame
How to open textfields in the the same panel of the jframe by selcting from dropdown menu option ...
How to open textfields in the the same panel of the jframe by selcting from... the textfields and submit button in the same panel of the jframe window . Below is my... JFrame frame = new JFrame("Creating a JComboBox Component"); final JPanel
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
tabbed panel Helppp !!!! - Struts
tabbed panel help  i need struts tabbed panel example. Hi everybody plz ,im newbie on struts. i have to developpe a web application using struts 1.1, somebody advise me to use Tabbed Panel but i don't know how to use them
one frame update another frame
one frame update another frame  How do I make a link or form in one frame update another frame
Java Frame
Java Frame  What is the difference between a Window and a Frame
Show Addition, Subtraction, Intersection, Exclusive OR on one Frame
Frame       This section... frame.  In this section, we are providing you an example which performs all the functions on one frame. Two classes Rectangle2D and Ellipse2D are used
Show Addition, Subtraction, Intersection, Exclusive OR on one frame
Show Addition, Subtraction, Intersection, Exclusive OR on one frame... illustrates you how to show Addition, Subtraction, Intersection, ExclusiveOR on one frame... the functions on one frame. Two classes Rectangle2D and Ellipse2D are used which
resize a panel slowly - IDE Questions
resize a panel slowly  How to code to resize a panel slowly with netbeans
billing frame
billing frame  how to generate billing frame using swing which contain sr. no, name of product, quantity, price & total
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 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
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
settings in control panel before jdbc
settings in control panel before jdbc  do we need to do any settings in the control panel before starting jdbc?   Hello Friend... in Control Panel. Follow these steps: 1)Go to the start<< Control Panel<<
how to create frame in swings
how to create frame in swings  how to create frame in swings
collection frame work
collection frame work  explain all the concept in collection frame work
Creating a Frame
; Setting the Icon for a Frame    Showing a Dialog Box  ... an Icon to a JButton Component    Making a Frame Non-Resizable    Removing the Title Bar of a Frame   
link to other frame - Applet
link to other frame  how a button to open to another frame? and the frame can keyin the data and it can show at the previous frame
Modal Panel example in Wicket
Modal Panel example in Wicket       Modal Panel is like a container that blocks the operation of base page when the modal panel is open. This can be used to create a good GUI
collection frame work
collection frame work  explain the hierarchy of one dimensional collection frame work classes
collection frame work
collection frame work  could you please tell me detail the concept of collection frame work
how to get the image of a selected JRadioButton to another panel?
how to get the image of a selected JRadioButton to another panel?  how to get the image of a selected JRadioButton to another panel
how to design control panel for web applications
how to design control panel for web applications  how to design control panel for web applications
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
Cross frame menus - Ajax
Cross frame menus  Respected Sir/Madam, I am Ragavendran.R.. I need to implement DHTML Cross frame menus..i.e There must be a page with 2 frames(top and bottom).. The main menus must be in the top frame and when I
Frame with JDBC - JDBC
Frame with JDBC  What is the Frame in JDBC?  Hello,What is the structure of table and in which format you wan't to display the data.Last time also you posted the same question.Answer me the above question and I
Dialog Frame focus - Framework
Dialog Frame focus  Is it possible somehow to focus/activate/select... visit the parent frame also. But on some event(like a button), I want my dialog frame to be focussed/active.(Here i dont want to reopen it. As it is already opened
jumping frame jFrame to jInternalframe
jumping frame jFrame to jInternalframe  Afternoon sir, I want to ask something code like jumping frame. example this i have form Login , Menu...) , and in employee(jinternal Frame) have nik(jTexkfield1), name(jtextfield2
swing frame problem
swing frame problem  Hi All, I m creating a swing/awt based window... a frame which have few buttons and Text Box to get some data from user at this time when I will click on submit button then next frame should be open with in same
hibernat frame work
hibernat frame work  what is the deployment structure for 'hibernete.cfg.xml','contact.hbm.xml','Contact.java','FirstExample.java' programs into eclipse ide   Have a look at the following link: Hibernate Tutorial
Frame with JDBC - JDBC
Frame with JDBC   i am using frame having two textfield so how i retrieve the data from the ms-access there is two columns name and salary   Hi,Do you want to display the data on JSP Page?If yes then following tutorial

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.