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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:40:40+00:00 2026-06-12T15:40:40+00:00

Like I want to customize it. I have been provided an image which I

  • 0

Like I want to customize it. I have been provided an image which I want to set it on my login button.

I tried Login.setBackground(“loginbackground.png”); but it didn’t go per my requirements. This question has duplicates but I didn’t found a perfect solution that’s why posting it :S

Thanks.

  • 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-12T15:40:41+00:00Added an answer on June 12, 2026 at 3:40 pm

    if you want to add image to button in background try it using below code :

    Bitmap bitmap = Bitmap.getBitmapResource("rectangle.png");
    Background background = BackgroundFactory.createBitmapBackground(bitmap);
    button1 = new ButtonField("Button1", ButtonField.USE_ALL_WIDTH);
    button1.setBackground(background);
    add(button1);
    

    or You can do it by adding image and adding click function to it in the below way :

    Bitmap msg = Bitmap.getBitmapResource("msg.png");
    BitmapField message = new BitmapField(msg, Field.FOCUSABLE)
    {
        protected boolean navigationClick(int status,int time)
        {
            label.setText("Messages");
            Dialog.alert("Message icon selected");
            return true;
        }
    };
    add(message)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been able to customize the action bar's background, logo image and text
I have this fiddle : http://jsfiddle.net/XjeCf/1/ that works like I want and this one
I have a ListView, and I want to customize the layout of each item
I want to reinject singleton-scoped dependencies into prototype Spring beans, after they have been
I have been trying to set up an EDE project for C++ (emacs24 +
I have a template for a website, and I want to customize the message
I have a problem with GridBagLayout. My components doesnt want to look like i
I want to customize a video player to have additional buttons and controls using
I want to customize the height and width of the JTextField objects. I have
I have an MVC3 app for which I want to implement claims support. My

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.