Password textfield with  no display

Hi,
I have to design a textfield for password in such a way that it doesn't show anything when the user types the password (similar to solaris login screen). I was trying with setEchoChar method but it seems that it doesnt work for blank string (""). Any suggestions..?
Thanks
Akhil

The cheapest way not to display text is to set the Foreground Color to
the Background Color.
TextField passField = new TextField();
passField.setBackground(Color.white); //default
passField.setForeground(Color.white);This however is not a good solution, because as soon as you select the text it's visible.
But, in conjunction with a KeyListener it could be a cleaner solution:
'A global to hold the Value
String passValue=new String("");
'Create the TextField
TextField passField=new TextField;
passField.setBackground(Color.black);
passField.setForeground(Color.black);
passField.addKeyListener(new PasswordKeyListener());
'Internal class
class PasswordKeyListener implements KeyListener {
    public void keyPressed(KeyEvent ke) {
      passField.setText("");
    public void keyReleased(KeyEvent ke) {
      passField.setText("");
    public void keyTyped(KeyEvent ke) {
      passField.setText("");
      passValue+=ke.getKeyChar();
      System.out.println(passValue);
  }

Similar Messages

  • Query for create manual tabular form using apex collection using item textfield with autocomplete

    can we create a manual tabular form inside item textfield with autocomplete ?
    how it is possible?
    with Apex_item API used for this item.
    i used this code for creat  cascading select list
    select seq_id,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(
            p_idx                       =>   1,
            p_value                     =>   c001,
            p_query                     =>   'SELECT C001 D
         , C002 R
      FROM APEX_COLLECTIONS
    WHERE COLLECTION_NAME = ''col1''',
            p_attributes                =>   'style="width:150px" onchange="f__name(this,parseInt(#ROWNUM#));"',
            p_show_null                 =>   'Yes',
            p_null_value                =>   null,
            p_null_text                 =>   '- Select name -',
            p_item_id                   =>   'f01_'|| LPAD (ROWNUM, 4, '0'),
            p_item_label                =>   'Label for f01_#ROWNUM#',
            p_show_extra                =>   'NO') name,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(
            p_idx                       =>   2,
            p_value                     =>   c002,
            p_query              =>   ' SELECT null d, null r FROM dual WHERE 1 = 2
            p_attributes                =>   'style="width:150px"',
            p_show_null                 =>   'Yes',
            p_null_value                =>   null,
            p_null_text                 =>   '- Select name -',
            p_item_id                   =>   'f02_'|| LPAD (ROWNUM, 4, '0'),
            p_item_label                =>   'Label for f02_#ROWNUM#',
            p_show_extra                =>   'NO')name2,
    from apex_collections
    where
    collection_name = 'COLLECTION1'
    It is fine .
    but i want item in tabular form  textfield with autocomplete and remove select list. my requirement is using textfield with autocomplete select a employee name and second item textfield with autocomplete display dependent perticular employee related multiple task.
    how it is created.i have no idea related textfield with autocomplete.Please help me....

    pt_user1
    I understand that the add row button is currently doing a submit.
    To not submit the page you need a dynamic action on the page.
    Does the javascript function addRow do what you want?
    Otherwise have a look at the following two threads Add row in manual tabular form using dynamic action and Accessing Tabular Form & Add Elements to Collection without Page Submit.
    You're process could be something like:
    Add the new values to the collection using the idea's in the second thread and at the same time add the new row.
    And as second action refresh your tabular form.
    If you get stuck set up what you have done on apex.oracle.com using the tables from the demo application.
    Nicolette

  • My iCloud Account is displayed with an old ID. How do I change this? Additionally, I have forgotten the password associated with the old ID.

    When I tap the Settings icon on my iPhone 4S Home screen, and then scroll down and tap “iCloud”, my iCloud Account is displayed with a previous email address which is no longer in use.
    When I scroll down and tap “Delete Account”, I’m prompted for the Apple ID password associated with the old email address to turn off Find My iPhone?
    I do not know the password for this old Account, and the email is no longer accessible so I'm unable to delete the account.
    Therefore, how can I match my iPhone iCloud Account to my MacBook Pro iCloud Account which uses my new email address and password?

    I have the same problem , can anyone help??

  • TS4268 I have NEVER been able to activate my iMessage on iPad with Retina Display - My Apple ID/Password works fine on all other programs. iSO is up to date. No troubleshooting has worked. Any tips please?

    I have NEVER been able to activate my iMessage on iPad with Retina Display - My Apple ID/Password works fine on all other programs. iSO is up to date. No troubleshooting has worked so far. Any tips please?

    FORCE IPAD INTO RECOVERY MODE
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. If you did not do step 4 properly, start all over again.

  • Am unable to logon to icloud with my apple id password... message displayed verification failed

    am unable to logon to icloud with my apple id password... message displayed verification failed

    You are getting this message because you are trying to create an iCloud account on a PC.  You can only create iCloud account on an iOS device (iPhone, iPad or iPod Touch) running iOS 5 or higher, or on a Mac running OS X Lion (10.7.5) or higher.  After creating your account on one of these devices you will then be able to sign into the account using this ID on your PC.

  • How can I login to a site that is .htaccess password protected with java

    Forgive me if this is a dumb question. I am have never done this before and haven't been able to find out how to do this. I want to send some xml (passportRequest) to a server that is listening. The hard part is this server is password protected with htaccess. I have the username and password and I tried adding it to the url (ie https://user:password@server....) but not luck. I read somewhere that I can't do that anymore...is that right? I tried the code below but no luck there either. Any of you guys have any tutorials you could point me to or suggestions? Thanks!
    String urlStr = "https://www.myserver.com/pathto/requestlistener";
    URL url = new URL(urlStr);
    HttpURLConnection con = (HttpURLConnection)url.openConnection();
    con.setRequestMethod("POST");
    con.setRequestProperty("Content-type", "application/x-www-form-urlencoded");
    con.setRequestProperty("reqData", passportRequest);
    sun.misc.BASE64Encoder encoder = new sun.misc.BASE64Encoder();
    String encryptedPassword = encoder.encode((customerId+":"+password).getBytes());
    con.setRequestProperty("Authorization", encryptedPassword);

    con.setRequestProperty("Authorization", "Basic " +
    encryptedPassword);should do the trick.AWESOME! I was so close. Thanks for the tip. Does
    "Basic" just tell the server what type of
    authentication to use? What are the other options
    available? Where can I learn more about this stuff?
    I figured it was something simple like that, but when
    no one responded I was beginning to wonder if it was
    possible. I didn't know why it would be (its setting
    headers and that shouldn't matter where you are doing
    it from, browser or code). Thanks again!All of this (including what you have to supply to log in from any client, Java or not) is in the information that the first link in my previous post displays. However - you have to read it.

  • How to input password automatically with below html code

      I want to display one pdf file with password(I know the password) on website.How to input password automatically
    with below html code:
    <object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width="760" height="411" border="0">
          <param name="_Version" value="65539">
          <param name="_Password" value="1234">
    it seems <param name="_Password" value="1234"> does not work.
    Is there any way to input password of PDF file automatically on server side so that Client user don't need to input password.

    Not possible.

  • HT1620 Is my apple iPad with retina display secure

    Does my Apple iPad with Retina Display need Internet Security

    Do you want to use good practices?  Sure.  Don't splatter your password all over, use WPA or WPA2 networking, don't leave your iOS device unlocked, set up Find My iPhone, understand what makes a bad password and don't choose them, keep backups either in iCloud or on your Mac or Windows box, etc.
    Do you need added iOS software — which does not exist for iOS, and would likely not even be allowed into the App Store for sale given what the anti-malware tools inherently have to do — on your iPad?    Nope.

  • Spooling the output of a Query with out displaying the rows

    Hello All,
    Is it possible to spool the output of
    a query/dbms_output.put_line with out displaying
    the Query output on the console.
    In my case,list of rows in the output is huge, I want
    to eliminate displaying the output of query
    so that spooling will complete faster.
    Thanks in advance.
    -Srini

    You can do:
    SET TERMOUT OFFIn your script before doing the spool command.
    You will have to write your query as a .SQL script and run it from SQL*Plus in order for it to work the way you expect.
    sqlplus -s username/password @query_script.SQL

  • No Wireless Internet with External Display, Other Issues

    Hello,
    When I connect an external monitor to my MBA, I lose my connection to the Internet. The wi-fi signal remains strong, but pages will not load (I tried many) and I cannot retrieve email. The connection times out when I try to ping as well. This occurs whether I have the MBA open or closed. The loss of Internet happens immediately when I connect an external display using the supplied dongle, and returns the moment I disconnect it. It is clearly an issue with external displays.
    On the advice of an Apple Genius, I also tried disabling bluetooth. I did so, and turned off all my bluetooth devices (Apple keyboard and mouse, iPhone), but the problems persist.
    The other trouble I am having is difficulty connecting to a network for the first time in a session. In other words, I was connected all day yesterday, take the MBA home, and return to the office the next day. MBA takes a long time to see the network, then fails to accept the password. If I carry the MBA closer to the wireless router, it finds and connects automatically as I'd saved my password. When I return to my desk, I remain connected with full signal strength. This has happened in two locations, one with an Airport Extreme, the other with a Netopia 802.11g router. When my Macbook Pro is sitting right next to the MBA, it recognizes and connects to the same networks almost instantaneously.
    Anyone have any suggestions? Much appreciated.

    Just a quick update... I was on the phone with Apple Support on Saturday morning and I thought we were making progress. The basic idea behind the proposed solution was that there was some "Preferences" that were causing the problem. We started over with a clean Preferences folder and tried connecting up the external monitor. At first, this approach was showing progress. The suggestion was to copy over my original Preferences (I had made a backup copy) just a few at a time until we figured out which ones caused the problem. The problem with this approach is that immediately after I got off the phone, the internet started not to work again. So, even with a clean Preferences folder, the internet would quit working after connecting up the external monitor.
    So, I'm back to the drawing board. I have since restored my Preferences folder and I don't have my external monitor and internet working at the same time. BTW, I also upgraded to 10.5.3 and it didn't help.
    Still bummed,
    Kevin

  • Extracting Textfield Text from Display List

    I am attempting to extract the text in a textfield that is
    displayed with the container (see below) display list. The code
    snippet I am using is listed below.
    for (i = 0; i < container.numChildren; i++) {
    var temp:TextField = new TextField();
    // temp = container.getChildAt(i);
    trace(container.getChildAt(i));
    trace(temp.text);
    When I execute this, the trace(container.getChildAt(i)) line
    displays <object TextField>. But, when I activate the comment
    line temp = container.getChildAt(i); I get an error about coerceing
    a static variable. Can anyone give me a clue how I can trace the
    text in the textfield container.getChildAt(i)?

    I found some example code in the
    help->clases->staticText that I modified as below to solve
    the problem.
    for (i = 0; i < container.numChildren; i++) {
    var displayitem:DisplayObject = container.getChildAt(i);
    if (displayitem is TextField) {
    trace("a static text field is item " + i + " on the display
    list");
    var myFieldLabel:TextField = TextField(displayitem);
    trace("and contains the text: " + myFieldLabel.text);
    }

  • Getting error while creating a new web app saying "The password supplied with the username domainname\username was not correct. Verify that it was entered correctly and try again"

    Hi ,
    I am trying to create a new web app using Central Administration in Sharepoint 2010 and getting an error "The password supplied with the username  was not correct. Verify that it was entered correctly and try again".
    I tried running this command also "stsadm -o updatefarmcredentials -userlogin <domain\username> -password <newpassword>" but when it got executed it showed me "Access Denied".
    What should i do ??
    Thanks in advance.
    Regards, Anurag

    HI,
    right click on command icon and click run as administrator then use above stsadm commend to update credential. If still you face same issue then try with powershell as mention in below link: (make sure that you open sharepoint powershell as run as administrator)
    http://smartrider.wordpress.com/2010/07/15/powershell-script-to-create-web-application-and-site-collection-in-sharepoint-2010/
    let us know your result
    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

  • NVIDIA OpenGL driver lost connection with the display driver

    Alienware M14x Laptop
    Windows 7-pre 64-bit
    8gb ram
    3gb Video: NVIDIA GeForce GT 555M
    Intel i7 2760QM
    AE CS4
    AE keeps crashing. I get the following message while doing something as simple as scrubbing through the timeline, or changing opacity of a layer. in 1080p, I have a picture layer, a solid, some color corrections, and that's it. i just got this new computer and i have never had this problem on my old computer.
    this message appears after AE crashes."The NVIDIA OpenGL driver lost connection with the display driver and is unable to continue. The application must close."
    this message appears in the taskbar: "Display driver stopped responding and has recovered. Display driver NVIDIA Windows kernel Mode Driver, Version 267.21 stopped responding and has successfully recovered"
    any ideas on how to stop AE from causing my display driver to stop working?
    Thanks, Ramzi Rebeiz

    For anyone picking up this thread (it's probably too late for rrebeiz40 by now!) I have come across a simple but apparently very effective tip that has solved the 'OpenGL driver lost connection' issue for many people using various NVIDIA with various Adobe progs (incidentally a lot of these seem to crop up on Dell machines, especially Notebooks).
    (It fixed my issue with Premiere Pro CS4 - GeForce GT 555M on Win 7 Ultimate 64-bit, Dell XPSL702X).
    It's posted on http://forum-archive.developer.nvidia.com/index.php?showtopic=5331&st=40 (look for the last post, No 50) as follows:
    THIS FIX APPEARS TO WORK...found on an Adobe forum
    "This issue led me to this fix: go to NVIDIA Control Panel --> Manage 3D Settings --> Global Settings, and switch "Power Management Mode" to "Prefer Maximum Performance" (the default "Adaptive" setting seemed to be the culprit). And that's it! The key here is changing the "Global" setting, as my individual programs were already set to "Prefer Maximum Performance." I can cause the error to reoccur by changing back to "Adaptive."
    Otherwise lots more ideas on this site: http://www.instructables.com/id/How-to-Fix...Nvlddmkm-Error/
    My PC has been running for 2 days now. I only put the top fix in for now. Feel happier I have more options if need be though.
    Inserted from <http://forum-archive.developer.nvidia.com/index.php?showtopic=5331&st=40>
    It worked for me

  • Analysis Authorization based on Hier node with multiple display hierarchies

    Hi guys - I've got a problem where s.o. might have an idea of how to switch on the light at the end of the tunnel, I am currently standing in:
    Requirement:
    Cost Center Authorization should be given through RSECADMIN, reporting should be possible for any hierarchy that exists for the authorization relevant info object.
    Preferred solution:
    The Cost Center Analysis Authorization should be given through RSECADMIN - Hierarchy node assignment.
    u2022     A dedicated Authorization Cost Center Hierarchy will be maintained in ECC6 as an alternative cost center hierarchy and extracted into BW.
    u2022     The RSECADMIN Hierarchy node assignment should be based on a particular node (Type 2).
    u2022     The display level will be specified as required (here: Level 7)
    u2022     The Authorization granted should be independent of hierarchy name and version (validity 3).
    Reporting Scenario and technical impact:
    As mentioned above, when designing and running a query the user should be able to freely select other (i.e. than the authorization) display hierarchies for the authorization relevant reporting object 'Cost Center' as well. The technical names of the semantically relevant hierarchy nodes could therefore vary. E.g. cost centers 1, 2 and 3, being assigned under hierarchy node u2018Au2019 of the RSECADMIN relevant authorization hierarchy, could be subsumed by hierarchy node u2018Bu2019 in another display hierarchy, which the user may want to display in accordance to his reporting needs. Ideally, the alternative display hierarchy should therefore display node u2018Bu2019.
    My findings so far (based on prototyping) turn out that this is not possible as long u2018Bu2019 (and its hierarchy) is not authorized in RSECADMIN. Can these findings be confirmed? And if not, would anyone have an idea of how to facilitate the reporting scenario?
    Would there be any other way to grant access, possibly based on RSECADMIN single values, and also enable the user to flexibly display hierarchies with only those hierarchy nodes whose single cost center values the user has been given access to?
    Thanks everyone for your input...
    Claus
    Edited by: Claus64 on Jul 13, 2009 4:10 AM

    HI CLause,
    On Jul 14 2009, you wrote in SDN and said:
    FYI: Found a solution...
    The hierarchy analysis authorization will be based on a navigational attribute of cost center.
    With analysis authorizations it is possible to declare the Auth object (e.g. 0COSTCENTER__RACCAUT0) as authorization relevant and leave the superior object 0COSTCENTER auth irrelevant.
    The auth will be given for 0COSTCENTER__RACCAUT0. This object will be placed as a filter of the query, being restricted by an Authorization variable for hierarchy nodes.
    Due to the concept of Analysis Authorizations, this variable will automatically pick up the nodes granted as part of RSECADMIN Hierarchy based Authorization.
    As mentioned above, 0COSTCENTER as the regular reporting characteristic remains auth irrelevant and can therefore take any hierarchy thatu2019s available. Reporting on single values will be possible, too. Only those nodes show up that hold the authorized cost centers in accordance to the authorization.
    If the auth relevant 0COSTCENTER__RACCAUT0 is not used in the query definition by either not taking it in as a filter or skipping the Auth variable, the query will launch the message that the authorization is missing. No data show up at all.
    Claus
    See this thread:
    Analysis Authorization based on Hier node with multiple display hierarchies
    I am also in the same situation as you and need to understadn your solution. I understand that you created a Nav Attr on 0COSTCENTER and made this auth relevant whilst ensuring that 0COSTCENTER is NOT auth relevant. This is all fine. The issue was you have multiple hierachies for 0COSTCENTER, how did the new Nav Attr help you solve your issue. When loading 0COSTCENTER what values did you load ino the new Nav Attribute and how did that link to the hierachies? Also, in RSECADMIN you created hiearchy nodes based on the Nav Attribute but I am confused as to what values you have in the Nav Attr.
    I appreciate if you can share your solution from the past in more details.
    many thanks

  • User command is not getting triggered in interactive ALV with LIST display

    Hi experts,
    I have developed an interactive ALV report with LIST display. Here, the issue is, when i double click a record in the primary ALV list, the control must go to the USER COMMAND event which i have written in my report. But the user command event is not getting triggered at all when i double click any record.
    It gives the following information instead.
    "Choose a valid function".
    (My user command name and its respective form name are same.)
    Here is my code..
    START-OF-SELECTION.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = sy-repid
          i_structure_name         = p_table
          i_callback_user_command  = 'TST1'
          i_callback_pf_status_set = 'SET_PF_STATUS'
        TABLES
          t_outtab                 = <dyn_table>
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
      IF sy-subrc <> 0.
      ENDIF.
    FORM tst1 USING r_ucomm LIKE sy-ucomm
                    rs_selfield TYPE slis_selfield.
    * Local data declaration
      DATA: li_tab TYPE REF TO data,
            l_line TYPE REF TO data.
    * Local field-symbols
      FIELD-SYMBOLS:<l_tab> TYPE table,
                    <l_wa>  TYPE ANY.
    * Create table
      CREATE DATA li_tab TYPE STANDARD TABLE OF (p_table).
      ASSIGN li_tab->* TO <l_tab>.
    * Create workarea
      CREATE DATA l_line LIKE LINE OF <l_tab>.
      ASSIGN l_line->* TO <l_wa>.  CASE r_ucomm.
    *   When a record is selected
        WHEN '&IC1'.
    *     Read the selected record
          READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX
          rs_selfield-tabindex.      IF sy-subrc = 0.
    *       Store the record in an internal table
            APPEND <dyn_wa> TO <l_tab>.
    *       Fetch the field catalog info
            CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
              EXPORTING
                i_program_name         = 'Z_DEMO_PDF_JG'
                i_structure_name       = p_table
              CHANGING
                ct_fieldcat            = i_fieldcat
              EXCEPTIONS
                inconsistent_interface = 1
                program_error          = 2
                OTHERS                 = 3.
    Please advice what is the msitake i have done here..

    Read the following code:
    pass the  i_callback_user_command = g_user_command to the ALV function module and write the FORM user_command USING ucomm    LIKE sy-ucomm
                            selfield TYPE slis_selfield.
    as shown below.
    thanx
    Data for ALV display
    DATA  : gt_fieldcat TYPE slis_t_fieldcat_alv,
            gt_events           TYPE slis_t_event,
            g_variant LIKE disvariant,
            g_user_command      TYPE slis_formname VALUE 'USER_COMMAND',
            g_status            TYPE slis_formname VALUE 'SET_PF_STATUS',
            gt_list_top_of_page TYPE slis_t_listheader,
            g_repid LIKE sy-repid,
            gf_pos TYPE i
    Data for ALV display
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
               EXPORTING
              i_callback_program      = g_repid
                 i_callback_program      = sy-repid
                 it_fieldcat             = gt_fieldcat[]
           it_events               = gt_events[]
              i_callback_user_command = g_user_command
                 i_save                  = 'A'
                 is_variant              = g_variant
               TABLES
                 t_outtab                = it_print.
    FORM user_command USING ucomm    LIKE sy-ucomm
                            selfield TYPE slis_selfield.
      CASE ucomm.
        WHEN '&IC1'.
          CASE selfield-sel_tab_field.
            WHEN '1-KUNNR'.
              READ TABLE it_print INTO wa_print INDEX selfield-tabindex.
              IF sy-subrc = 0.
                SET PARAMETER ID 'BPA' FIELD wa_print-kunnr.
                CALL TRANSACTION 'BP'.
              ENDIF.
            WHEN '1-MATNR'.
              READ TABLE it_print INTO wa_print INDEX selfield-tabindex.
              IF sy-subrc = 0.
                SET PARAMETER ID 'JP_ISS' FIELD wa_print-matnr.
                CALL TRANSACTION 'JP29' AND SKIP FIRST SCREEN..
               GET PARAMETER ID 'WRK' FIELD wa_zprint-werks.
               SET PARAMETER ID 'VKO' FIELD wa_zprint-vkorg.
               SET PARAMETER ID 'VTW' FIELD wa_zprint-vtweg.
               CALL TRANSACTION 'JP29' AND SKIP FIRST SCREEN.
              ENDIF.
    Endcase.
    Endform.

Maybe you are looking for

  • US Airport Express, in Europe. Can't choose European countries in setup

    I purchased an Airport Express in US. I currently live in Norway, and trying to setup my Airport Express. But under Wireless and Settings and Country. There are no European countries. Only Brazil, Canada, Colombia, Mexico, Peru, Puerto Rico, USA and

  • Error message: "The iTunes Music Libary.itl is locked..."

    Hi Heres the error message: "The iTunes Music Libary.itl is locked, on a locked disk, or you do not have permission for the file" One of my friends had this problem but he cant remeber what he did to change it like this or how to change it back, can

  • Configuring RAC-aware JDBC connection in Oracle SQL Developer?

    How can Oracle SQL Developer be configured to properly connect to an [Oracle RAC|http://en.wikipedia.org/wiki/Oracle_RAC] environment, I.E., not just setup to always connect to one of the individual nodes? [http://programmersjournal.blogspot.com/2008

  • Help/conte​nts doesn't always display when using Vista

    Hi, On a fresh startup of Lookout 6.1 on Vista, the help/contents always starts as expected.  At a later time and for some unknown reason, the help/contents may not display.  Is this a know problem and what is the solution? Regards, Joe C.

  • ASCII to Arabic character conversion

    Hi, Could any suggest me how I can convert the character set from ASCII to Arabic and vise versa. Thanks in advance. With regards Ramesh.G