• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax.swing.JOptionPane

 
thomas r
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im a new programmer and i just downloaded ready to program with java and i need to import javax.swing.JOptionPane but it says it dosnt exists where can i go to get it ?

ty for your help in advance.
 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch

JOptionPane is already in the JDK. Next time, carefully choose the appropriate forum. We have Swing and beginner forum.
 
thomas r
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im using READY TO PROGRAM with java here is the error meassage when i try to compile it.
javax/swing/JOptionPane is either a misplaced package name or a non-existent entity. When i use this exact code at my schools computers it seems to work fine. so i unno ty for your help all
 
Andre Brito
Ranch Hand
Posts: 95
Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That can be problems with classpath.

Like the other user said, JavaRanch has places for Swing things (instead, I believe that this is problem for Begginners).

Google classpath problems in Java. You'll find good tutoials.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic