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



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


samar
panel and frame
2 Answer(s)      4 years and a month ago
Posted in : Java Interview Questions


What is the difference between panel and frame ?

Advertisement
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: import java.awt.*; import javax.swing.*; import java.awt.event.*; class RetrieveDataFromTextFields{ public static void main(String[] args
panel visibility
panel visibility  give me an example how may I change panel visibility dynamicly with commandbutton. thanks
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
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
frame update another frame.
frame update another frame.   How do I make a link or form in one frame update another frame
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
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
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
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
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
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   
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
how to design control panel for web applications
how to design control panel for web applications  how to design control panel for web applications
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
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
collection frame work
collection frame work  explain the hierarchy of one dimensional collection frame work classes
 

 

 

DMCA.com