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 the what is the difference between invokeandwait() and invokelater()? ?

0 Answers  


What are the advantage of swing over awt?

0 Answers  


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

0 Answers  


What is swing in java javatpoint?

0 Answers  


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

3 Answers   Fujitsu, IBM,


Why do we use swing in java?

0 Answers  


What is jpanel in java swing with example?

0 Answers  


What are differences between swing and awt?

0 Answers  


What is the difference between AWT & Swing?

21 Answers   BeBo Technologies, Deshaw, TCS,


What is jpanel swing?

0 Answers  


What are the swing components in java?

0 Answers  


What is the purpose of transferhandler class?

0 Answers  


Categories