The Artima Developer Community
Sponsored Link

Java Answers Forum
IMPORTING USER DEFINED CLASSES

3 replies on 1 page. Most recent reply: Jul 5, 2003 3:56 AM by zenykx

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
deepa

Posts: 2
Nickname: deepaveni
Registered: Jul, 2003

IMPORTING USER DEFINED CLASSES Posted: Jul 1, 2003 8:39 PM
Reply to this message Reply
Advertisement
Experts,

I have trouble importing the class I have defined.
I made a class named IPcontrols.java and I want to import it into an applet in the same folder editpic.java.

So I wrote like

import IPcontrols;

but when I compile it it says a '.' expected at the end of IPcontrols, when i put that '.' it says package IPcontrols does not exist.

So please help me out.

Thanks in advance,
Deepa


mmm

Posts: 2
Nickname: m3
Registered: Jul, 2003

Re: IMPORTING USER DEFINED CLASSES Posted: Jul 3, 2003 2:13 PM
Reply to this message Reply
You do not need an import for using classes in the same directory.

deepa

Posts: 2
Nickname: deepaveni
Registered: Jul, 2003

Re: IMPORTING USER DEFINED CLASSES Posted: Jul 4, 2003 1:37 PM
Reply to this message Reply
Hi all,

Yeah, as M3 wrote, we need not import classes defined in the same folder.

But in the code (the code is not mine, I was just trying to run the code) available at
http://natsci.eckerd.edu/~wilkindj/java/javasrc.html

Its giving all these problems.
Ofcourse it is old code created on VJ++.

Still I saw a friend of mine running it without any modifications (I couldnt get in touch with him... :( , out of station).

When I was just doing the same I am getting these error messages.

So if you can find a moment....please try to run this code.
And if you can let me know.....I would be really greatful.

Thanks in advance,
Deepa

zenykx

Posts: 69
Nickname: zenykx
Registered: May, 2003

Re: IMPORTING USER DEFINED CLASSES Posted: Jul 5, 2003 3:56 AM
Reply to this message Reply
In IP_CONTROLS comment/delete import DialogLayout.
In ProImage comment/delete import IP_CONTROLS...
and then everything just goes fine !!! I really try it!

Flat View: This topic has 3 replies on 1 page
Topic: Trivial question about JScrollBar Previous Topic   Next Topic Topic: urgent help in connection pool

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use