Page 2 of 2 FirstFirst 12
Results 21 to 24 of 24
Like Tree3Likes

Thread: ATM Machine - Inner Listener Class

  1. #21
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power

    Default Re: ATM Machine - Inner Listener Class

    The posted code is currently using it. What problems are you having?
    If you don't understand my response, don't ignore it, ask a question.

  2. #22
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Northern Virginia, United States
    Rep Power

    Default Re: ATM Machine - Inner Listener Class

    Just use your JPasswordField as a JTextField. Note: JPasswordField deprecates getText(). But JTextField doesn't. In any event
    you can do this:

    JTextField jtf = new JPasswordField(10);

    and still use getText() without the deprecation warnings. You will then use getText() instead of getPassword. When you do a setText(), your password
    will be "hidden" from view. For each event of JButton you want to prepend the typed digit to the current password.

    Note: You must read the API's and also try some stuff out. That is how I was able to provide this help. I have probably told you too much already
    since this is a class assignment. So please take the time to read and understand all of this.

    javaStooge likes this.
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #23
    javaStooge is offline Senior Member
    Join Date
    Jan 2014
    Rep Power

    Default Re: ATM Machine - Inner Listener Class

    Thank you guys very much. You guys are the only ones I can have a conversation with about this stuff, since its an online course... I appreciate all the spoon feeding and I think I can proceed from here ( at least on this assignment ). I know you guys don't like to be so forthcoming about the solution, so I thank you Jim --- learning a programming lang is extremely frustrating at times.

    Until next time!

  4. #24
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Rep Power

    Default Re: ATM Machine - Inner Listener Class

    Quote Originally Posted by javaStooge View Post
    I appreciate all the spoon feeding

    SSSSHT! Quiet down.

    Spoonfeeding is exactly what we do NOT do in this forum. Spoonfeeders get fed to Jos's rotating knives machine just like spammers...
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 10
    Last Post: 02-28-2012, 09:44 PM
  2. Action Listener listen to another class/ program
    By kevinn205 in forum New To Java
    Replies: 1
    Last Post: 12-09-2011, 11:59 PM
  3. Replies: 4
    Last Post: 08-22-2011, 03:42 PM
  4. Replies: 0
    Last Post: 02-07-2011, 02:27 PM
  5. Replies: 2
    Last Post: 03-01-2010, 04:19 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