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?

Answers were Sorted based on User's Feedback



Does Swing contains any heavy weight component?..

Answer / varahala raju penmetsa

not components , in swings all top level Containers are
Heavy weight , JFrame,JWindow,JDialog,JApplet they do not
inherit from JComponent but they do from Component in AWT
thats y they are heavy weight .

cheers,

Is This Answer Correct ?    5 Yes 0 No

Does Swing contains any heavy weight component?..

Answer / jay

Yes. JFrame is Heavy Weight

Is This Answer Correct ?    4 Yes 0 No

Does Swing contains any heavy weight component?..

Answer / kalpit

With Swing only the top-level components are heavyweight:
JApplet,JFrame, JDialog, and JWindow.

Is This Answer Correct ?    4 Yes 2 No

Does Swing contains any heavy weight component?..

Answer / naresh tuhania

In swing all top-level components are heavyweight

Is This Answer Correct ?    2 Yes 0 No

Does Swing contains any heavy weight component?..

Answer / 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

More Swing Interview Questions

What is swing api?

0 Answers  


What is import javax swing * used for?

0 Answers  


Explain the difference between jfc & wfc.

0 Answers  


Who created the swing?

0 Answers  


What are the advantages of java swing over angular?

0 Answers  


What class is at the top of the AWT event hierarchy?

0 Answers  


What are swings awt?

0 Answers  


What is swing package in java?

0 Answers  


What is jlabel java swing?

0 Answers  


What are the various components of swing?

0 Answers  


Why would you use swingutilities.invokeandwait or swingutilities.invokelater?

0 Answers  


how can u handle runtime exceptions in java plz explain with examples briefly?

3 Answers   Fujitsu, IBM,


Categories