Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Does Swing contains any heavy weight component?

Answer Posted / karthik

Yes ok

Example:

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class xx extends JFrame
{

xx()
{
Container con=getContentPane();
//this Heavy weight component Button
con.add(new Button("hhhhhhhhhhhhhhhhh"));
setVisible(true);
setSize(200,300);
}
public static void main(String aa[])
{
new xx();
}
}

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which method is used by the applet to recognize the height and width?

1037


What is swing and its features in java?

955


Which package is needed for swing components?

852


What are swings awt?

880


Is java swing deprecated?

1026


What is jfc? What are the features of jfc?

983


What is the use of jcomponent class in swing?

984


What are the components of swing?

920


What are heavyweight components? What is lightweight component?

916


What is jlabel java swing?

935


What are the differences between Swing and AWT?

1071


What are the advantage of swing over awt?

962


Is there any heavyweight component in swings?

937


What is the function of internal frame in swing?

1006


What is import javax swing?

916