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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:18:28+00:00 2026-06-14T15:18:28+00:00

I am trying to implement a DragAndDrop capability on a ScrolledForm with several expandable

  • 0

I am trying to implement a DragAndDrop capability on a ScrolledForm with several expandable Sections. I should be able to move sections around in the form, reordering them.

After a bit (a lot) of research, I’ve learned that my best chance is to define my own custom Transfer for the DragSource and DropTarget.

All in all, how can you move around a Control in a Composite?

Update:

Alright, so. My Sections no longer need to be expandable. They are ‘solid’ sections of different sizes. This eases my problem but doesn’t solve it.

I’ve tried variations of Drag and Drop, with and without aTransfer. The all-mighty Internet didn’t think about implementing something like this.

  • 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-14T15:18:29+00:00Added an answer on June 14, 2026 at 3:18 pm

    As you mentioned, you have to implement DragSource and DropTarget. When you drag a control , you could actually change cursor to image of the actual control ( Look at Control.print(GC) method to create Image). All you need to do once the drop is finished is change bounds of the Control.(Control.setBounds (int x, int y, int width, int height) )

    As you want to lay out your Controls in free form, I would suggest you to restrict to set any Layout on the form and you have to manually calculate and set bounds on each child Control.

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

Sidebar

Related Questions

Trying to implement LoaderManager + CursorLoader. In onFinish method adapter should swap its cursor
Trying to implement clean URLs (without .form, .do, etc.) with Spring MVC 3.0 (actually
Trying to implement frames wherein clicking on a link in left frame should open
Am trying to implement a generic way for reading sections from a config file.
Trying to implement a little script to move the older log files out of
I'm trying implement A* Start path finding in my games(which are written with JavaScript,
I am trying implement a most recent widget into my tumblr post. So far,
Trying to implement google C2DM service. registrationIntent.putExtra(app, PendingIntent.getBroadcast(context,0,new Intent(), 0)); registrationIntent.putExtra(sender,example@gmail.com); context.startService(registrationIntent); Almost every
Trying to implement a search similar to here .This searches properties based on city,locality,property
Trying to implement 3-layer (not: tier, I just want to separate my project logically,

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.