• Post Reply Bookmark Topic Watch Topic
  • New Topic

Heavy Weight Components in SWING

 
Chinmay Bajikar
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are there any heavyweight components in SWING?
Somebdy asked this question to my friend in an interview.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A quick answer is "no", but it depends on what they mean by "component". All the top-level containers of the Swing API (JFrame, JDialog, JApplet) are heavyweight and do extend java.awt.Component, although since they don't extend javax.swing.JComponent it may be arguable that they aren't *Swing* components. All the other components in the Swing API (JLabel, JTextField, JButton, etc.) are lightweight.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!