How can I display several rows using Horizonatal and vertical field Manager

Hello

can someone tell me how I can layout my screen using HorizonatalFieldManager and VerticalFieldManager.

I want to display the image and text as below:

Image1 Text1

Image2 Text2

image3 Text3

I have try several times but she can throw the exception of unacaught,.

can u give me some examples like him.

I also store image by default when the url does not contain any image

It works with FlowField but it see as below:

image1 image2 Text2 Text1

image3, image4 Text4 Text3

I don't want to, I want to show as first mention.

now I work at bb jde 4.6 and I want to support 4.6 and later

(1) are you IllegalStateException? It's normal if you try to manipulate anything on the screen of a non-event thread stack. If it is another exception, display the details here.

(2) for your layout, you need a separate HFM for each pair of text-image. Like this:

VerticalFieldManager vfm = new VerticalFieldManager(VERTICAL_SCROLL ...);
for (i = 0; i < length; ++i) {
  HorizontalFieldManager hfm = new HorizontalFieldManager();
  hfm.add(new Label(text[i]));
  hfm.add(new BitmapField(image[i]));
  vfm.add(hfm);
}
add(vfm);

If you add all of this to a screen with "no argument" constructor (there VERTICAL_SCROLL by default), you can ignore the optimization of resources and add your HFMs directly on-screen.

Tags: BlackBerry Developers

