Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8307545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:32:52+00:00 2026-06-08T18:32:52+00:00

I am developing one application in which I have set lots of text in

  • 0

I am developing one application in which I have set lots of text in LableField and I want it to make scrollable in simulator 8900. So for that I have taken VerticalFieldManager and put LableField into it. I made VerticalFieldManager scrollable with VERTICAL_SCROLL and also tried with Manager.VERTICAL_SCROLL. But still it is not working.

My code

import net.rim.device.api.system.Bitmap;
import net.rim.device.api.system.Display;
import net.rim.device.api.ui.Color;
import net.rim.device.api.ui.Font;
import net.rim.device.api.ui.FontFamily;
import net.rim.device.api.ui.Graphics;
import net.rim.device.api.ui.Manager;
import net.rim.device.api.ui.component.BitmapField;
import net.rim.device.api.ui.component.LabelField;
import net.rim.device.api.ui.container.HorizontalFieldManager;
import net.rim.device.api.ui.container.MainScreen;
import net.rim.device.api.ui.container.VerticalFieldManager;
import net.rim.device.api.ui.decor.BackgroundFactory;

public class AboutM1 extends MainScreen {

    public AboutM1() {

        ((VerticalFieldManager) getMainManager())
                .setBackground(BackgroundFactory
                        .createSolidBackground(0xEDEDED));

        VerticalFieldManager TOPVFM = new VerticalFieldManager(USE_ALL_WIDTH);
        HorizontalFieldManager TOPHFM = new HorizontalFieldManager(
                FIELD_HCENTER | FIELD_VCENTER);
        // LabelField toplable = new LabelField("Welcome to");

        LabelField toplable = new LabelField("\n Welcome to", FIELD_BOTTOM) {
            public void paint(Graphics g) {
                g.setBackgroundColor(0xECECEC);
                g.fillRect(0, 0, getWidth(), getHeight());
                g.setColor(Color.RED);

                g.clear();
                super.paint(g);
            }
        };

        FontFamily fontFamily[] = FontFamily.getFontFamilies();
        Font font = fontFamily[1].getFont(FontFamily.CBTF_FONT, 20);
        font = fontFamily[1].getFont(Font.BOLD, 25);
        toplable.setFont(font);

        Bitmap bmp = Bitmap.getBitmapResource("logo36X36.png");
        BitmapField imgField = new BitmapField(bmp, FIELD_BOTTOM);

        TOPHFM.add(toplable);
        TOPHFM.add(imgField);

        TOPVFM.add(TOPHFM);

        int width = Display.getWidth();

        add(TOPVFM);
        LabelField Greenline = new LabelField(
                "_______________________________________") {
            protected void paint(Graphics g) {
                int oldColor = g.getColor();
                g.setColor(Color.GREEN);
                // g.fillRoundRect(0, 0, 50, 5, 7, 7);
                g.setColor(oldColor);
                super.paint(g);
            }

        };

        add(Greenline);

        VerticalFieldManager DescriptionVFM = new VerticalFieldManager(
                VERTICAL_SCROLL);
        LabelField Description = new LabelField(
                "\n asdasdawqwere we r we r we rw er w er wer, groceries, sadfertewrt er te rt ert er t er t er t er t . asdasdasdasdas asd asd werwerewrt er t erter t ert.",
                FIELD_HCENTER);
        LabelField Description2 = new LabelField(
                "\n\n\n About Us \n For customer care \n\n");
        /*
         * add(Description); add(Description2);
         */

        DescriptionVFM.add(Description);
        DescriptionVFM.add(Description2);

        VerticalFieldManager BottomVFM = new VerticalFieldManager(USE_ALL_WIDTH);
        HorizontalFieldManager BottomHFM = new HorizontalFieldManager(
                FIELD_VCENTER);
        LabelField callus = new LabelField("Call: ", FIELD_VCENTER);
        LabelField Number = new LabelField("+91-79-30487400", FIELD_VCENTER) {
            protected void paint(Graphics g) {
                g.setColor(0x324F85);

                // g.fillRoundRect(0, 0, 50, 5, 7, 7);
                super.paint(g);
            }

        };
        font = fontFamily[1].getFont(Font.BOLD, 18);
        Number.setFont(font);

        BottomHFM.add(callus);
        BottomHFM.add(Number);
        BottomVFM.add(BottomHFM);
        // add(BottomVFM);
        DescriptionVFM.add(BottomVFM);
        add(DescriptionVFM);

    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T18:32:54+00:00Added an answer on June 8, 2026 at 6:32 pm

    When you add an instance of LabelField to any FieldManager, you need to add another dummy focusable Field after that.

    You can use NullField in that case. Try something like following:

    // fieldManger can be a VerticalFieldManger, HorizontalFieldManger, Manager, etc.
    fieldManager.add(new LabelField("An instance of LabelField"));
    fieldManager.add(new NullField(NullField.FOCUSABLE);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hai every one I am developing an windows application in which i have to
I am developing one application which include the email sending functionality (which is like
Hello i am new in android and i am developing one application in which
I'm developing an application via which one can send sms by directing it to
Iam developing one application.In that iam placing the radio buttons(uiimageview) on table view and
iam developing one application.In that i need to get the music files from the
Iam developing one application.In that iam using one uiimageview.And take another image view and
Iam developing one application.In that iam using the uilabels.And my problem is i need
iam developing one application.In that i need to get the how many music files
Iam developing one application.In that i take the string from array and replace .xml

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.