hi

i hv one public class admins in one java file

and i hv another public class login in another java file

both files are in same folder login.

i want to use admins class in login class.

How can i do it,,?


>> extending cannot be possible because both classes hv already extended JFrame class


>> i also tried creating object of admin in login,,,but it gives error,,,

: cannot find symbol

symbol class admins

location class login.login

What is the way out,,?

plz help

thnks


HARLEEN

Recommended Answers

All 5 Replies

Read this entire tutorial.

thnks,,

i kno about packages but with it i hv another problem,,,


see here http://www.daniweb.com/forums/thread297979.html

Then, obviously, you do not know about packages, nor proper use of classpaths. And those are two topics that I am not going to get more involved in on a forum as it only leads to frustation on all sides. Find a tutor who can personlly stand beside you and go through all of this truely basic stuff. You'll never "get it" on a forum.

Then, obviously, you do not know about packages, nor proper use of classpaths. And those are two topics that I am not going to get more involved in on a forum as it only leads to frustation on all sides. Find a tutor who can personlly stand beside you and go through all of this truely basic stuff. You'll never "get it" on a forum.

thnks

i hv used packages

they are working fine with other programs,

but i dont kno why not with this program

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.