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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:15:55+00:00 2026-06-05T04:15:55+00:00

Using Firefox and maybe others modern browsers, we are allowed to select some text

  • 0

Using Firefox and maybe others modern browsers, we are allowed to select some text of a page, and then Drag and Drop our selection.

The destination of this drag and drop, can be any HTML input, or even the bar address, the search field, etc.

I would like to know if this kind of drag event is handled by the browser in a special way, or if it is possible to capture this (a DOM event or something like that).

To be more specific, I’m trying to add this drop functionality to some GWT objects and then be able to retrieve the selected text.

I’m using GWT.

EDIT, WORKING SOLUTION

This is some relevant code :

TextArea text = new TextArea();
SimplePanel panel = new SimplePanel(text);

TextArea text2 = new TextArea();
SimplePanel panel2 = new SimplePanel(text2);

Button button = new Button("button");
button.addDragOverHandler(new DragOverHandler()
{
     @Override
     public void onDragOver(DragOverEvent event)
     {
         GWT.log("onDragOver");
     });

 RootPanel.get().add(panel);
 RootPanel.get().add(panel2);
 RootPanel.get().add(button);

Image :

Image showing the behavior

The use of the button is just an example.

The goal here is to retrieve the text I want to drop this text over the button through some handlers on the button.

  • 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-05T04:15:57+00:00Added an answer on June 5, 2026 at 4:15 am

    GWT has built-in support for native drag and drop.

    According to your description, you seem to be looking for widgets implementing HasDropHandlers, and there are a bit more than a few 😉

    It’s also rather easy to add it to a custom widget (have a look at how it’s done in built-in widgets, such as FocusPanel or Grid)

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

Sidebar

Related Questions

I'm using Firefox and I've been reading some forums claiming this doesn't work in
I am using Selenium IDE Firefox plugin to create some test cases. I click
I'm using firefox as my default browser for my basic webdev learning process and
When I load jQueryUI on a Windows XP machine using Firefox 3.6.3, I get
When I upload a jar file to my web server, people using Firefox or
I am going to be excrutiatingly detailed here. I am using Firefox 3.6.3 on
I'm using the Firefox Add-on Builder and here is what I have so far:
When I try to start Firefox using Process.Start and ProcessStartInfo (.NET) everything seems to
Is it possible to output specific JSON data (exported from Firefox bookmarks) using PHP.
I start Firefox (Linux) via command line using a cron-job. When there is no

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.