How to put text on the image of blackberry?

I'm a Blackberry app. In my application I need to show show text in an image. So I used this code.

tab1 = new LabelField ("Page 1", LabelField.FOCUSABLE |) LabelField.HIGHLIGHT_SELECT) {}

protected void paintBackground (Graphics g) {}
TODO self-generating method stub
super.paintBackground (g);
EncodedImage tmpimg = EncodedImage.getEncodedImageResource ("ic_menu_refresh.png");
try {}
g.drawImage (0, 0, 70, 40, tmpimg, 0, 0, 0);

}
{} catch (IllegalArgumentException iae)
System.out.println ("bad arguments.");
}
}

Protected Sub layout (int width, int height) {}
Super.Layout (width, height);
setExtent (70, 40);
};

Protected Sub paint (figure net.rim.device.api.ui.Graphics) {}
graphics.setColor (Color.WHITE);
Super.Paint (Graphics);
};

};

This code text giving on image but I want that this text not on the center of the image. I want it on the bottom of the image. I also want to resize the image depends on the size of labelfield... Please help me friends...

I'm curious to know why you want to avoid having a VerticalFieldManager? It's a standard way of BlackBerry to arrange fields and managers vertically. He respects the flags of horizontal alignment (FIELD_LEFT, FIELD_HCENTER and FIELD_RIGHT) for "children" and does not take into account all verticals (naturally!).

It also respects the margins of fields, which is a huge advantage - you just put properly and let the BlackBerry primitives to take care of the presentation of the screen for you. Don't try to reinvent the wheel - channel your time and energy into the functional parts of your application.

Tags: BlackBerry Developers

