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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:50:35+00:00 2026-06-06T00:50:35+00:00

Please help me look into my simple test case: import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.ui.RootPanel; import

  • 0

Please help me look into my simple test case:

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
import com.smartgwt.client.widgets.menu.IMenuButton;
import com.smartgwt.client.widgets.menu.Menu;
import com.smartgwt.client.widgets.menu.MenuItem;

public class Test1 implements EntryPoint {

    private static final int MENU_ICON_SIZE = 50;

    public void onModuleLoad() {

        // HLayout buttonLayout = new HLayout();
        //
        // IconButton printButton = new IconButton("");
        // printButton.setIcon("icons/16/print.png");
        // printButton.setIconSize(MENU_ICON_SIZE);

        Menu menu = new Menu();
        menu.setShowShadow(true);
        menu.setShadowDepth(10);

        MenuItem csvExport = new MenuItem("Export as CSV",
                "icons/16/csv_file.png");
        MenuItem pdfExport = new MenuItem("Export as PDF",
                "icons/16/pdf_file.png");
        MenuItem xmlExport = new MenuItem("Export as XML",
                "icons/16/xml_file.png");
        MenuItem jsonExport = new MenuItem("Export as JSON",
                "icons/16/json_file.png");

        csvExport.setIconWidth(MENU_ICON_SIZE);
        pdfExport.setIconWidth(MENU_ICON_SIZE);
        xmlExport.setIconWidth(MENU_ICON_SIZE);
        jsonExport.setIconWidth(MENU_ICON_SIZE);

        csvExport.setIconHeight(MENU_ICON_SIZE);
        pdfExport.setIconHeight(MENU_ICON_SIZE);
        xmlExport.setIconHeight(MENU_ICON_SIZE);
        jsonExport.setIconHeight(MENU_ICON_SIZE);

        menu.setItems(csvExport, pdfExport, xmlExport, jsonExport);

        IMenuButton exportButton = new IMenuButton("", menu);
        exportButton.setIcon("icons/16/download.png");
        exportButton.setIconSize(MENU_ICON_SIZE);

        // buttonLayout.setMembers(printButton, exportButton);
        //
        // RootPanel.get().add(buttonLayout);

        RootPanel.get().add(exportButton);
    }
}

The icon is not showing, what I can see is only the little triangular for menu dropdown. The same problem is for MenuButton as well.

However, if I switch from IMenuButton to IconMenuButton, the icon can be showing correctly, but the problem is the user have to click the little triangular to view the menu, instead of the entire button, which is not quite user-friendly to me.

Anyone have ideas about this?

Any comment or suggestion will be appreciated.

  • 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-06T00:50:37+00:00Added an answer on June 6, 2026 at 12:50 am

    This questions has been answered in Smart Client Forum.

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

Sidebar

Related Questions

When I run this am getting resource #id 3 result. Please look into my
Please look at the following test page : sample page showing two images .
Please help me: create clickable regions in the canvas below that I can assign
Please help me to sort multimap by the count of values. For example, multimap<char,int>
Please help me: I'm getting Error While using j4lOCR: `A fatal error has been
Please help me someone with this code. CSS Code #nav, #nav ul { width:1000px;
Please help me with this issue in my script. At the point of the
Please help. I've got an error while deserializing the data from the server, The
Please help me find a way to embed the relational views of a database
Please help me in finding the syntax error, i have tried my best to

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.