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




Have Programming Question? Ask it here!
 
 
 


samar
panel and frame
2 Answer(s)      3 years and 10 months 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
billing frame
billing frame  how to generate billing frame using swing which contain sr. no, name of product, quantity, price & total
resize a panel slowly - IDE Questions
resize a panel slowly  How to code to resize a panel slowly with netbeans
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<<
collection frame work
collection frame work  explain all the concept in collection frame work
how to create frame in swings
how to create frame in swings  how to create frame in swings
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
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
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  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
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
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
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
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
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
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
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
spring MVC frame work - Spring
spring MVC frame work  Example of spring MVC frame work
Frame works - Framework
Frame works  I need tutorials on JAVA Plugin Frameworks and hibernate and springs ? I new to these Technologies so i need with Examples to understand Using above technologies i need to do project. so ASAP pls
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
Panel Container in Flex4
Panel container in Flex4: A Panel container can contain many components. ... children components. It also contains a sub panel container according to requirement. The tag of Panel container is <s:Panel>. The default size of panel
zend2 frame work
zend2 frame work  Hi can you please detail about Zend framework 2 latest folder structure and related things in details . I already seen zend website am confused with two old and new folder structures which one has to use
Creating Tab Panel using GWT
Creating Tab Panel using GWT   ... Panel using GWT. The steps involved in Building the Tab Panel are described.... TabPanel  is a panel that represents a tabbed set of pages, each of which contains
jsp page authentication panel using jsp/servlet?
jsp page authentication panel using jsp/servlet?  I have 10 jsp jsp forms and 7 users and i want to grant variour permission like edit,delete and save for users dynamically on forms.So please refer me code
java icon in control panel - Java Beginners
java icon in control panel  i have a folder icon in the contrl panel instead of a coffee cup when i click on it says not to be found but i have java 6 with 7 downloaded i have windows vista preium
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... String PAINT_ICON = "paint_icon"; //true if the next frame created should
How to make frame of the picture, make frame of the picture, frame of the picture
How to make frame of the picture       This is about a frame example that has been made by some steps, I have mention here all the steps to make this effect. Take picture: First
Advertisements
 

 

 

DMCA.com