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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:45:03+00:00 2026-06-09T16:45:03+00:00

So when you move an icon to a new position windows automatically pushes other

  • 0

So when you move an icon to a new position windows automatically pushes other icons down the list( i would also like to push them up). I would like to do this with jcomponents in general, jtables in specific.

Also for bonus points if I can keep track of what table is where (i’ll need to save their order in xml).

any ideas?

  • 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-09T16:45:04+00:00Added an answer on June 9, 2026 at 4:45 pm

    There is no out-of-the-box mechanism for rearranging components via drag and drop, but it is easy enough to do yourself. Here’s the basic idea:

    1) Use a JLayeredPane as base component, and put your tables on the default layer

    2) Add a transparent component on top of that, e.g. a higher layer. This will be your glass pane

    3) Install a MouseMotionListener on the glass pane. When you detect a drag that should move a
    table, go on with 4. Otherwise, redispatch the event to the underlying component.

    4) Provide some kind of visual feedback for the drag, e.g. a semitransparent line to indicate the
    drop location. Show the user where the table would appear when he releases the mouse.

    5) If the drag indicates that the tables should be rearranged, simply redo the layout on your table panel to position them accordingly.

    If you have specific questions regarding one of the steps, feel free to comment.

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

Sidebar

Related Questions

I would like to move a circle along a circular path using HTML/CSS/JavaScript. Is
I have a list of items that I need to record its position in
I'm new here in Android. I'd like to make a Battery Charging Animation in
I want to move the form title, icon and close, and help buttons from
I have created a simple test game that randomly spawns icons that move around
'<div id="'+div_id+'" class="widget" style="height:60px;width:110px">\n\ <div class="widget-head ui-widget-header" style="cursor:move;height:20px;width:130px">'+ '<span id="'+span_id+'" style="float:right; cursor:pointer" class="dialog_link ui-icon
The move in recent versions of Python to passing a key function to sort()
I move a UIImageView with touchesBegan , touchesMoved , touchesEnded . It works well,
I am trying to move some files in python, but they have spaces in
I am trying to move even numbers in an array to the front and

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.