how to disable menu for user who has not login

im actually doing a GUI which consist of a tabbedpane(acts as a menu)..

my question is if someone has not login, can i disable those tabbedpane menu using any of the predefined method??
tom_mkAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
Have them disabled by default at startup and then enable on login
0
tom_mkAuthor Commented:
can u please tell me in details the kinds of methods that i have to use to disable them???  Im kinda new to java sorry
0
tom_mkAuthor Commented:
that wat my friend :)
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

CEHJCommented:
Use http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JTabbedPane.html#setEnabledAt(int, boolean)

when you first show the gui and disable the appropriate tabs. Enable on login
0
tom_mkAuthor Commented:
i meant "disable the whole frame" except one "dialog box"

0
CEHJCommented:
You can use a JDialog in modal mode. This will stop further input until logon has occurred
0
CEHJCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
objectsCommented:
why don't you just not add the tabs until the user logs in.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.