Jump to content

Need help with jumping from .java file to another .java file

- - - - -

  • Please log in to reply
2 replies to this topic

#1
TheCompBoy

TheCompBoy

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 272 posts
Hello now i bumped on another problem with my program..

from my main project file i jump to another java file that has a login frane written and i made an action listener that if you type correct password and username it should take you to a new Jframe but problem is i don't know how to jump from file to file i did it in the main file i wrote "files.LoginFrame Loginframe = new files.LoginFrame();" and it works but now i am inside my file folder and whana jump to another file inside of it.. How can i do this?

Please help me :D

#2
gregwarner

gregwarner

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 853 posts
  • Location:Arkansas
Your question is a little vague. Are you trying to instantiate a new class that's defined within a different java file from the class in your first file? As long as you import the names of the classes at the tops of your files, you should be able to reference the various classes directly from any file.
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.

– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid


#3
TheCompBoy

TheCompBoy

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 272 posts
Sorry i already solved it :) thanks anyway !




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users