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
Need help with jumping from .java file to another .java file
Started by TheCompBoy, Apr 10 2011 07:08 AM
2 replies to this topic
#1
Posted 10 April 2011 - 07:08 AM
|
|
|
#2
Posted 12 April 2011 - 06:59 PM
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
Posted 15 April 2011 - 10:35 AM
Sorry i already solved it :) thanks anyway !
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









