custom passwordEditField and editField

Hello

I use an editField and a passwordEditField with a rectangle rounded as a backdrop.

The codes are this:

EditField myEditField = new EditField(){
     public void paint(Graphics g) {
    int prevColor = g.getColor();
    g.setColor(0xffffff);
    g.fillRoundRect(0, 0, getWidth(), getHeight(), 20, 20);
    g.setColor(prevColor);
    super.paint(g);
    }
};
PasswordEditField myPasswordEditField = new PasswordEditField(){
     protected void paint(Graphics g) {
    int prevColor = g.getColor();
    g.setColor( 0xffffff);
    g.fillRoundRect(0, 0, getWidth(), getHeight(), 20, 20);
    g.setColor(prevColor);
    super.paint(g);
     }
};

They both look ok, but the problem is when the user writes the text it is placed too close to the border of the rectangle, as I show in the following image:

I tried to move the text to the right, replacing

Super.Paint (g); line

g.drawText (getText (), 5, 0);

in the method down.

But while the user writes last letter resembles cut half, second line do not appears and on the passwordEditField characters are not replaced by asterisks.

Thanks in advance.

Thank you for all your help,

I filled the rectangle on the Manager and put the field on it.

Tags: BlackBerry Developers

Similar Questions

  • The sum of total revenue for each customer unique and graphic it!

    Sunny greetings from Athens!  I walked for 5 hours for an elegant solution to the following:

    I want to add the total amount of revenue for each customer unique and graphic to view what customers bring in most of the species.

    Example of this in it:

    Customers Charged €
    A 100
    B 200
    C 250
    A 130
    A 120
    B 100

    Customers

    Total €
    A 350
    B 300
    C 250

    How this can be implemented by the numbers? As elegantly as possible?

    Hi menick,.

    SUMIF () will do the job.

    the formula in table 2::B2 =.

    SUMIF (table 1::A, A2, table 1::B)

    It is filled down.

    Quinn

  • This will remove all your custom settings and the settings of many extensions.

    Hello

    I was reading this article of knowledge and he says:
    "This will delete all your custom settings and many extensions settings."
    What are the custom settings?

    for example one of these and what else
    bookmarks?
    Add - ons?
    Top toolbar - Customize the toolbar
    Add on the toolbar
    Firefox/preferences
    Authorization Manager settings
    the new page open

    Corrupted preference file
    File preferences may be corrupt, Firefox prevents writing to it. If you delete this file, Firefox will automatically create another when it comes to.

    Here's how to delete the prefs.js file.

    This will remove all your custom settings and the settings of many extensions.
    Open your profile folder:

    In the menu bar, click the Help menu and select troubleshooting information. The troubleshooting information tab will open.

    In the section the Application databases, click view in the Finder. It will open a window with the folder of your profile.
    Note: If you are unable to open or use Firefox, follow the instructions for finding your profile without having to open Firefox.

    In the menu bar, click Firefox and select Quit Firefox

    Locate the prefs.js file (and, if applicable, the prefs.js.moztmp file).
    Delete these files and files prefs - n.js where n is a number (e.g. prefs - 2.js).
    If there is, remove the Invalidprefs.js.
    Restart Firefox. You should now have reset all preferences.

    Based on information from preferences not saved (mozillaZine KB)

    See also http://kb.mozillazine.org/Profile_folder_-_Firefox

    #1: there are too many pref for all kinds of adjustment which will offer a recipe of what you lose and how to keep certain parameters.
    It is possible to copy specific lines of a prefs.js to this file in another profile or restore some settings after deleting this file in the current profile folder.

    All the prefs that show as a user defined and appear in bold on the topic: config page are stored in the prefs.js file.

    This includes the changes you make and data Firefox itself and extensions store as data/parameters in a pref.
    It's

    #2,3: the localstore.rdf file stores the toolbar configuration and other data.

    #4: the current versions of Firefox shows the menu entry "Tabs" at the top menu ' display > toolbars "and" Firefox > Options ' and in the menus toolbar pop-up if the tabs are not in the default position on the top.

    If the notches located on the top and the menu entry is not available and you want to move the tabs under the navigation toolbar, then you have to toggle the pref browser.tabs.onTop false on the subject: config page.

    A restart of Firefox is necessary for updating the menu entry to display or remove.

    Note that this pref will no longer effect when the code Australis lands on the output channel (code Australis will probably land in Firefox 29).

    #5: see https://support.mozilla.org/kb/Clear+Recent+History

    Compensation of the "Site Preferences" clears all exceptions for cookies, images, pop-ups, installing the software, stored passwords in permissions.sqlite and other site specific data stored in content - prefs.sqlite (including zoom on the page).

    Deletion of cookies will delete all specified (selected) cookies, including cookies with an exception allowing you want to keep.

    #6,7: history of search bar is the story of the search bar (Google) on the Navigation toolbar.

    All recorded data to a form on a web page is included in the data in the form, but you can not separate and distinguish the two.

    Browsing history is the history of the web pages you have visited.

    #8: session cookies are always kept in memory and never stored on the disc in cookies.sqlite

    You can only delete specific cookies manually in the Cookie Manager or leave cookies expire when you close Firefox to make them behave like session cookies.

    Cookies of other compensation will include all cookies and don't obey the exceptions that you have made.

    #9
    Data stored in storage DOM is not stored in cookies.sqlite, but it is generally stored in the webappsstore.sqlite file or possibly in the form of data in IndexedDB.

  • I'm still not sure how custom control and object-oriented programming interact, can someone enlighten me please?

    I spent some time trying to understand the relationship between the custom controls and object oriented programming. However, it is not quite clear to me yet.

    What I want to do:

    I want to have a custom control and hide its workings from the rest of the blockdiagram, so I don't have to wire for each similar object. Not only because I'm lazy , but also to keep the clean pattern and avoid mistakes.

    for example, a graph, a numerical factor and a button.

    When the button is pressed, the x scale must be changed according to the factor.

    So, this looks like a job for me to object-oriented programming. Once I created something that can do this, I can use it all through my program. The code that redraws the figure when you press the button as part of the object, so I can't connect extra wires and add a value change event when I add a new chart.

    Is this possible at all? I tried, but did not quite understand this time. I have to admit that I'm pretty new to OO programming and make custom controls. I use typedef clusters ' ed most my code so far, which works very well. But it's always a cluster of stupid, the only way to have nothing at all is in the block diagram in VI you use it in.

    The only thing I could come up with so far is to add an "event handler" Subvi who does and that he accepts a reference or a local variable to an object. Then, this sub - VI and the variable or reference can be put in parallel with the other stuff in the main loop of the program. But there must be a better way somewhere?

    I don't think I can solve this problem of definition of the objects of the Panel before custom and methods so that it can interact with the objects that it represents without help. I get the feeling that I must have missed it somewhere. The pointers will be appreciated.

    Thank you!

    Jacco.

    Jacco K wrote:

    What I want to do:

    I want to have a custom control and hide its workings from the rest of the blockdiagram, so I don't have to wire for each similar object. Not only because I'm lazy , but also to keep the clean pattern and avoid mistakes.

    ...

    The only thing I could come up with so far is to add an "event handler" Subvi who does and that he accepts a reference or a local variable to an object. Then, this sub - VI and the variable or reference can be put in parallel with the other stuff in the main loop of the program. But there must be a better way somewhere?

    Thank you!

    Jacco.

    Hi Jacco,

    These two things are exactly what are the Xcontrols, a basic VI with a façade that has an event structure (the façade VI).

    If you have any questions, I'm happy to guide you.

    Tone

  • user belongs to a domain and user does not belong to the local administrator or power users groups, or any custom group and the user is not part of the domain administrators group, but user show that it is admin

    WinXP
    user belongs to a domain and user does not belong to the local administrator or power users groups, or any custom group and the user is not part of the domain administrators group, but user show that it is admin

    I did a gpupdate/force and restart twice PC
    Yet, user indicate it is always admin when we right click on Start menu and see the possibility to open all users

    Hi elena_ad,

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the public on the TechNet site. Please post your question in the below link:

    http://social.technet.Microsoft.com/forums/en/winserverManagement/threads

  • Media Player custom 1 and custom 2

    I use the custom 2 columns and custom 1 windows media player.  These data be saved somewhere?
    I always save my music on an external hard drive.  When I buy new computers I load into the media player, but the data in two columns are never there, so I have to re-enter all the data.
    How can I save these data please?

    Thank you

    The custom 1 and custom 2 fields are saved only in the library database and is written in current music files. This explains why you don't see their content on other computers.

    To save these fields and transfer them to another computer, you can use the backup of the metadata tool. This tool exports all information in the library in an XML file and can also import an XML of this type in the library.

    Tim Baets
    http://www.BM-productions.TK

  • In excel 2003, is there a way to keep your custom headers and customer footers to the same size as the page at 100% or 76% or 50%.

    In excel 2003, is there a way to keep your custom headers and customer footers to the same size as the page at 100% or 76% or 50%.

    Hello Terri Haineman,

    Thank you for visiting the Microsoft answers community.

    The question you've posted in Office-related and would be better suited to the office community. Please visit the link below to find a community that will provide the best support.
    http://www.Microsoft.com/Office/Community/en-us/default.mspx?DG=Microsoft.public.Excel.misc&lang=en&CR=us
    Chris.H
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Custom notifications and ringtones not available more

    I can't take when this happened, but it was last week, but custom notification and the ringtone that I put restore the default values, and the phone is no longer see them in the list.

    Initially they sounds (mp3 and wav) were in directories in the main repository, Notifications and Ringtones I moved the in the subdirectory of a music that I found online, but I still don't see them in the list.

    The only thing I've done recently is updated the built in "Themes" app.

    Someone at - it else discovered this and been able to solve the problem?

    Actually, it's funny you mention it as a reboot seemed to have worked without even seeking the .nomedia file.

    I restarted the phone between the messages and the selection is now available.

    Bug somewhere, I guess.

  • How to use the Smart zero 4.4.0 customer service and HP Profile Editor to activate chip cards

    I have a T610 HP Smart Thin Client from scratch and I get zero Smart software to recognize the card chip when connecting. How to use the Smart zero 4.4.0 customer service and HP Profile Editor to activate chip cards. You can configure without the profile HP of the XML editor.

    Mike Sieradzki

    Hello ski_mike.

    Welcome to the HP Forums. I understand that you want to support with your Smart Client zero. However, it is a commercial product. To get assistance, thank you for posting your question on the business Forums HP: HP Enterprise Business Community

    Thank you

    Mario

  • Cisco UCS 260 M 2 5.5 U3 - custom image and compatibility

    TAC has a customer turned and pointed toward a compatibility table for an installed UCS - C 260M 2, stating that the firmware of the UCS and the latest version of Vmware is not supported.

    They are suggesting that the client moves to fimware 1.5 (9) and they use a customized image of Cisco for Vmware.

    This facility is for UC/EAC, so I have to make sure that the versions supported in the docwiki for these products as well is the Vmware version.

    http://www.Cisco.com/Web/TechDoc/UCS/interoperability/matrix/matrix.html

    The drop down menu shows Vmware 5.5 U3 is a supported version and I find that 5.5 is supported in the dockwiki. So far so good.

    However, when I try to find a custom image for 5.5 U3 image only I find it:

    https://my.VMware.com/Web/VMware/details?ProductID=353&downloadGroup=OEM...

    VMware 5.5 U3a. The version of the driver specified on this page do not match driver versions indicating the interoperability matrix must be used.

    First, is there a customized image of Cisco for 5.5 U3, could someone point me to this image so that these versions of the drivers are the same?

    Secondly, can I use ISO customized Cisco to upgrade a vanilla install Vmware 5.1 U3?

    -GDR

    Greetings.

    The Cisco Custom images are just a collection of pilots who were up-to-date at the time wherever it has been presented to VMware.  It is expected that iso custom will exactly match the interoperability matrix (it could have at the time, it was created), but at least provide newer drivers than what is usually installed in the general VMware releases.

    The interoperability matrix will list the specific driver, i.e. igb driver intel 1 GB network interface.  Download you the version of the driver for VMware site and install adapt you to the requirements notified by the interoperability matrix.

    You should be able to use a custom Cisco ISO to upgrade.  When your custom installation ISO analyzes your existing system, it will see a higher version of the drivers/VIBs and update those.  The Cisco with custom isos are simply the original VMware updated versions the drivers injected into them.

    Thank you

    Kirk...

  • Can someone tell me if I should delete the following startup programs for Windows 7: customer ComcastAntispy and FlexNet connect?

    Can someone tell me if I should delete the following startup programs for Windows 7: customer ComcastAntispy and FlexNet connect?  I have read several articles and most of them say that I should remove.

    Original title: startup programs in Windows 7

    They are third-party programs and only you can know if you need and uninstall, if so

  • LOV cascading if I don't have only one table with the customer name and the name of the product in the ADF.

    Hi Please help me how to use cascade, if I don't have only one table with the customer name and the name of the product in the ADF... I use Jdeveloper 11.1.

    For the client, I used customer VO with client list to fill but to populate the product that I use bind variable PrODUCT_NAME select distinct from TABLE where client_name =: bindCustomer

    so first of all, I need to set the variable of liaison on behalf of the selected customer.

    Can you please tell me how to set this variable binding in this case.

    After you set the LOV to your product attribute, correspondting VO in the LOV will appear under view accessors.

    Change the accessor of the view, you will see the variable binding. Set its value to the customer field of the parent object.

    Visit this link: https://www.youtube.com/watch?v=nXwL2_RP7AQ

    Kind regards

    Elias.

  • can I install CS5 on my laptop if 2 people already use the creative suite? I've now been referred to as forums after talking with the customer service and technical support online

    can I install CS5 on my laptop if 2 people already use the creative suite? I've now been referred to as forums after talking with the customer service and technical support online

    I was told they are separated once and also says to check the forums?

    Yes you can.

    ~ Rohit

  • Another frustrated customer experience and loyal customer lost.

    I bought a KDL55EX720 and ended up having a bunch of Red pixelation 8 inches on the left side of the screen appear good in the one year warranty period. Called customer service and they say TV is not worth fixing, so they want to replace it with a (s) USED (s) even TV model "which could have flaws"(Sony words). "»

    I have a BIG problem. I don't plop down plus $1600.00 for a TV to fail within a year, or that it be replaced by an OPPORTUNITY that could have flaws. I didn't buy a used or defective TV. Sony has not moved on this and I'm not sure I want to have another Sony product to replace what I bought first. I'll certainly not again buy all new products of Sony.

    People, please do not ignore the multiple positions in this community on the very poor customer service and decreasing the quality of Sony products. If you go for, it's an environment that prevails through from many AV forums/comments here and elsewhere. They are not isolated events and there are many. There is the low side added that Sony is in the world of finance as well.

    I've been a customer of Sony for more than 25 years. I currently own 2 TVs Sony, HD camcorder (with the LCD does not) and 2 digital cameras. I had a cinema house Sony DVD player and have always had a Sony TV in my house. Well, after reading messages in this community and my own experience of service of poor warranty coverage, I can't justify spending more money on a company that produces poor quality products and does not stand behind what they sell.

    It made me so frustrated that I'm making it a campaign of my friends to do several clients potential warning on any website that sells, comments or articles on Sony products. Don't get caught in the trap of Sony.

    Very frustrated after losing nearly $2000.00 to Sony,.

    Reference #E56731988

    I bought a KDL55EX720 and ended up having a bunch of Red pixelation 8 inches on the left side of the screen appear good in the one year warranty period. Called customer service and they say TV is not worth fixing, so they want to replace it with a (s) USED (s) even TV model "which could have flaws"(Sony words). "»

    I have a BIG problem. I don't plop down plus $1600.00 for a TV to fail within a year, or that it be replaced by an OPPORTUNITY that could have flaws. I didn't buy a used or defective TV. Sony has not moved on this and I'm not sure I want to have another Sony product to replace what I bought first. I'll certainly not again buy all new products of Sony.

    People, please do not ignore the multiple positions in this community on the very poor customer service and decreasing the quality of Sony products. If you go for, it's an environment that prevails through from many AV forums/comments here and elsewhere. They are not isolated events and there are many. There is the low side added that Sony is in the world of finance as well.

    I've been a customer of Sony for more than 25 years. I currently own 2 TVs Sony, HD camcorder (with the LCD does not) and 2 digital cameras. I had a cinema house Sony DVD player and have always had a Sony TV in my house. Well, after reading messages in this community and my own experience of service of poor warranty coverage, I can't justify spending more money on a company that produces poor quality products and does not stand behind what they sell.

    It made me so frustrated that I'm making it a campaign of my friends to do several clients potential warning on any website that sells, comments or articles on Sony products. Don't get caught in the trap of Sony.

    Very frustrated after losing nearly $2000.00 to Sony,.

    Reference #E56731988

  • Hello. I just know that the muse and I need an organization of customers in alphabetical order. The problem is that you will always get new clients. I need to know how to insert a new customer (square), and it is already in alphabetical order on the page.

    Hello.

    I just know that the muse and I need guests alphabetical organization. The problem is that you will always get new clients. I need to know how to insert a new customer (square), and it is already in alphabetical order on the page. The site will be as in the link below, and each customer will have a window of these: http://www.connary.com/. I look back.

    A hug, Murilo.

    I believe you are referring to the rectangles of tile as visitors on the page? not exactly customer database?

    You can add rectangle with different effects with rollover State of mouse and about adding new, you must do this manually in design mode.

    Thank you

    Sanjit

Maybe you are looking for

  • Drivers for Windows 7 RC generation HP Dv3t custom

    I recently bought a wonderful Dv3t of HP, and ordered it is customized with the following specifications. White Moonlight Vista Ultimate 64-bit Intel Core 2 Duo T9550 4 GB OF DDR2 RAM 250 GB HARD DISK AT 7200 RPM 512 MB nVidia GeForce G 105 M Infinit

  • (Z580) OneKey theater

    My z580 onekey theater sensor works but to do this, onekey theater 'smart' option does not work. What version of onekey theater, I have to use? for windows 7 64 bit.

  • Trying to decide if I should buy it...

    So at first I was going to buy it because as its awesome... I ride bicycle, I run it I listen to good music... I used to use the Nike +... but now I just run with run keeper... I turn every day... and I do 15miles in the everglades here in FL 2 per m

  • How to uninstall a printer driver?

    I installed a printer HP 5600 driver & causing my system to reboot. I would like to uninstall it, but I can't find where to do.

  • Need administrator privileges to install the game

    Cannot install game but I am the administrator and the only user on my laptop. After accepting the terms of use, it tells me that I need administrator privileges to install. Ive tried to create a new administrator with no luck. Any suggestions?