Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-07-2007, 05:00 AM
Member
 
Join Date: Jul 2007
Posts: 40
cachi is on a distinguished road
Help, created a username and password box
Hi, I'm making a small system. I need to created a username and password box to allow a user to view a tab. I'm fairly new to java and I'm not sure how i would do it.

Thanks.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-07-2007, 05:21 AM
Senior Member
 
Join Date: Jul 2007
Posts: 1,189
hardwired is on a distinguished road
You can find out about password fields here: How to Use Password Fields. You can add an ActionListener to the JTabbedPane and, if the user selected the tab you want to protect, launch the password dialog(for this you could use a JOptionPane) and decide about opening the tab depending on user response.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find file created date..... roshithmca Advanced Java 1 02-18-2008 10:48 AM
How to prevent duplicate username entry in database? anki1234 JavaServer Pages (JSP) and JSTL 4 01-09-2008 09:02 AM
create a tree when a new class is created osval Advanced Java 1 08-06-2007 09:58 PM
JTextFields with username & password. Eric AWT / Swing 2 07-02-2007 12:41 AM
without restarting the websphere server i need to connect a newly created database satya Enterprise JavaBeans 4 06-05-2007 02:45 AM


All times are GMT +3. The time now is 01:39 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org