Click here to Skip to main content
12,825,701 members (36,784 online)
Rate this:
Please Sign up or sign in to vote.
See more: Java Java SE Mobile Beginner J2ME , +
public final class LoadingPopupScreen extends PopupScreen
    Background  background;
    HorizontalFieldManager hfm;
    int width;
    int height;
    public LoadingPopupScreen( int width, int height)
        super(new VerticalFieldManager());
        background = BackgroundFactory.createLinearGradientBackground(Color.ROYALBLUE, Color.BLACK, Color.ROYALBLUE, Color.BLACK);
        add(new LabelField("ROAMING"));
        add(new SeparatorField());
        add(new SeparatorField());
        hfm = new HorizontalFieldManager();
        Bitmap bitmap = Bitmap.getBitmapResource("splash.png");
        BitmapField  bit= new BitmapField(bitmap);
        hfm.add(new LabelField("want to check In Roaming or not?"));
        hfm = new HorizontalFieldManager(Manager.FIELD_HCENTER);
        ButtonField ok = new ButtonField("OK", HorizontalFieldManager.FIELD_HCENTER);
        ButtonField cancel = new ButtonField("CANCEL", HorizontalFieldManager.FIELD_HCENTER);

I want to create an application in which i want to get an dialog on some event occurs, i am able to get the Dialog but behind that i am getting white screen i dont want that screen. So, is there any way to make that screen transparent. Plz help me out for this.

Posted 25-Sep-12 3:38am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You can't. There is no transparency available, the UI Background is at least always white.

you should register for the Blackberry Jam Zone[^]
It's free and you will find this and much more resources there.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

i have done it using below code : -

Ui.getUiEngine().pushGlobalScreen(new LoadingPopupScreen(300,300), 0, UiEngine.GLOBAL_QUEUE);
TorstenH. 27-Sep-12 2:18am
is that a dialog?
amanarora BB 27-Sep-12 4:06am
No that is used to push screen, this will push only pop up screen without white background

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 27 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100