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 tried to convert a Chrome extenstion to Firefox using this tool http://www.extensionfactory.com/labs/conversion/ and
Seems there are some problems using asp.net regular expression validators where they work in
Using Swing, what is the best way to indent some components underneath a checkbox
I am using jPlayer to embed two audio files in my page, basically the
I've been using $('select[required]').is(':invalid') if the browser supports the pattern attribute if(Modernizr.input.pattern) {} ,
I'm using jQuery UI: <script type=text/javascript src=/jscripts/jquery-1.4.min.js></script> <script type=text/javascript src=/jscripts/jquery-ui-1.8.2.custom.min.js></script> and IE7 (corporate rule!)
I'm trying to find a way of creating a crossbrowser(all major browsers) select tag
I have a graphics page which shows SVG graphics. I am using Raphael graphics
I've checked out the other page jump questions here on SO and I haven't
I do a lot of tutorials using Wordpress. The main characteristic thing is that

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.