SeperatorField grooveeffect

SeparatorField s1;
Separator VerticalFieldManager = new VerticalFieldManager (Manager.USE_ALL_WIDTH);
seperator.setPadding (0, 0, 0, 0);
seperator. Add (s1 = new SeparatorField());

S1.setMargin (0, 0, 0, 0);
seperator. Add (s1 = new SeparatorField());
S1.setMargin (0, 0, 0, 0);

loginScreen. Add (seperator);

I'm trying to field separator two attch to get the grooveline as shown bvellow effect

But the two were not defined by the space between twofield zero?

How can I achieve this effect seperator?

http://supportforums.BlackBerry.com/T5/Java-development/SetPadding-amp-setMargin-HElp/m-p/1583443/hi...

Tags: BlackBerry Developers

Similar Questions

  • Separator field in os 4.3?

    I have an application that has a version of the jde 4.3 and seperatorfield does not work.  its not found in the api.  It's called something different, or is there a different way, you must make a line separator when using jde 4.3?

    Since JDE 4.2, net.rim.device.api.ui.component.SeparatorField is available! What is the problem you are having?

  • Strange black gap after the title screen

    Hello

    I have a simple screen with a LabelField I put as a title. After that, I add a SeperatorField to the screen. Since I use a color different than black for the background of my title field, I can see a black area about 5 pixels between where ends the title field and the field separator. This happen when running with OS 4.6.

    When you run the same code on a simulator with OS 4.5, there is no such black gap.

    Someone has seen this before and may know a work around? I already tried all possible settings as a zero margin and margin inner but not luck so far.

    Thank you.

    Daniel

    The default title bar some theme related problem. I don't think that you can customize the default title bar.

    Try something like this instead of using the setTitle() method:

    import net.rim.device.api.ui.*;import net.rim.device.api.ui.component.*;import net.rim.device.api.ui.container.*;import net.rim.device.api.system.*;
    
    class TestScreen extends MainScreen{    private HorizontalFieldManager titleManager;    private VerticalFieldManager mainManager;
    
        TestScreen()     {            super(NO_VERTICAL_SCROLL);
    
            /////////////////START OF TITLE///////////////////        LabelField titleLabel = new LabelField("Title Text");                
    
            titleManager = new HorizontalFieldManager()         {            protected void paintBackground(Graphics graphics)             {                graphics.setBackgroundColor(0x00dddcdd);                graphics.clear();                super.paint(graphics);            }        };        titleManager.add(titleLabel);        ////////////////////END OF TITLE///////////
    
            /////////////////START OF MAIN MANAGER////////         //rather than  adding component in the mainScreen        //add components in this verticalManager and then        //add this manager to mainScreen         mainManager = new VerticalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR)        {            protected void paintBackground(Graphics graphics)             {                graphics.setBackgroundColor(0x00000000);                graphics.clear();                super.paint(graphics);            }                        protected void sublayout( int maxWidth, int maxHeight )            {                int width = Display.getWidth();                int height = Display.getHeight() - titleManager.getPreferredHeight();
    
                    super.sublayout( width, height);                setExtent( width, height);            }        };        ButtonField btnTest = new ButtonField("Test Button");        mainManager.add(btnTest);        /////////////////END OF MAIN MANAGER/////////////// 
    
            this.add(titleManager);        this.add(mainManager);
    
        }}
    

    Concerning

    Bika

Maybe you are looking for