What's the easiest way to make a password system? 10 Duke Points!

Hello everyone,
What's the easiest way to make a password system in java?
I'd like to be able to:
1) store passwords for about 6 people.
2) have the people only interact with my program using my Eclipse console with no GUIs, pop-ups or Swing code.
3) let the people have the ability to create/delete their own passwords and logins. (ideally)
Having searched around the Internet, it seems that the options are to:
A) have code that allows users create files, write to files, read from files.
B) have code that serializes objects - this seems pretty difficult.
C) have code that has a hash table of some kind - although I don't really know hash tables very well and am not sure if they can store data over time unless the program is always running (which is an option).
D) use some sort of javadoc like PassWordCallback - this one looks the easiest as the code already seems to be there but I'm not really sure how to include this type of stuff in my code.
E) have code that allows users to input their password, which I've given them on a piece of paper, and then allow the code to match it to a file - this wouldn't let the users create their own passwords though.
Anyway, hope you can help!
I have a 'Head First Java' book and a 'Java for Dummies' book if you know of anything directly useful in these books.
Edited by: woodie_woodpeck on Jan 11, 2009 3:51 AM

bastones_ wrote:
Using GUIs and Swing is really easy, I have only been using Java for a week now and I have already made a simple application with events. First of all Swing is a package and you need to import it (as described in the documentation).
When you click on the Swing package in the documentation to the second frame you'll see JFrame when you scroll down. JFrame's are the main windows on your screen. JFrame is a class therefore it needs to be instantiated (making an instance of that class so we can use it). After all, everything is based around classes.
JFrame frame = new JFrame("Title here");
Note: The "JFrame" before the frame vaiable name is the "data type" of the variable, really we're making an object type (I think its called) just like we'd do String frame if we wanted to make a frame variable that is of type String.
As explained in the [JFrame section of the documentation|http://java.sun.com/javase/6/docs/api/javax/swing/JFrame.html] in the "Constructor Summary" section is the different types of Construtors that are made available to us when we instantiate the JFrame class. One of the construtors available are:
JFrame(String title)
... which is exactly what I did above in the brackets/parentheses (its telling us we can add a String title).
Remember constructors do not have any return type or anything and is not a method, because it is the same name as the class and when we instantiate we call the constructor. And so the JFrame class has many constructors, one is for making a title for our JFrame and another is just instantiating without a title. If there wasn't the JFrame(String title) and just JFrame() constructor, we wouldn't be able to add a title as we made an instance of JFrame.
So once we've made an instance of JFrame we have all the methods available (and all of the methods are shown in the API documentation).
Hope you understand now :).Wow. Thanks a lot bastones_. I think Swing is just a bit beyond me at the moment and will require quite a bit of time for me to master. Is there not an easier way of making a password system? I think that A (see above) seems the easiest for me at the moment and D (see above) would be nice if I could just figure out how to use the javadoc.

