Results 1 to 3 of 3
  1. #1
    D-Dog is offline Member
    Join Date
    Apr 2012
    Posts
    2
    Rep Power
    0

    Question Login system: multiple windows

    Hey there,
    I’m writing a program that administrates employees, time registration, projects, activities exc. for a given firm.

    Therefore it's necessary for me to have a proper login system with different levels of access. (employees, project leaders, CEO exc.).

    The login screen is a class with only the "Username" and "Password" textlines and a Jbutton "Login". And i made the different levels of acces with a "if/else"-statement caused by a usertype number.

    My best solution would be to assign each level of users their own window in their own class, so I do not have to look around in a 400 lines of code.

    My problem is now that I can not recall the various classes in my if / else statements cause they are in my login class.

    WindowBuilder is a good and smooth tool that I would love to learn bur when i create a new class with the WindowBuilder it creates a main class.
    I understand that I must remove the main class and keep only the main class in the login class.

    There was one who said I could use CardLayout but personally I believe that it's not the best option since I need 3/4 windows.

    Thank you for all the help I can get.
    D-dog
    Last edited by D-Dog; 04-10-2012 at 03:21 PM.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,184
    Rep Power
    19

    Default Re: Login system: multiple windows

    No, it's not exactly the same problem. If it had been the answers in the thread you posted in would have sufficed.

    When you have a question, get your own thread -- they're free. Don't post to a two-year old thread and don't hijack another poster's thread.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    D-Dog is offline Member
    Join Date
    Apr 2012
    Posts
    2
    Rep Power
    0

    Default Re: Login system: multiple windows

    Ok, dont be mad, just figured it would have been alot easier to reply in that thread.

    Thanks for moving the question!

Similar Threads

  1. Problem when the same user login in different windows
    By murali23krishna in forum JavaServer Faces (JSF)
    Replies: 1
    Last Post: 04-07-2012, 06:19 AM
  2. Login System
    By Chaosje in forum New To Java
    Replies: 3
    Last Post: 05-04-2011, 11:37 PM
  3. Database for Login system
    By Chris_X in forum JDBC
    Replies: 1
    Last Post: 11-27-2010, 01:14 AM
  4. setWindowOpaque causes problems at windows login.
    By fwilliams in forum AWT / Swing
    Replies: 2
    Last Post: 06-29-2010, 02:12 PM
  5. Replies: 5
    Last Post: 08-16-2008, 04:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •