Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: how to connect two classes?

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to connect two classes?

    hy
    i got projcet in blue-j with two classes.
    first is frame with textfields for bank account number and pass
    second is frame with personal data, bank transactions, etc

    i want to connect those classes (frames) so when i enter correct pass and account number and hit the button on the first frame second frame appears and first one dissapears

    i hope that`s possible

    anyway i got less than 1 h to finish it, so please help me

    tnx


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: how to connect two classes?

    Is that the best program design? Would another layout out of the components be better? Like JTabbedPane.

    If you must have two frames, have you tired using the setVisible() method?
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Connect Four FAIL....
    By melinko928 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: October 14th, 2011, 02:10 PM
  2. Connect Four GUI
    By gromacs in forum What's Wrong With My Code?
    Replies: 2
    Last Post: June 6th, 2011, 09:42 AM
  3. Cant connect with database
    By ronn1e in forum JDBC & Databases
    Replies: 1
    Last Post: January 4th, 2011, 05:45 PM
  4. Cant connect with database
    By ronn1e in forum What's Wrong With My Code?
    Replies: 0
    Last Post: January 4th, 2011, 04:09 PM
  5. Cannot Connect to Server
    By Brt93yoda in forum Java Networking
    Replies: 0
    Last Post: December 9th, 2010, 05:54 PM