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

  • Home
  • SEARCH
  • 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 9180639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:06:23+00:00 2026-06-17T18:06:23+00:00

I have a GWT horizontal panel, which I have styled to make it look

  • 0

I have a GWT horizontal panel, which I have styled to make it look like a custom div with a given height and width (using raw HTML is no-no for me here). Now I want to attach a clickhandler to it. How do I do it?

Doing something like mypanel.addClickHandler() {} is throwing an error stating that I can’t attach such event to a panel. Same goes for mypanel.getElement().addClickHandler() {}. Is there any way to attach clickhandler, keyuphandler etc to elements and panels, i.e which are not buttons?

  • 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-17T18:06:24+00:00Added an answer on June 17, 2026 at 6:06 pm

    You should use FocusPanel which adds the ability to catch mouse and keyboard events. You can add your HorizontalPanel to a FocusPanel and then add the required event handlers.

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

Sidebar

Related Questions

I have a gwt application which I need to apply custom themes for specific
I have a GWT application for which I'm trying to write some tests using
I have a GWT application which I would like to run from within a
I have create a DecoratedTabPanel in GWT <g:HorizontalPanel ui:field=hpnlTab> <g:DecoratedTabPanel animationEnabled=true ui:field=tabQuran width=499px height=281px>
I have a GWT Disclosure panel which is animating between open and closed state
I have a GWT project in which I need to manually specify currency, number
I have a GWT module with the X-GWT-Module-Base http://host:8080/foo/ and would like to call
I have a GWT screen in which i have a file upload bar,whenever i
I have a GWT dialog box that looks like the following: public class FooDialog
I have gwt web project, which must use application.properties (on client side) loaded as

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.