How to add a custom image to a textfield in blackberry? -


Trying to add background fields to textfield, but when a user goes to the horizontal scroll and the image appears It was duplicated to look like the following: Enter image details here

Actually I want the first textfile to look like 2 after the input to the user's large value. I have a class that increases horizontal film manager and the following in my color function:

  protected zero color (graphics g) {g.clear (); If (mlbmode) {g.setColor (mLabelColor); } And {g.setColor (mColor); } Int x = this.getHorizontalScroll (); G.drawImage (x, 0, mBackground.getWidth (), mBackground.getHeight (), mbackground, 0, 0, 0); SuperPaint (g); }   

Any help would be greatly appreciated.

See one at:



Comments