aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes Getting started Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "Getting started" Watch "Getting started" New topic
Author

Getting started

Shawn Stroud
Greenhorn

Joined: Dec 12, 2001
Posts: 3
I am trying to use a java extension package (javax.swing) so I can import the JOptionPane GUI. The compiler doesn't locate it and I've tried changing the path to directories where I have all the libraries. I am not sure how to search for it since it doesn't have a standard file format (javax.swing.JOptionPane).
Any suggetions? "Give up" is not acceptable
SS
Tom Ben
Ranch Hand

Joined: Aug 17, 2001
Posts: 109
How are you trying to access it in your code? Can you paste a copy of your program or atleast the portion that you are having an issue with?
Originally posted by Shawn Stroud:
I am trying to use a java extension package (javax.swing) so I can import the JOptionPane GUI. The compiler doesn't locate it and I've tried changing the path to directories where I have all the libraries. I am not sure how to search for it since it doesn't have a standard file format (javax.swing.JOptionPane).
Any suggetions? "Give up" is not acceptable
SS


------------------
Sun Certified Programmer on the Java 2 Platform


Sun Certified Programmer on the Java 2 Platform
Shawn Stroud
Greenhorn

Joined: Dec 12, 2001
Posts: 3
The code for my JOptionPane looks like this - doesn't seem complicated. I've compiled at the C prompt before but not using swing package.
import javax.swing.JOptionPane;
public class Analysis
{public static void main ( String args [] )
{int attempts = 0,
goalsmissed=0,
player=1
result;
String input,
output;
Tom Ben
Ranch Hand

Joined: Aug 17, 2001
Posts: 109
I created and compiled a class ok with just importing the JOptionPane. What version of the jdk are you using?
Originally posted by Shawn Stroud:
The code for my JOptionPane looks like this - doesn't seem complicated. I've compiled at the C prompt before but not using swing package.
import javax.swing.JOptionPane;
public class Analysis
{public static void main ( String args [] )
{int attempts = 0,
goalsmissed=0,
player=1
result;
String input,
output;

Shawn Stroud
Greenhorn

Joined: Dec 12, 2001
Posts: 3
Im using 1.3.1 and also have the Java2 platform. I have classes and libraries in the following directories:
C:\CoreJava
C:\InstantJavaBook
C:\JavaByExampleBook
C:\JDK1.3.1
C:\JustJavaBook
ALL that and I can't find javax.swing!...
Shawn
 
IntelliJ Java IDE
 
subject: Getting started
 
Threads others viewed
WebSphere and EJB's
Vector
table size under JDK1.2.2 vs. JDK1.3
Good news ... :) Maha became SCJP today.
The Winners Are
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture