panel and frame

panel and frame

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 Tutorials/Questions & Answers:
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
Advertisements
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
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:ADS_TO_REPLACE_1 import java.awt.*; import javax.swing.*; import java.awt.event.*; class RetrieveDataFromTextFields{ public static void
frame update another frame.
frame update another frame.   How do I make a link or form in one frame update another frame
panel visibility
panel visibility  give me an example how may I change panel visibility dynamicly with commandbutton. thanks
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
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
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
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
Frame
frame
ModuleNotFoundError: No module named 'panel'
ModuleNotFoundError: No module named 'panel'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'panel' How to remove the ModuleNotFoundError: No module named '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
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
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
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
resize a panel slowly - IDE Questions
resize a panel slowly  How to code to resize a panel slowly with netbeans
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
collection frame work
collection frame work  could you please tell me detail the concept of collection frame work
collection frame work
collection frame work  explain the hierarchy of one dimensional collection frame work classes
ModuleNotFoundError: No module named 'frame'
ModuleNotFoundError: No module named 'frame'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'frame' How to remove the ModuleNotFoundError: No module named 'frame'
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   
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
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
spring MVC frame work - Spring
spring MVC frame work  Example of spring MVC frame work
another frame by using awt or swings
another frame by using awt or swings  how to connect one frame to another frame by using awt or swings
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
ModuleNotFoundError: No module named 'awesome-panel'
ModuleNotFoundError: No module named 'awesome-panel'  Hi, My... 'awesome-panel' How to remove the ModuleNotFoundError: No module named 'awesome-panel' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'chrome-panel'
ModuleNotFoundError: No module named 'chrome-panel'  Hi, My Python... 'chrome-panel' How to remove the ModuleNotFoundError: No module named 'chrome-panel' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'panel-indicator'
ModuleNotFoundError: No module named 'panel-indicator'  Hi, My... named 'panel-indicator' How to remove the ModuleNotFoundError: No module named 'panel-indicator' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'panel-plots'
ModuleNotFoundError: No module named 'panel-plots'  Hi, My Python... 'panel-plots' How to remove the ModuleNotFoundError: No module named 'panel-plots' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'pixel_panel'
ModuleNotFoundError: No module named 'pixel_panel'  Hi, My Python... 'pixel_panel' How to remove the ModuleNotFoundError: No module named 'pixel_panel' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'ajenti-panel'
ModuleNotFoundError: No module named 'ajenti-panel'  Hi, My Python... 'ajenti-panel' How to remove the ModuleNotFoundError: No module named 'ajenti-panel' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'cac-panel'
ModuleNotFoundError: No module named 'cac-panel'  Hi, My Python... 'cac-panel' How to remove the ModuleNotFoundError: No module named 'cac-panel' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'chrome-panel'
ModuleNotFoundError: No module named 'chrome-panel'  Hi, My Python... 'chrome-panel' How to remove the ModuleNotFoundError: No module named 'chrome-panel' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'awesome-panel'
ModuleNotFoundError: No module named 'awesome-panel'  Hi, My... 'awesome-panel' How to remove the ModuleNotFoundError: No module named 'awesome-panel' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pixel_panel'
ModuleNotFoundError: No module named 'pixel_panel'  Hi, My Python... 'pixel_panel' How to remove the ModuleNotFoundError: No module named 'pixel_panel' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'awesome-panel'
ModuleNotFoundError: No module named 'awesome-panel'  Hi, My... 'awesome-panel' How to remove the ModuleNotFoundError: No module named 'awesome-panel' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'djangocms-panel'
ModuleNotFoundError: No module named 'djangocms-panel'  Hi, My... named 'djangocms-panel' How to remove the ModuleNotFoundError: No module named 'djangocms-panel' error? Thanks   Hi, In your python
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

Ads