Results 1 to 3 of 3
Thread: Login system: multiple windows
- 04-10-2012, 01:59 PM #1
Member
- Join Date
- Apr 2012
- Posts
- 2
- Rep Power
- 0
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-dogLast edited by D-Dog; 04-10-2012 at 03:21 PM.
- 04-10-2012, 02:56 PM #2
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.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 04-10-2012, 03:18 PM #3
Member
- Join Date
- Apr 2012
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
Problem when the same user login in different windows
By murali23krishna in forum JavaServer Faces (JSF)Replies: 1Last Post: 04-07-2012, 06:19 AM -
Login System
By Chaosje in forum New To JavaReplies: 3Last Post: 05-04-2011, 11:37 PM -
Database for Login system
By Chris_X in forum JDBCReplies: 1Last Post: 11-27-2010, 01:14 AM -
setWindowOpaque causes problems at windows login.
By fwilliams in forum AWT / SwingReplies: 2Last Post: 06-29-2010, 02:12 PM -
how to create a login system by using netbean 6?
By j007ha in forum NetBeansReplies: 5Last Post: 08-16-2008, 04:33 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks