Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.Swing or java.Swing ? ? ? ?  RSS feed

 
Brett Swift
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using VisualAge 2.0 and am trying to use the JCalendar from
http://www.toedter.com/en/jcalendar/index.html
however.. this javaBean requires the Swing components, and says "the SuperClass javax.Swing.JPanel can not be found".... however I use the JPanel and many other Swing components in my application... but when I reference the JPanel bean in my application.... its referenced as com.sun.Java.Swing .
I have the JDK 1.3.1_02
Do the java gods just hate me?
 
jrookie
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try use
import javax.swing.*;
just "swing" - "s" must be lower case
 
Brett Swift
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
lol...
well ...you're soon to get a notice from one of the admin to change your name.
and second of all...the bean i am using is importing javax.swing.
but thanks for puttin in the effort.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!