Similar Messages

  • What is the easiest way to make a slide presentation DVD with music that can be played on PC or DVD player using MacBook Pro?

    What is the easiest way to make a slide presentation DVD with music that can be played on a PC or DVD player?  I'm using a MacBook Pro since that's the computer that has all the photos (in an album) and music.  Thanks.

    I would suggest that you post this to the Adobe Encore>Menus & Buttons forum. What you want to do, if I read correctly, is pretty simple. There will probalby be links available to step you though it. I'll look for this there, and start gathering some links.
    Good luck,
    Hunt

  • What's the easiest way to make a SOAP client request in java?

    I need to make a request to a website that provides tv listings. Basically I just need to make a simple SOAP request for the listings and the site provides them in XML format.
    What's the easiest way to do this? Do I need to download a package like Axis2 or JAX-WS? These seem kind of overkill for what I want to do, since I don't need to run a server. Is there something in the Java standard libraries that will do this? Is it difficult to just write the code for this my self?

    I've been trying to do it with HTTP POST commands. Here is the sample SOAP envelope that the site gives:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
         <SOAP-ENV:Body>
              <m:download xmlns:m="urn:TMSWebServices" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
                   <startTime xsi:type="xsd:dateTime">2005-02-22T19:00:00Z</startTime>
                   <endTime xsi:type="xsd:dateTime">2005-02-22T21:00:00Z</endTime>
              </m:download>
         </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>I can post this to the URL and it gives me back a generic xml file as a reply with no listings. The problem is that the site requires credentials, so I assume I have to login somehow first. Can anyone tell me how I would do this?

  • What's the easiest way to make a preloader?

    What's the fastest, easiest way to make a preloader? I'm new
    to Flash and don't know any actionscripting, so any help would be
    greatly appreciated, thanks!

    fastest way would be to google it :)
    there are an unlimited amount of tutorials and source files
    all over the web for years - try
    www.kirupa.com or www.gotoandlearn.com
    ~~~~~~~~~~~~~~~~
    --> Adobe Certified Expert
    --> www.mudbubble.com
    --> www.keyframer.com
    ~~~~~~~~~~~~~~~~
    xslamx wrote:
    > What's the fastest, easiest way to make a preloader? I'm
    new to Flash and don't know any actionscripting, so any help would
    be greatly appreciated, thanks!

  • What's the easiest way to make scrolling text?

    I'm creating a template to use for a site, and I put an
    editable region inside of a table cell. The problem is some of the
    text for certain pages is more than will fit in the cell. How can I
    make it so the text scrolls inside of the cell? Is there an
    extension or something that will add the scrollbars? Thanks, I
    really appreciate the help!

    You'll only get the scroll bar if the text height exceeds
    300px. Use
    overflow:scroll if you always want scroll bars.
    What browser did you test it in? Some older browsers do not
    support
    overflow.
    What element did you assign the maintext class to? It needs
    to be on a
    block-level element. I would not put it on the <td>.
    You can always add
    a <div> tag inside the <td> if there is no single
    containing tag.
    Yes, the height should match the table cell height.
    HTH,
    Randy
    > I tried it and it didn't work. What I did was I have the
    text assigned to a
    > style class called .maintext and I added those two lines
    to it. It looked like
    > this...
    >
    > .maintext {
    > font-family: Arial, Helvetica, sans-serif;
    > font-size: 12px;
    > font-style: normal;
    > line-height: 18px;
    > color: #FFFFFF;
    > overflow: auto;
    > height: 300px;
    > }
    >
    > Like I said, this didn't seem to work. I put the text
    into the editable
    > region and it broke the table, no scroll bars appeared
    when I viewed it in a
    > browser as well. Was I supposed to put the two lines of
    code somewhere else?
    > Like on the <td> tag?
    >
    > Also, should the height coincide with the pixel height
    of the cell I'm putting
    > the text into?

  • What's the best way to make a tribute DVD?

    I wanted to make a DVD for my mom for her birthday. What is the easiest way to make a photo slideshow with music with short video clips? Can I make each section a separate slideshow in Iphoto with music and then just import that as a project into iMovie '09 and then string them together with short video clips in between?
    Also, I am having different people send me videos. What video formats are usable with iMovie '09?

    You might be better advised posting this in either the iPhoto or iMovie forum rather than here in iTunes. I think you are more likely to get relevant answers there as your question seems to be specifically about those programs.

  • What is the easiest way to create alias email addresses in exchange 2013?

    For example my official domain is [email protected]
    Within my company i want to make it look like certain departments are sending from bicycles.com skateboards.com
    and skooters.com and receive to those addresses even though the emails are really going through the
    [email protected] domain. but it appears to be coming from three other domains.
    appearance is everything. What is the easiest way to accomplish this.
    Step by step with examples if possible. I am not well versed in exchange server 2013 yet.
    Droid Hacker

    In Exchange 2013 you can use the ECP to add additional email addresses to mailboxes. In order for a mailbox to send using an address, that address needs to be set as the reply address. One mailbox cannot send as multiple addresses. Doing that would require
    a mailbox for each address. To set a new primary address on a mailbox log into the ECP and choose mailboxes under the recipients option on the left. Then search for the mailbox you want to add the address to and click the edit symbol. Navigate to the
    Email Address tab on the left. To set a new primary address you will likely need uncheck the box for "Automatically update email addresses based on the email address policy applied to this recipient". Then click the plus button, enter the new address,
    and check the box for "Make this the reply address"
    Before you do this you should ensure that the proper MS records exist for these other domains, and that they are properly configured for mail flow. Once you set this as the reply address for a mailbox, that is the address external users will use for replies.

  • What's the easiest way to add storage to a mac mini. (1TB hard drive but only 32G of real storage). External device, internal or partitioning?

    What's the easiest way to add storage to a mac mini. (1TB hard drive but only 32G of real storage). External device, internal or is there some way to partition? I tried doing so but received a message that there wasn't enough free space to partition. Seems like a 1TB drive should have more storage than my Ipad

    Its worth confirming what free space you have on your drive: 
    go to:   Apple Menu > About this Mac >  More Info > Storage
    The bar chart shows how much free space there is on the drive:
    Please realise that partitioning does not create extra space so this wont help you.
    If your free space is less than 20 % you should get extra storage with an external USB or Firewire drive, any make or model will work.

  • What's the easiest way to move app data and data structures to a server?

    Hi guys,
    I've been developing my app locally with Apex 4.2 and Oracle 11g XE on Windows 7. It's getting close to the time to move the app to an Oracle Apex server. I imagine Export/Import is the way to move the app. But what about the app tables and data (those tables/data like "customer" and "account" created specifically for the app)? I've been using a data modeling tool, so I can run a DDL script to create the data structures on the server. What is the easiest way to move the app data to the server? Is there a way to move both structures and data in one process?
    Thanks,
    Kim

    There's probably another way to get here, but, in SQL Developer, on the tree navigation, expand the objects down to your table, right click, then click EXPORT.. there you will see all the options. This is a tedious process and it sucks IMO, but yeah, it works. It sucks mostly because 1) it's one table at a time, 2) if your data model is robust and has constraints, and sequences and triggers, then you'll have to disable them all for the insert, and hope that you can re-enable constraints, etc without a glitch (good luck, unless you have only a handful of tables)
    I prefer using the oracle command line EXP to export an entire schema, then on the target server I use IMP to import the schema. That way, it's near exact. This makes life messy if you develop more than one application in a single schema, and I've felt that pain -- however -- it's a whole lot easier to drop tables and other objects than it is to create them! (thus, even if the process of EXP/IMP moved more than you wanted to "move".. just blow away what you don't want on the target after the fact..)
    You could use oracle's datapump method too.
    Alternatively, what can be done, IF you have access to both servers from your SQL developer instance (or if you can tnsping them both already from the command line, you can use SQL*PLUS), is run a script that will identify your apex apps' objects (usually by prefix to object names, like EBA_PROJ_%, etc) and do all the manual work for you. I've created a script that does exactly this so that I can move data from dev to prod servers over a dblink. It's tricky because of the order that must be executed to disable constraints and then re-enable them, and of course, trickier if you don't consistently prefix ALL of your "application objects"... (tables, views, triggers, sequences, functions, procs, indexes, etc)

  • What is the easiest way to export all tables data from Oracle to MS SQL Server?

    Hello MS,
    I would like to export all tables from Oracle 11.2 to MS SQL Server 2012 R1.
    Using the tool "Microsoft SQL Server Migration Assistant v6.0 for Oracle" did not work for me because there are too many warnings and errors regarding the schema creation (MS cannot know it because they are not the schema designer). My idea is
    to leave/skip the schema creation to the application designer/supplier and instead concentrate on the Oracle data export and MS SQL data import.
    What is the easiest way to export all tables data from Oracle to MS SQL Server quickly?
    Is it:
    - the „MS SQL Import and Export Data“ Tool
    - the “MS SQL Integration Services” Tool
    - not Oracle dump *.dmp format because it is a propritery binary format
    - flat file *.csv (delimited format)
    Thanks!

    Hi lingodingo,
    If you want to directly export all tables from Oracle database to SQL Server, I suggest you use SQL Server Import and Export Wizard. Because you just need to follow the wizard with GUI, this is the easiest way.
    If you want to make some modification for the tables‘ data before loading to SQL Server, I suggest you use SQL Server Integration Services package. For more details, please refer to the following similar thread:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/38b2bed2-9d4e-48d4-a33f-1d9eed1c062d/flat-file-to-sql-server?forum=sqldatamining
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • What is the Easiest way to create a playlist?

    What is the easiest way to create a playlist without going through all 1500 in my iTunes?  I know some artists I want all their songs.......others I don't.

    I have WMP on my computer and know you can quite easily make playlists within it.
    Then if you connect your player to the computer and drag and drop the playlist into the sync
    screen you should then be able to transfer it to the player.
    Not tried this way as I always use Zen Media Explorer for making playlists.
    Gi've it a try-you have nothing to lose.
    Best of Luck
    ZENFLASH

  • What's the easiest way to back up and restore my hard drive to a new HD

    I'm going to upgrade my hard drive to a larger one on my MacBook. I have an external backup drive. What is the easiest way to save all my data (documents, emails, etc) and applications and restore them to the new hard drive in my MacBook? I have Leopard OS.
    I've read on the forum everything from using Time Machine to the Disk Utility. I have been backing up everything to my external HD using Time Machine.
    Can you point me to a step by step process.

    I don't use TM, so here's my method that I've used many times for the same thing you are doing.
    How to Clone Using Restore Option of Disk Utility
    1. Open Disk Utility from the Utilities folder.
    2. Select the backup or destination volume from the left side list.
    3. Click on the Erase tab in the DU main window. Set the format type to Mac OS Extended (journaled, if available) and click on the Erase button. This step can be skipped if the destination has already been freshly erased.
    4. Click on the Restore tab in the DU main window.
    5. Select the backup or destination volume from the left side list and drag it to the Destination entry field.
    6. Select the startup or source volume from the left side list and drag it to the Source entry field.
    7. Double-check you got it right, then click on the Restore button.
    Now, boot from the clone to be sure it works correctly by opening Startup Disk, selecting the external volume, then clicking the Restart button. If all is well the computer will boot from the external drive. Now shut down the computer and disconnect the external drive. Disconnect the AC adapter and remove the battery. Install the new hard drive. Once you've completed the installation connect the external drive and restart the computer.
    Now do the following:
    Extended Hard Drive Preparation
    1. Open Disk Utility in your Utilities folder. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger or Leopard.)
    2. After DU loads select your new hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area. If it does not say "Verified" then the drive is failing or has failed and will need replacing. SMART info will not be reported on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Click on the Options button, set the partition scheme to GUID (only required for Intel Macs) then click on the OK button. Set the number of partitions from the dropdown menu (use 1 partition unless you wish to make more.) Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the volume(s) mount on the Desktop.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process will take 30 minutes to an hour or more depending upon the drive size.
    Steps 4-6 are optional but recommended for a drive that has never been formatted before, if the format type is not Mac OS Extended, if the partition scheme has been changed, or if a different operating system (not OS X) has been installed on the drive.
    After formatting is completed use DU to clone the external drive's system back to the new internal drive. The external drive becomes the Source and the internal drive will be the Destination.

  • What is the easiest way to transfer music from my ex's itunes library to mine? We both have Macbooks and we do have home sharing.

    Over the years my ex's and I bought tons of music off itunes, but always bought it on her Macbook. Now that we aren't together I want to copy all of the music from her itunes library and import it into mine. Is this possible, and what is the easiest way?
    Many Thanks

    the simplest way, assuming all your media files are in the default location, would be to connect the two Macs with a firewire cable, boot the source Mac in Target Disk Mode, and copy the entire iTunes folder (not just the iTunes music folder) from <MacintoshHD>/users/yourname/music on the source to <MacintoshHD>/users/yourname/music on the target (overwriting the iTunes folder in place there).
    that would ensure everything (including playcounts, ratings, original "date added", which home sharing doesn't copy over) will be transferred. it would also ensure that any mobile devices (iPhone, etc.) will simply keep on syncing without problems.
    you can also use an external HD (or your LAN) but make sure to copy the entire iTunes folder.

  • What is the easiest way to wrap photos with text in ps CS4?

    What is the easiest way to wrap photos with text in ps CS4?

    InDesign handles text much better that either Illustrator or Photoshop.
    In InDesign there is more than one way to put a frame around a paragraph:
    Select the text frame, go to Object menu - Text Frame Options and set the Inset Spacing to keep the text away from the frame edge.
    Then select the text frame with the selection tool (black arrow) check the Fill/Stroke icon at the bottom or the tool box and make sure the Stroke is selected, and choose a Stroke width from the tool bar at the top of the screen.
    Or you can do it a quick and dirty way by just drawing another frame and place it on top of the text frame. Give this frame a Stroke and make sure the Fill is set to None.
    I selected both frames in this example simply to show that they are two separate frames. The first method (above) only produces one frame.
    Your original question was regarding text wrap, the third example shows text wrapping around the photo.
    Place or type your text. Place your image and go to the Window menu - Text Wrap. You can set the Offset margins individually to keep the text away from the edge of the image.
    For things like this InDesign is definitely the best way to go.

  • What is the easiest way to send photos from my PC to my Ipad?

    What is the easiest way to send photos from my PC (Windows 7, Live photo gallery)_ to my Ipad2

    I would use DropBox if you want to transfer your whole photo library.  The iPad is set up to make it very difficult to transfer content off of it.  This is to protect copyrighted materials and prevent file sharing.
    Make sure you have the latest copy of DropBox on your iPad and it will automatically upload all your photos and videos to the Camera Uploads folder on DropBox.  Keep in mind this may take a long time to get them all uploaded, especially if you have a lot of videos and a slow WiFi connection.  It won't work over 3G / 4G must be a Wifi connection.  Once they are uploaded to Dropbox it is simply a matter of then downloading them to the place you want to download them to.

Maybe you are looking for

  • My add and remove program

    I am asked to create an add method with the following rules: When adding new elements, check to ensure there is room in the array data. If there is no unused array index, grow the array by delta elements. When removing existing elements, shrink the a

  • How to get the old value of any property in DRM script or formula

    Hi, Can we somehow capture the old property value in DRM formula or Script. Let's say, I have property ABC with possible values as 'Yes' and 'No'. Now once this property value is changed to Yes, a restriction has to be placed so that no-one can chang

  • JRE 1.4.1_03 Plugin Security Manager

    Hi, We have a signed applet that runs fine under previous versions (i.e. 1.4.1_02 and earlier) of the Plugin, but throws a java.security.AccessControlException when 1.4.1_03 is in use. Has anyone else seen this? To verify, I uninstalled all of the JR

  • Help setting up voicemail

    i I just purchased my iPhone 5s and I'm trying to set up my voicemail but it's asking for a passcode, what is that?

  • Unable to open email says corrupt information

    Cannot access email. Gives a warning of Corrupt information.