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

Why should any swing call back implementation execute quickly?

1213


What is the process of setting the layout manager?

1055


What is swing and its features in java?

1032


What is swing package in java?

974


What is the base class for all swing components?

1052


What is the function of abstractaction class?

1065


What is actionlistener in java swing?

1038


What are differences between swing and awt?

1020


What is the use of swing in java?

1063


What is import javax swing jframe?

1015


What is the class in swing to change the appearance of the frame in runtime?

1054


What are the advantages of java swing over angular?

954


What are controls and what are different types of controls in awt?

1031


Is swing part of core java?

1013


What are swing components?

1085