• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Simple swing package question

 
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm pretty new in the area of Swing for Java.
I've just downloaded a bunch of codes which were written in 1998. The import package for Swing are all "com.sun.java.swing". But my current Java 1.3 IDE uses swing as via "javax.swing".
FIRST QUESTION, what is the main diff between them?

So, initially they have: -
com.sun.java.swing.JPanel
com.sun.java.swing.JLabel
com.sun.java.swing.JFrame
com.sun.java.swing.JTextField
com.sun.java.swing.JButton
com.sun.java.swing.event.ChangeEvent
com.sun.java.swing.event.ChangeListener
I replace all "com.sun.java.swing" with "javax.swing".
The program runs well after that. However, I'm planning to add more features with Java 1.3 Swing classes...so does anyone knows the downside to this?

------------------
Thank you.
- Simon See
simon-ivy@usa.net
-after office hours-
necro-mani-cide
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This was answered in the JFC, Swing, AWT forum, so I'm closing this one... Please don't cross-post topics...

-Nate
 
grapes are vegan food pellets. Eat this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic