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 7020313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:18:09+00:00 2026-05-27T23:18:09+00:00

I am using jre 5 and a 9550 simulator in my system.. I have

  • 0

I am using jre 5 and a 9550 simulator in my system.. I have a problem in my app with scrolling the VerticalFieldManager..

I am calling a new Screen from my MainScreen java file..

The Code is like…

UiApplication.getUiApplication().invokeLater(new Runnable() 
{
    public void run() 
    {
        try
        {
            UiApplication.getUiApplication().pushScreen(new CustomDialog());
        }
        catch (Exception e) {
            Dialog.alert("loading Error");
        }
    }
});

And that CustomDialog.java is like…

public final class CustomDialog extends MainScreen
{
    LabelField title, message;
    HorizontalFieldManager hfm;
    VerticalFieldManager vfm;
    GridFieldManager gfm;

    public CustomDialog()
    {
        super(Screen.DEFAULT_CLOSE);

        hfm = new HorizontalFieldManager(Field.FIELD_LEFT);
        title = new LabelField("hello User",FIELD_HCENTER)
        {
            protected void paint(Graphics graphics) {
                graphics.setColor(Color.BROWN);
                super.paint(graphics);
            };
        };
        title.setFont(getFont().derive(Font.BOLD, 20));
        hfm.add(title);
        add(hfm);

        vfm = new VerticalFieldManager(Manager.VERTICAL_SCROLL);
        message = new LabelField("my text");//Actually a long text..
        vfm.add(message);
        VerticalFieldManager tmp = new VerticalFieldManager();
        tmp.add(vfm);
        add(tmp);
    }
}

The message is displaying in the screen, but it is not scrolling..
Actually, the message is a long text, and i want to do scrolling for that VerticalFieldManager..

How can i get it scrolling?

  • 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-05-27T23:18:10+00:00Added an answer on May 27, 2026 at 11:18 pm

    To get the VerticalFieldManager scrolling, add focusable NullField object before and after the LabelField.

    vfm.add(New NullField());
    vfm.add(message);
    vfm.add(New NullField());
    

    It will now scrolls from bottom to top of the Label at once and vice versa. To get rid of this problem use RichTextField. It is the best choice for displaying long text. It itself handles scrolling vertically (line by line) and horizontally (character by character).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using JRE 5.0.0, simulator device is an 8520. On a screen I am using
I developed an application using the JRE 7.0.0. In the simulator the app works
I'm using enumerations to replace String constants in my java app (JRE 1.5). Is
Using the stock Sun 1.6 compiler and JRE/JIT, is it a good idea to
Using JRE 5.0.0: import net.rim.device.api.util.StringProvider; http://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/util/StringProvider.html What am I missing?
Will code compiled using 1.5 and 1.6 run on a 1.4 JRE? We weren't
I'm using Eclipse 3.6.2 on Win7 (64). Today I updated my Java 6 (JRE
Is there a way on Windows to run a JAR file using a JRE
I am relying on the default JAXP implementation and using the Oracle JRE .
For an java web application, I got this error when using JRE 1.6.0_22 java.lang.SecurityException:

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.