How to get character entered in JPasswordField

Hi,
I am using a JPassword field and i need to get the password entered(i mean the characters entered)
getText() is depricated so i used getPassword(), but it gave me some other things (%@$#) for what i entered (abcd).
1) How can i get the exact character. Like if i type "abc" i want to get "abc".
Thank you

Yes, but I would think twice about storing the password in the database. That kind of defeats the purpose of having a password. Anyone with basic knowledge of SQL can find it.
There are some tricky things you can do such as using a hash to make the password illegible in the database, then you would reverse the hash in your program when you read it back again. But even this is not real secure.

Similar Messages

  • How to get past entering apple password

    The Apple TV continues to ask for the Apple ID password.   Once password is entered it reasks for the Apple ID password.   I'm not able to move forward with using the device.

    " I have no idea how to get into the phone."
    Since it's your father's iPhone, it's not clear why you want "to get into" it.  Frankly, your post reads as one of the lamest excuses I've read about getting access to a stolen iPhone.  Regardless, he can connect to iTunes, and get into recovery mode.

  • Help!! I can't find how to get the enter key......

    Hi...
    I am information technology student. I am now first year second semester
    I need help because I don't know how to catch the enter key in JTextField.
    I want to submit the form when user press the enter key in JTextField....
    I only can find KeyEvent.VK_ENTER ( actually that is not what I want)
    Another thing is
    "How to add a JMenuItem into a JMenuItem...."
    I want to do like this.... When you click the "Tools bar" in View item.. another menu comes out...???"
    He he... I hope you all can understand what I mean.. because I know my english is not so good... because I am from Myanmar.
    for(int i=0;i<1;i--)
    System.out.println("Thanks A lot");
    Thu Rein Nyo...
    You also can reply by e-mail.. thanks

    Hi...
    I am information technology student. I am now first
    year second semester
    I need help because I don't know how to catch the
    enter key in JTextField.it can be done easily by adding an actionListener to the JTextField. So when u enter something in the field and press enter the event will be caught and the code which u write in that will get executed.
    Eg:
    JTextField.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    Your code comes here.
    Another thing is
    "How to add a JMenuItem into a JMenuItem...."
    I want to do like this.... When you click the "Tools
    bar" in View item.. another menu comes out...???"I think you are gettin confused with JMenu and JMenuItem. What u need to do is create a JMenu add another JMenu to it and add JMenuItems to it.. and ur problem will be solved.
    He he... I hope you all can understand what I mean..
    because I know my english is not so good... because I
    am from Myanmar.
    for(int i=0;i<1;i--)
    System.out.println("Thanks A lot");
    Thu Rein Nyo...
    You also can reply by e-mail.. thanks

  • How to get character viewer to show a specific font

    Previously you could specify a font to see it's characters and glyphs. Now I don't see how to do that. What am I missing? or has that gone the way of font specification in the keyboard viewer too?

    Yes, this feature has been omitted from Lion Character Viewer.  You might try PopChar.  And you can ask Apple to put it back here:
    http://www.apple.com/feedback/macosx.html

  • How to get Character Viewer to stay visible (esp. in Word for Mac)?

    I'm asking this on behalf of a friend who has a 2013 13-inch (non-retina) MackBook Pro and uses it with an Apple Cinema Display. Since the upgrade to Mavericks the behaviour of the Character Viewer has changed, where it no longer 'sticks' (stays both active and on top) as a visible window when you switch applications: now it needs to be called up from within each application, and will be visible when working with that app.
    He needs the Character Viewer open all the time and this change is inconvenient (he draws special characters from it constantly). But the main problem is that he mostly works in MS Word for Mac and as far as I can tell Microsoft have not updated Word to respect the behaviour Mavericks intends for Character Viewer: to stay visible while working. Instead, the Character Viewer window randomly closes. So, while hoping for an update from MS (but not holding breath since they provide their own inferior version of a glyph viewer in Word)) I have two questions:
    1. Can anyone suggest a way, perhaps using Applescript or Automator (which I don't know how to use), to make the Character Viewer always stay open and visible while using any application? This would be the preferable solution, in effect restoring the behaviour seen before Mavericks.
    Or
    2. Can someone give us some guidance on how to make a custom keyboard shortcut in Word for Mac that we could assign to bring up the (OSX) Character Viewer, since the usual system shortcut for that (control-command-space) is not respected in Word. Or alternatively, an Applescript or Automator solution for this that would be available from within Word?
    Thanks!

    Did you try:
    ->System Preferences->Keyboard and check [ ] Show Keyboard & Character Viewers in menu bar
    It closes when I switch desktops with spaces or open another App, but it displays when I go back to the Word window

  • How to get the entered value in a web template?

    Hi experts,
    We have a BEX web template that executes a query with an input variable. Itu2019s 0BPARTNER. It runs a report filtered by business partner
    We want to execute a web service in the same web temple using the same entered value for business partner as a parameter.
    The entered variable is not accessible with a document.getElementById('0BPARTNER')
    The entered must be available in some way as it can be shown in a text element.
    Does anyone know how to access it and move it to a local JavaScript variable?
    Thanks

    Please see this document :- http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c01e9b01-abab-2d10-6687-96fc7bc39084
    Hope it helps
    Cheers
    Craig

  • How to Get User entered value in a text variable

    Hi,
    I have made a text variable to show the user entered value in the column header.
    The user enteres value in a formula variable ABC whose default value is say '30'.
    I am using customer exit to capture this value in the text variable. The code is as follows
    IF i_vnam EQ 'txtvar'.
    if i_step = 2.
    LOOP AT i_t_var_range INTO loc_var_range
    WHERE vnam = 'ABC'.
    CLEAR l_s_range.
    l_s_range-low = loc_var_range-low.
    l_s_range-opt = 'EQ'.
    l_s_range-sign = 'I'.
    APPEND l_s_range TO e_t_range.
    EXIT.
    ENDLOOP.
    endif.
    endif.
    Now when I am executing the query I am getting the default value in the column header i,e, 30. But when the user changes this default value to something else while executing the query, I simply get blank in the column. The changed value is not getting captured in the text variable.
    Thanks

    Hi,
    Insted of  going for exit,
    just create a Text variable proceesing typr Default/ Manual Entry and set the default value as u wish,
    use it in the KF header; dont use the same Text Variable for Query Title.
    Now i tried this for you and it is working fine.
    Regards
    ReddY A

  • Urgent!!!! how to get socket

    Hello!
    I'm working with JDeveloper 11. I made a proxy web service using Wizard. I need get the socket connection to close it after I'll receive the message.
    I'm using SOAP and jax-rpc.
    If you need more information I'm going to write.
    Please is urgent!!!!

    How to get value entered in cell of JTable when it is still in editable mode.Actually the answer is simple. Its a one line change.
    But of the last 10 or so posting you've made, not once have you bothered to reply to the posting to indicate whether the information given was helpfull or not.
    So I'm not going to waste my time helping someone who does not appreciate the free time we all give to help anwer your questions. You are on your own as far as I'm concerned.

  • How to get Locale from Character.UnicodeBlock

    Hi All,
    For Ex: I enter Japanese language (Hiragana/KATAKANA characters) in the text field. My expected result is Locale: 'ja' (this is belongs to Japaneses language)
    How to get locale value from Character.UnicodeBlock.
    or we have any other way to get locale value from "input locale" means what ever language( Japanese /Chinese/other languages supported by java) i enter in the text box and i want to identify the locale of the text.
    This is the example program i found in the forum.
    import java.awt.BorderLayout;
    import java.nio.charset.Charset;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    import javax.swing.event.DocumentEvent;
    import javax.swing.event.DocumentListener;
    public class TestSBC {
    public static void main(String[] args) {
         SwingUtilities.invokeLater(new Runnable() {
         @Override
         public void run() {
              new TestSBC().createGUI();
    private void createGUI() {
         JFrame frame = new JFrame();
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         final JLabel messageLabel = new JLabel("Here comes a message",
              JLabel.CENTER);
         final JTextField textField = new JTextField();
         textField.getDocument().addDocumentListener(new DocumentListener() {
         @Override
         public void changedUpdate(DocumentEvent e) {
              checkEvent(e);
         @Override
         public void insertUpdate(DocumentEvent e) {
              checkEvent(e);
         @Override
         public void removeUpdate(DocumentEvent e) {
              checkEvent(e);
         private void checkEvent(DocumentEvent e) {
              messageLabel
                   .setText(validateText(textField.getText()) ? "KATAKANA"
                        : "other");
         frame.add(messageLabel, BorderLayout.PAGE_END);
         frame.add(textField, BorderLayout.CENTER);
         frame.pack();
         frame.setLocationRelativeTo(null);
         frame.setVisible(true);
    private boolean isKatakana(char c) {
         Character.UnicodeBlock unicodeBlock = Character.UnicodeBlock.of(c);
         System.out.println("unicodeBlock : " + unicodeBlock);
         boolean isKatakana = Character.UnicodeBlock.KATAKANA
              .equals(unicodeBlock);
         System.out.println(isKatakana);
         return isKatakana;
    private boolean validateText(String text) {
         char[] chars = text.toCharArray();
         for (char c : chars) {
         if (isKatakana(c)) {
              return true;
         return false;
    Thanks for your help...

    Hi Joerg22
    Thanks for your response.
    Can you please tell me ...is there any another ways to find the "input locale" value in java.
    There are 3 important locales in Windows: “Input Locale”, “User Locale” and “System Locale” and all 3 can be different.
    That is you can have System Locale = English, Input Locale = Chinese and User Locale = Japanese
    This might represent a Chinese user working in japan on an English PC.
    In this example i want to identify Input Locale means "Chinese "
    Thanks for your help.

  • I have purchased Adobe XI Pro and created a form for entering bowling scores to submit to newspaper for my high school team.  I can not figure out how to get pdf's into my documents folder on my iPad so that I can access the files in bowling alleys where

    I have purchased Adobe XI Pro and created a form for entering bowling scores to submit to newspaper for my high school team.  I can not figure out how to get pdf's into my documents folder on my iPad so that I can access the files in bowling alleys where I do not have a Wi-Fi connections.  I need to be able access files without going to acrobat.com.  Help!!!@

    Post the PDF files to a web site. The browse to them in Safari on the iPad.  When you Open the files specify the Open to occur in Adobe Reader.  Then you can have/Save them in your Documents folder on the iPad.   An iPad has limited access to files otherwise.

  • How to get these substrings based on the string entered

    Hi friends
    i want the substring entered in the string
    the string is something like this: 1234,3653,7684,3254,8777,987,234
    now i want
    the substrings between commas
    can some one help me with it pls
    in the first substring i need 1234
    in the second i need 3653...
    so on till the end..
    what ever the string be until the last one
    pls help

    Hi,
    You can do something like this:
    SELECT     txt
    ,     REGEXP_SUBSTR (txt, '[^,]+', 1, 1)     AS part_1
    ,     REGEXP_SUBSTR (txt, '[^,]+', 1, 2)     AS part_2
    ,     REGEXP_SUBSTR (txt, '[^,]+', 1, 3)     AS part_3
    FROM     table_x
    ;If there are fewer than n parts, then the technique above will not raise an error; it will just return NULL for part_n.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and the results you want from that data.
    Explain how you get those results from that data.
    What do you want if the input is like this"
    {code}
    'foo,,bar'
    {code}
    ? Do you want to consider this as 2 parts ('bar' is the 2nd) or a s 3 (the 2nd is NULL, and 'bar' is the 3rd)? Include examples in your sample data and results.
    Always say what version of Oracle you're using.

  • How to get the user entered data?

    Hi all,
    I have created an HTMLB DynPage component.
    In That i have created my input screen with textboxes using response.write method.
    i have added one onConfirm event on which the data whould validate.
    so onConfirm method im trying to get the data with request.getParameter method which returns null...
    how to do...how to get the user entered data to do my validations...can anyone plz advice.
    Thanks,
    Viswes

    Hi
    inputfield or textbox component entered directly using response.write(...) are not htmlb , but html.
    to create portal input field (ie HTMLB), you should do something like
    this in the doProcessBeforeOutput member function
    InputField field1 = new InputField("Id1");
    field1.setSize(8); // 8 characters
    this.getForm().addComponent(field1);
    and in doProcessAfterInput member function
    InputField field1 =
    (InputField) this.getComponentByName("Id1");
    you can then manipulate the content of the field.
    Hope this help,
    Guillaume

  • TS3999 How do you get info entered into iCal and Contacts on an equipped iPhone to push back to an equipped MacPro? so far it's only a one way street Macpro to phone, and that's not what I was told it would be.

    Hi, all.
    How do you get information entered into iCal and Contacts on an equipped iPhone to push to an equipped MacPro? So far it's been a one way street Macpro to phone, and that's not what I was told it would be. I've been through all settings on both devices and see no way to do this. Help! If I synch the old fashioned way, what's going to happen?

    First check that all your settings are correct, that contact syncing is checked on all devices (system preferences > iCloud on a mac and settings > iCloud on a iPhone, iPad or iPod).
    Make sure the contacts you are adding are added to your 'iCloud' group and not an 'On My Mac', 'On My Phone' or other non iCloud group (you can do this by checking in groups), non iCloud contacts will not sync.
    If you are sure that everything is set up correctly and your contacts are in the iCloud group, you might try unchecking contact syncing in the iCloud settings, restarting your device and then re-enabling contact syncing.
    First check that all your settings are correct, that calendar syncing is checked on all devices (system preferences > iCloud on a mac and settings > iCloud on a iPhone, iPad or iPod).
    Make sure the calendars you are using are in your 'iCloud' account and not an 'On My Mac', 'On My Phone' or other non iCloud account (you can do this by clicking/tapping the calendar button in the top left corner of the application ), non iCloud calendars will not sync.
    If you are sure that everything is set up correctly and your calendars are in the iCloud account, you might try unchecking calendar syncing in the iCloud settings, restarting your device and then re-enabling calendar syncing settings.

  • HT200131 I am trying to enter my network password and when I have entered the password for my network, I don't know how to get the remote to select submit.  Please help

    I bought an apple tv some time back and am only now trying to set up the wireless internet connection.  I can see my network but when I enter the password with the remote, I don't know how to get the remote to submit the password.  Could you please tell me what to do?

    You have to use the right arrow on the remote to navigate all the way and highlight the submit button.

  • When starting the computer, I get a grey screen and following status: your startup disk is full. How can I still enter (in order to free-up some space)?

    When starting the computer, I get a grey screen and following status: your startup disk is full. How can I still enter (in order to free-up some space)?

    Simple way to make HDD free space is delete files you don't need anymore.
    Or get bigger drive and external HDD case, then:
    1) install bigger HDD in external drive case.
    2) connect external drive and format and mount it with Disk Utility.
    3) make clone with Carbon Copy Cloner or SuperDuper!(source drive is internal HDD, target drive is external one).
    4) install external bigger drive into your Macbook Pro.
    In the cace if your're using Mac Pro:
    1) get bigger HDD and install it in drive bay of Mac Pro.
    2) format and mount it with Disk Utility.
    3) make clone with Carbon Copy Cloner or SuperDuper!(source drive is old HDD, target drive is new one).
    4) Select boot drive to new bigger one.

Maybe you are looking for

  • Supplier sites open interface question

    Hi all, Here is what we have done: We have a data migration program that looks at a csv file and then brings the data into staging table. Then, it inserts the above data into 3 open interface tables (AP_SUPPLIERS_INT, AP_SUPPLIER_SITES_INT, AP_SUP_SI

  • Mapping Issue for Synchronous interface

    Hi Experts, We are facing the below issue in a SOAP to RFC synchronous scenario. Data from WS is successfully uploaded to RFC via RFC request. However we face the below issue when the RFC response is received. com.sap.aii.utilxi.misc.api.BaseRuntimeE

  • Converting error message to warning in ME22n

    Hello guys, In ME22n i am not able to delete one material line item,as its displays" Invoices pending for delivery costs (function not possible)", This is error message,if its possible to convert error message to warning then i wil be able to delete,

  • Hp laserjej Pro 400 some fonts are not printing (office use )

    Hi there In my office , we are using  HP Laserjet Pro M401n  printer . About 5-10 users are using it , Printer is networked and not connected to a PC. Issue is several font types are not printing , only the  boarder is printing .Changed to a new catr

  • Ios 5 one apple id multiple users

    Hello All, This is probably premature, here is our setup: (2) iPhone 4's (1) iPad "1" (1) Apple TV They all share the same Apple ID. When iOS 5 releases does anyone know if you will be able to have seperate photo streams and the ability to decide wha