Similar Questions

  • How can I display several rows of a line

    Hello

    I have a table called temp_probabaility and contain 2 colomns (id1, path) values as below,

    Id1 path
    3; 2,4,6
    4; 1; 2; 3; 5
    5; 1; 2; 3; 4; 5
    I need to convert the values to be as below.

    Id1 path
    3 2
    3 4
    3 6
    4 1
    4 2
    4 3
    4 5
    ....

    Please any help?

    Published by: user11309581 on May 13, 2011 16:13

    Published by: user11309581 on May 13, 2011 16:16

    Published by: user11309581 on May 13, 2011 16:18

    Here's a way...

    SQL> ed
    Wrote file afiedt.buf
    
      1  with x as (select 3 as id1, ';2;4;6' as path from dual union all
      2             select 4, ';1;2;3;5' from dual union all
      3             select 5, ';1;2;3;4;5' from dual)
      4  --
      5  -- end of test data
      6  --
      7  select id1, regexp_substr(path,'[^;]+',1,rn) as path
      8  from   x cross join (select rownum rn
      9                       from dual
     10                       connect by rownum <= (select max(length(regexp_replace(path,'[^;]'))) from x))
     11  where regexp_substr(path,'[^;]+',1,rn) is not null
     12* order by 1,2
    SQL> /
    
           ID1 PATH
    ---------- ----------
             3 2
             3 4
             3 6
             4 1
             4 2
             4 3
             4 5
             5 1
             5 2
             5 3
             5 4
             5 5
    
    12 rows selected.
    
  • How can I disable typekit - it used to and now will not shut and he is screwing with my fonts

    How can I disable typekit - it used to and now will not shut and he is screwing with my fonts

    Hey there,

    I'm sorry that you trouble with that. You can disable the synchronization of Typekit fonts option in the application of CC, under preferences > creative cloud > fonts (Typekit 'power'):

    I hope this helps; Let me know if you have any other questions, here or at [email protected]. Best,

    -liz

  • How can I recover the functions drag horizontal and vertical to center the portions of the image being developed? [was: Question]

    How can I recover the functions drag horizontal and vertical to center the portions of the image being developed?

    1 - question double deleted

    2 the name of the program you are using then a moderator may move this message to the correct program forum

    This forum Cloud is not on the program problem... help a program would be Photoshop Lighroom or Muse or?

  • How can I build with precision for horizontal and vertical display on the versions of the tablet or phone

    I am trying to build the version of the tablet of my site, but when I test in preview horizontally the vertical display is out of wack & vice versa (super frustrating). I am at a loss, and I didn't even to the version of the phone. Also is it a better platform look another overview which simulates the tablets & phones, because you can not display in the browser accurately?

    I am at a loss.

    Hello

    The best way to get an overview of the site on devices (tablets and telephone) is to publish a temporary site in Business catalyst and the generated link will show the output on various devices.

    Publish site temp in Muse, please go to file > publish to Business catalyst. Please check the following URL for more details.

    https://helpx.Adobe.com/Muse/using/publishing-websites.html#id_83339

    Concerning

    Vivek

  • How can I make several images fade in and out on a webpage using Dreamweaver cs5?

    I have a site that I maintain (www.tajmahalfinneytown.com) and I created the images fading in and out of each other, but using flash. Well, most of the people are using mobile devices, and flash is not supported! I have 5 images and you want to make a simple fade no flash in, fade on the thing. I looked at a few java scripts, but I don't know what part I put in the head and body. So the simple, the better. Thanks in advance!-Peter

    Here is a simple one - source code

    «"" "Homepage: cards by Karen: handmade greeting cards»»»"

    There is a link to the javascript that save you and upload to your server

    http://www.kardsbykaren.us/fadeslideshow.js

    There is a JavaScript block in the head of your HTML page section and

    This in the body where the images should appear:

    div >

  • How can I display TC on the desktop and on my mac?

    I do not see my time new capsule is in on my mac-window storage or on my desk. I managed a first backup that shows in my finder under shared devices. I clicked on attached servers - General - finder. I have a 27 inch, mid-2011 El Capitan 10.11.2 running and to the best of my knowledge the last airpot OS running

    The Capsule is a network ... that's why you see under the Shared heading in the Finder.  But given that the Time Capsule is not connected directly to your Mac... like a USB or FireWire drive can be... the time Capsule "will not appear" on the desktop or displayed in 'about my Mac'.

    With some clicking and tips, it is possible to mount the drive Time Capsule... called 'Data', unless you have changed the name... but this is not really of value because you must use the application Time Machine to access your backups Time Machine.

  • How can I go into a used computer and change the username to the mine and to make a new password or delete the old user of my computer completely? (preferably get rid of the former user)?

    I need to know how to solve this problem in detail please

    I bought a computer with windows xp service pack 3 and when I start it the old user keeps popping up asking for a password. I want to know how to enter and change the username to the mine and to make a new password or delete the old user of my computer completely (preferably get rid of the former user)?

    See the following link to delete the account: http://support.microsoft.com/kb/279783

  • How can I display the time of the data stored in a file using labview?

    How can I display the time of the data stored in a file using labview?

    Hi Matt,

    I think that we will need a little more information as to how you capture the data, what data you capture, etc.

    If you capture a waveform, is to extract the time data waveform which includes the t0 and dt values, so you can understand the time stamp of a specific data point as in the image below.

  • I installed ux 16 driver Windows 7 my pc but nothing displays, no .so tracks what is wrong with it please suggest.or how can I do this by using midi for the first time.

    I installed driver ux 16 in my widows 7 and connected to my pc but nothing displays, no .so tracks what is wrong with it please suggest.or how can I do this by using midi for the first time.

    In the subject line, type a brief description of your problem or your question. A subject line that says only "Hi alll" not will receive the attention of someone who can be familiar with your particular situation.

    Contact the support of Yamaha.

  • How can I display a grid of horizontal alignment in Pages.

    How can I display a grid of horizontal alignment in pages. I can show a vertical, but there seems to be no option to show a horizontal. I use El Capitan with maps, version 5.6.2 Pages.

    Pages v5.6.2 has horizontal and vertical guides, but no grid. The vertical guide is enabled in the menu Pages: preferences: sovereign.

    With the two visible leaders after menu display: display the rule, place the cursor of the black needle on the edge of the respective sovereign and then click. When you see the following icon, drag the new guide in your document. Several vertical and horizontal guides may be present. The view menu has an element of Guides to hide menu or erased.

    • Indicator of horizontal ruler guide
    • Indicator of vertical ruler guide
  • How can I delete several clips at once from the timeline

    How can I delete several clips at once from the timeline?

    Thanks, Dan

    Shift-click or command-click to select if they are contiguous. Then press the delete key.

    Or select them and use the keyboard shortcut command + X.

    Or select them in the Index of the Timeline and use the key DELETE or command + X.

    Russ

  • How can I display a variable evolution in a Subvi on the face before of the main vi as the Subvi is excuting

    In the attached document the vi on the right is sub to the vi on the left. On the Subvi on the right of the variable "playing field" is continuously updated on the façade of the Sub - VI as the loop 'for' is executed, but only the last value of the variable is updated in the table main before vi which is what is expected. My question is how can I display the evolution of the value of 'Playing field' on the main façade of vi that the loop 'for' in the Sub - VI is running?

    Thank you.

    I don't have the drivers you are using. But here's an example of how update an indicator of a Subvi. To create the reference control in the Subvi, select control refnum in refnum palette and drag a numeric (or other) on the refnum control.

    VI the appellant

    Subvi

  • How can I register several OCX files at the same time

    How can I register several OCX files at the same time. OCX depending on the application files are stored in a network location, IE. R:\HR\whatever\whatever\*. OCX instead of manually record each ocx file, I would be with a simple batch file or an automated script. Anyone have any good ideas?

    Hi James,

    The Microsoft Answers community focuses on the context of use. Please join the professional community of COMPUTING in following the link MSDN forum

    http://social.msdn.Microsoft.com/forums/en-us/categories

  • URG: How can I force APEX to use the specific schema: spaces of work APEX_040100 or entitled to another schema?

    Hi all

    Here's the scenario:

    1. My computer crashed. were to return to complete export (expdp 11.2.x to impdp 12 c). successfully done.
    2. Configured ADR blah blah... can access the admin of the apex.
    3. Problem is: administration interface does not SEE my workspaces apex Apex (only the workspace IN-HOUSE).
    4. After investigation it seems that APEX (after the upgrade) is somehow configured / run with: schema APEX_040200 and not

    APEX_040100 (as I have improved Apex in the old database versions).


    5. If I'm running the following:

    ALTER session set current_schema = APEX_040100;

    Select short_name, display_name

    of wwv_flow_companies

    where source_identifier is not null;


    I SEE all my beloved workspaces.

    6 my questions:

    a. How can I force APEX to use the specific schema: APEX_040100 instead of APEX_040200?

    b. or are there other alternatives to assign these workspaces in the current environment?


    Concerning

    Etay G

    Hello Brad,

    Thank you for your response. Appreciated.

    • Yet, as I had a little corrupted environment Apex after import (impdp), COMPREHENSIVE database this method of revocation (above) has failed several times to me.
    • Here's what I have (solves the problem):
    • Deleted APEX_040200 Apex 4.2 installation().
    • Text left in DB is the only APEX_040100
    • Then, the version 5.0.3 and it worked!

    More importantly, after the installation of APEX, all workspaces, users, etc. are automatically correctly resided in APEX.
    • I think that if you have only 1 version of apex corrupted in DB. It should work as well. Remove again, schema using the above script (check version) with caution (after backup, etc.).

    Kind regards

    Etay G

Maybe you are looking for