• Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing pacakage  RSS feed

 
Anna Hays
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When it says we must use swing, it doesn't mean we can only use from javax.swing package is it? we can use java.awt etc still right? Just to make sure...
 
Satish Avadhanam
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Anna Kafei:
When it says we must use swing, it doesn't mean we can only use from javax.swing package is it? we can use java.awt etc still right? Just to make sure...

Yep. We can...
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Posts: 12149
255
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Anna,
You can use AWT where necessary (for example using one of the layouts), but where there is a Swing equivalent, you should use it (e.g. don't use Button when you can use JButton).
Regards, Andrew
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!