Similar Questions

  • I would like to know how to put music to the image or a series of photos. How can I put music to my background image?

    How to set my background music?  How can I set the music in a series of photos?

    I suggest you use Windows Movie Maker... You can put all the photos one after the other and give and music, effects and animation... MOEEN AJAZ KHAN MD - MCP/N + / A +.

  • How to delete a single text and add text to the image in photoshop cc?

    How to delete a single text and add text to the image in photoshop cc?

    Please try again by following the link: How to remove the text from the Image in Photoshop - YouTube

  • How to wrap text around the anchored object (image)

    I quickly started to get account that I am not the mental giant I had previously thought!

    Having recently made the switch to InDesign, I fight to pick up some of the different methodologies, and more still, the different jargon.

    I read the section guide from Adobe on this request, and I feel none the wiser is. I'm sorry to you guys with what is probably a very trivial question for users over three years, but let's go even of evil.

    I am trying to anchor the image object in a block of text, with the image of the text wrapping. While it seems to be in my ability to insert the object and to wrap the text, I have real problems to anchor this object in the right place.

    What I'm trying to look like this: -.

    Screen Shot 2015-12-31 at 1.14.52 PM.png

    Can anyone please help me, a simple "idjit" way how to do this?

    Any help is greatly appreciated.

    See you soon... Scotty

    If the image is placed on the page:

    Drag the symbol at the top right in a paragraph before that the first line is ignored when the text is wrapped.

    I suggest to save all the settings (wrapping text, the position of an object of anchroed, etc.) in the Styles of an object as it makes it easier to do global settings later.

  • How can I make the text in the image, like a signature in a corner?

    How can I make the text in the image, like a signature in a corner?

    Do you need to do it for a lot of pictures?

    Look closely.  It should be under file > processing of multiple files.  Make sure you don't overwrite your original files.

    If a single file, make a copy of the file, create your image in a separate layer and reduce the opacity.  Then flatten image and save it.

  • How to control the number of lines of text below the image in the slideshow module?

    Lightroom 3.3

    How to control the number of lines of text below the image in the slideshow module?  I have an image with 36 words in the caption field which exports like two lines GOOD.!  I have another image with 57 words in the field of legend who runs the page and shows only a VERY BAD line.  With 57 words I can't do the single-line text box small enough to keep the text does not spread out of the page.

    Ideas?

    On the Mac platform and I expect similar under Windows, just hit enter or return key will not help. Instead, you will have to hit the keys Ctrl + Enter or Ctrl + return. This forces a new line. Windows may use a different modifier key. The screenshot below shows that it is possible. Unfortunately, you need to add the text via the caption or Description field in the library module.

  • I need to put titles UNDER the images not in them. It can b done?

    I need to put titles under the images. I look in the tutorials, I also have items for Dummies and I do not see anywhere how to put the titles under the images. I hate the SMS I'd rather talk with someone if possible you have a phone number for you contact man.

    Increase the size of the canvas:

    Image > resize > canvas size in the Editor menu, then choose a vertical size larger than your picture.

    Then use the move tool to adjust the picture and the text tool to place the title under the picture.

  • Text on the image of the façade descends behind the image

    See attached screenshot. I have a tab control of façade 1 with a .jpg as background image, and I'm putting text on this image. Place the text on the image is ok, but sometimes, not always, when I change the text or move on the image, the text ranks BEHIND the image and I can't bring it back to the foreground, or in front of the image. He's unpredictable. What I am doing wrong?

  • How to put icons on the screen clickable muliple

    Hello

    I need to put several clickable icons on the screen and at the bottom of the icons I have to put the text

    describe the function of the icon...

    for this I think field Bitmap, but I can't seem to understand how to display text (describe the function of the icon) at the bottom of the icon...

    Hello

    You can try that too
    http://supportforums.BlackBerry.com/T5/Java-development/transparent-ToolTip-like-default-on-button-f...

    Kind regards
    pp

  • Cut the text from the image using the Pathfinder tool

    Hi all

    I'm cutting text from an image in Illustrator. I use the version on a Dell XPS 12 CS6.

    I have scoured the internet for instructions and have tried everything, but when I followed the same steps in Illustrator I don't get my desired result. I created the contours for the text, so that the image and text are on the same layer, grouped (and dissociated) and then I tried all the options in the pathfinder, nothing helps. I've done it before with an image, but for some reason can not get it to work this time.

    I even tried to make the image in a clipping mask, so it would be a 'form' instead of 'image', but that didn't do anything either.

    If anyone has any advice, I would greatly appreciate it that I spent hours trying to figure this out!

    Thank you!

    Erin

    Pathfinder will not work with a path and a picture.

    Instead, put your text above the image (it can be the living text), select both.

    You can then use the button do mask in the transparency to cut your text on the image palette.

  • Text in the image reactive?

    I have a problem with the text in a reactive image.


    I create an image it reactivates in width and height and put a legend on it (in the container of the photo).

    When I begin to change the width of the browser, the text jumps out of the container in the photo.

    Bringing together two points does not solve the problem.

    Is there a way to keep the text on the image (in the image container)?

    Any ideas?

    Of course, it would be possible to create a text frame and place the image in the background of it, but then the image is not admissible height, which could spoil the mobile design.

    Otherwise it would currently be impossible to create captions in images...

    THX!

    Hi Tibor,

    Maybe this helps: workaround

    Abhishek

  • How to type text on an image.

    How to type text on an image. Please tell me all the steps to get there. Thank you

    Using the interface of DW...

    1. from the Design view, click the container that you want the image it

    2. in the CSS designer (SHIFT + F11 if it is not open) click on the + sign for selectors

    3. in the Properties section of the CSS designer, make sure Layout (first tab) is chosen and scroll down to the background image

    4. click the field next to the url to activate

    5. click (icon) and choose an image in your defined Site

    6. the rest of the image background functions that you like

    7. in Design view, click the empty container and add your text

  • Place the text on the image linked... block!

    Hello world!

    Its possible to place the block of text to the image using java script.

    the text in text frame is the name of the linked picture. someone to help me if possible...?


    Thanks in advance.

    -yajiv



    Hi, I rewrite it.

    var app.activeDocument.rectangles = TGT;

    for (i = 0; i<>

    myCaption = app.activeDocument.textFrames.add ();

    myCaption.textFramePreferences.verticalJustification =

    VerticalJustification.BOTTOM_ALIGN

    tgt [i] .graphics = myCaption.contents [0].itemLink.name

    myCaption.paragraphs [0] .justification =

    Justification.CENTER_ALIGN;

    NSDB = tgt [i] .visibleBounds;

    myCaption.visibleBounds =

    [NSDB-6 [0] NSDB [1], NSDB [0] - 1, NSDB [3]];

    }

    How about it?

    Ten

  • How to put bookmarks in the left side of the screen forever?

    I use every night, 64-bit laptop.
    How to put bookmarks in the left side of the screen for good to keep them here? I couldn't believe how you hide this option. Other browsers requires a simple click.
    THX

    To open or close the bookmarks bar, do one of the following:

    • CTRL + B
    • tap the ALT key, the Menu Bar temporarily displays, click on view > sidebar > bookmarks
    • Hold DOWN the ALT key while pressing the VEB keyboard letters

    If the bookmark sidebar is open when you exit Firefox (Firefox button > output OR file > exit), it should be there when you restart Firefox.

    Also see-> https://support.mozilla.com/en-US/kb/common-questions-after-upgrading-firefox-36

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

  • How/where can I find the image masters of my photos in the PHOTOS app?

    How/where can I find the image masters of my photos in the PHOTOS app?

    Pictures of launch and watch them. If you want to use the somewhere with other software, select them and export the original unmodified in a folder on the desktop and use there

    LN

Maybe you are looking for