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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:24:52+00:00 2026-05-27T07:24:52+00:00

I am trying to do this: public class DialogMenuHawaii extends Dialog { Style s

  • 0

I am trying to do this:

public class DialogMenuHawaii extends Dialog {

    Style s = UiFactory.getBaseStyle();
    s.setBgTransparency(0);
    s.setBgImage( <my image >);
    this.setUnselectedStyle(s);
}

but it doesn’t work.

  • 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-27T07:24:53+00:00Added an answer on May 27, 2026 at 7:24 am

    Open your ‘.res’ file in resource Editor and select your preferred theme,

    1. Under ‘Unselected’ tab open the DialogContentPane style, if you don’t have one create it look at the end of this answer on HOW TO DO IT?, and set the background image to the image you need to show as Dialog bg
    2. Under ‘Unselected’ tab open the DialogBody style, if you don’t have one create it look at the end of this answer on HOW TO DO IT?, and set the background transparency as ‘0‘ and also make sure the background image type is NONE

    NOTE: The above code will reflect for all the Dialogs in your application. If you want a particular dialog with background image than derive new styles from these default styles, and follow the above steps to apply it to your DialogMenuHawaii or any runtime Dialogs.

    HOW TO: I would recommend you to go through the Shai’s blog posts LWUIT Resource Editor Tutorial Part 1 till part 10. To better understand the Resouce Editor its features and capabilities.

    :

    :

    :

    PS: Programmatic-ally i haven’t been able to achieve it using TextArea which is the case for default Dialog’s. If you replace the dialog body component with Label if works fine, the code sample is given below. I haven’t delved much into why is it so ? maybe will do it in my free time. Hence i have proposed a working alternative solution which is scripted above using Resource Editor and below using the code

    class MyDialog extends Dialog {
    
        public void show() {
            Container octnPane = this.getDialogComponent();
            octnPane.getUnselectedStyle().setBgTransparency(0, false);
    
            Container ctnPane = (Container)((BorderLayout)octnPane.getLayout()).getCenter();
            ctnPane.getUnselectedStyle().setBackgroundType(Style.BACKGROUND_IMAGE_SCALED, false);
            ctnPane.getUnselectedStyle().setBgImage(myImage, false);
    
            Label t = new Label("Dialog");
            t.setUIID("DialogBody");
            t.getUnselectedStyle().setBgTransparency(0, false);
            ctnPane.addComponent(t);
    
            super.show();
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to something like this: public class MainGamePanel extends SurfaceView implements SurfaceHolder.Callback
I'm trying to emulate this answer but though this works: public class TrackBarMenuItem :
I'm trying to make this code generic: public final Object unwrap(Class arg0) { throw
As the title says, I'm trying to do something like this: public abstract class
I'm working with an Oracle DB, and I'm trying to map this class: public
I'm trying to implement a Paginator like this: public class MyPaginator : DocumentPaginator{ //
I am trying to flatten nested objects like this: public class Book { public
I'm trying to build an object that looks something like this: public class MyObject
I'm trying to call overloaded method in code like this: public abstract class BaseClass<T>
I'm trying to implement simple Event Bus I started like this: public class RegistrationData

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.