Drag and Drop inside JTable: what draws the 'insert' line during the drag?

I'm trying to reconfigure a rather complex table with a fair number of custom renderers to include drag & drop of rows for resorting the table. Everything is working great, except that as I drag the rows there is no indication of the current insert point (i.e. the line that appears between rows). When I make a simpler table I see the line... I'm not sure what aspect of my current table is blocking this function. I'm writing in the hope that can someone can direct me to the method(s) responsible for drawing this line.
Thanks!

To elaborate a bit for anyone who might read this. I inquired with the Substance developers and they hope to support this feature in v5.1 (which requires SE6), but have no plans to update v4.3 (the last release before a switch to SE6).
Also, I'd still be grateful for any info pointing me to the Swing methods that draw the drag line.

Similar Messages

  • Drag and Drop inside a component

    I am using the Project Gantt component and want to drag and drop inside the component. I want to drag a timeline from one row and drop it to another row. And also drag a timeline from a row and drop it another place in the same row. Can I make the component a dragsource and droptarget?

    Hi,
    should be posted at JDeveloper and OC4J 11g Technology Preview
    Frank

  • How can I include a success message in a drag and drop interaction - I don't see this option in the Actions on success options, and cannot figure it out?

    How can I include a success message in a drag and drop interaction - I don't see this option in the Actions on success options, and cannot figure it out?

    I suspected you used the eye icon on the timeline to hide the message, but that one has no impact whatsoever on the published version. It is only meant to be used for editing reasons on the stage, to hide objects temporarily on a crowded stage. It is confusing, certainly in CP8 where for both instances the same eye icon is used. In previous versions the Properties panel had a checkbox for 'Show in Output', which was IMO much clearer than this eye icon. But of course, that is only my personal opinion.

  • With new Photos app, I can no longer drag and drop photos into other applications as I did in the past with iPhoto.

    With the new Photos app, I can no longer drag and drop photos into other applications as I did with iPhoto.  For instance, I have a photo collage app that in the past, I could just drag in the photos I wanted to include.  Now, I can DRAG the photos, but they do not DROP.  So, I have to go through the export process.  It is tedious.  What am I missing?  Where can I turn on the drag and drop feature for Photos?

    YOu're not looking in the right palce. That's inside the iPhoto Application.
    You need to look inside the iPhoto Library
    As I sid above:
    Go to your Pictures Folder and find the iPhoto Library there
    Regards
    TD

  • Is it possibiel to disable drag and drop of JTable columns?

    Hi,
    Using JDK6 I would like to disable user to drag and drop columns and change the default layout of my JTables.
    Thanks for any help,

    Using JDK6 I would like to disable user to drag and drop columns Read the JTableHeader API. You can prevent reordering of the columns.
    and change the default layout of my JTables.How do you expect us to answser this??? What do you mean by changing the layout? Whats wrong with row and column and what do you want to change it to?

  • I am organizing my external HD and want to move files NOT COPY them. How do I drag and drop folder contents without Mac automatically copying them to the "drop" location?

    I am sorting out all the clutter and duplicate files on my external HD. In doing this I am moving the entire contents of folders to new locations. Some of these folders cointain gigs of info. I do not want to have to spend large amounts of time waiting for hundreds of gigs to copy somewhere then  moving the originals to the trash and wait even longer deleting all of them. All I want to do is move the files up a subfolder, but the way Finder goes aobut doing it can be a 400 GB swing taking hours. How do I just "move" them?

    Check out this discussion. Worked for me.
    http://tinyurl.com/7dmh9p5
    Quote:
    When I do a drag and drop in Finder to move a folder into another folder it makes a copy of the folder in the new location instead of moving it like the help documentation says and like it used to do in Snow Leopard.  I have looked all over in preferences for a setting the contols the move/copy outcome of drag and drop and have been unable to find anything.  Is this the way Lion is supposed to work?
    MacBook Pro, Mac OS X (10.7.1)
    This solved my question by jsd2  on Oct 9, 2011 6:33 AM
    I did a global change of permissions for the entire documents account in the currrent user account using the get info and apply to enclosed items.
    I think what is happening is that the Documents folder normally carries an "everyone deny delete" ACL, meant to protect it from accidental deletion:
    $ ls -lde ~/Documents
    drwx------+ 6 t1  staff  204 Oct  9 08:51 /Users/t1/Documents
    0: group:everyone deny delete
    ACLs are special types of permissions that do not show up in GetInfo, but can get propagated if you click "Apply to Enclosed Items" on a folder that carries them. Affected files that acquire  that ACL would require password authentication to move or delete them.
    I think the following Terminal command (copy and paste it) should remove such ACLs from items within the Documents  folder:
    chmod -RN ~/Documents/*
    Message was edited by: miz_mdk

  • Drag and drop file into email gets me an icon, not the image. Is there a simple fix?

    I am used to drag and drop image import into apple email. Recently I get a "mail attachment" icon for images that have been previously sent in other email. I would like to see the actual image in every email if possible. How can that happen?

    Thanks for the help. Dragging the thumbnail onto the album tab works great. Too bad this was not a bit clearer in the previous posts.

  • IPhoto 09 picture drag and drop form library to an album results in incorrect picture dragged dropped

    Hi,
    I think that my problem started when I installed ML...
    When I import a picture in my library and then drag and drop the picture in an album (for example an empty one)... when I open the album, the only picture there is not the one I draged and dropped, but another one from my library... it's ths same when I repeat that for any other picture...
    Any idea how to sort this

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • Drag and Drop in jtable!

    Hi everybody!
    I want drag some element from some list and drop in some cell in jtable, but i have a problem because this element can use more than one cell, all depends! , the drag moviment seem to work fine between list and the JTable. when the drag cursor is above a row in the JTable, ONLY ONE cell in that row is highlighted, but i want that more than one cell get highlighted and i want put the information in more than one cell.
    Anyone know how to do that?
    thanks in advance
    ps:I am a freshman in foruns, sorry about my english.

    Hi everybody!
    I want drag some element from some list and drop in some cell in jtable, but i have a problem because this element can use more than one cell, all depends! , the drag moviment seem to work fine between list and the JTable. when the drag cursor is above a row in the JTable, ONLY ONE cell in that row is highlighted, but i want that more than one cell get highlighted and i want put the information in more than one cell.
    Anyone know how to do that?
    thanks in advance
    ps:I am a freshman in foruns, sorry about my english.

  • What does it take to drag and drop a jTable row to a jTextField?

    What kind of Listeners do I need? I have implemented transferListener and overrode createTransferable. But there was nothing responding when I tried to drag a row away. Any other Listener do I need to implement?

    For better help sooner, post an SSCCE.

  • Drag and Drop in JTable never gets DropTargetListener events

    I'm trying to implement Drag/Drop between two JTables. I have adapted the source from the Drag/Drop Tutorial but none of the DropTargetListener events get called. When I try to drag a row from one table to the other, the debug output is as follows:
    beginning drag : ROW 3
    dragsource : dragExit
    dragsource : dragDropEnd
    I'm using JDK 1.3. Any help would be appreciated, here is the source:
    public class DnDTable extends JTable implements DropTargetListener, DragSourceListener, DragGestureListener
    public DnDTable(Object[][] rowData,Object[] columnNames)
    super(rowData,columnNames);
    m_dropTarget = new DropTarget(this,this);
    m_dragSource = new DragSource();
    m_dragSource.createDefaultDragGestureRecognizer(this,DnDConstants.ACTION_MOVE,this);
    public void dragEnter(DropTargetDragEvent event)
    System.out.println("droptarget : dragEnter");
    event.acceptDrag(DnDConstants.ACTION_MOVE);
    public void dragExit(DropTargetEvent event)
    System.out.println("droptarget : dragExit");
    public void dragOver(DropTargetDragEvent event)
    System.out.println("droptarget : dragOver");
    public void drop(DropTargetDropEvent event)
    System.out.println("droptarget : drop");
    try
    Transferable transferable = event.getTransferable();
    // we accept only Strings
    if (transferable.isDataFlavorSupported(DataFlavor.stringFlavor))
    event.acceptDrop(DnDConstants.ACTION_MOVE);
    String s = (String)transferable.getTransferData(DataFlavor.stringFlavor);
    setValueAt(s,rowAtPoint(event.getLocation()),0);
    event.getDropTargetContext().dropComplete(true);
    else
    event.rejectDrop();
    catch(IOException exception)
    exception.printStackTrace();
    System.err.println( "Exception" + exception.getMessage());
    event.rejectDrop();
    catch(UnsupportedFlavorException ufException )
    ufException.printStackTrace();
    System.err.println( "Exception" + ufException.getMessage());
    event.rejectDrop();
    public void dropActionChanged(DropTargetDragEvent e)
    public void dragGestureRecognized(DragGestureEvent event)
    int nDragRow;
    Object object;
    nDragRow = getSelectedRow();
    object = getValueAt(nDragRow,0);
    if (object != null )
    System.out.println("beginning drag:" + object.toString());
    StringSelection text = new StringSelection(object.toString());
    m_dragSource.startDrag(event,DragSource.DefaultMoveDrop,text,this);
    else
    System.out.println("nothing was selected");
    public void dragDropEnd(DragSourceDropEvent event)
    System.out.println("dragsource : dragDropEnd");
    public void dragEnter(DragSourceDragEvent event)
    System.out.println("dragsource : dragEnter");
    public void dragExit(DragSourceEvent event)
    System.out.println("dragsource : dragExit");
    public void dragOver(DragSourceDragEvent event)
    System.out.println("dragsource : dragOver");
    public void dropActionChanged(DragSourceDragEvent event)
    System.out.println("dragsource : dropActionChanged");
    DropTarget m_dropTarget;
    DragSource m_dragSource;

    Hi My friend,
    The code you have took will perfectly works.
    I have an option please try this.
    Instead of DnDConstants.ACTION_MOVE try DnDConstants.ACTION_COPY.
    Lakshmi.

  • Drag and Drop from JTable

    Using cntl C and cntl V to copy data from a JTable
    into another file
    j2sdk1.4.0 copied the column names along with the data.
    j2sdk1.4.1_04 does not copy the column names anymore.
    Is there any way to get the previous functionality?

    Does anyone use cut and paste to copy data from a JTable to another file?
    I wonder why the new RE-Version doesn't copy the column headers anymore.

  • Drag and Drop Listbox: Box 1 to Box 2 then same data dragged back to Box 1

    Right now, I have one listbox (1) with string data that can be dragged to another listbox (2).  However, I cannot take that same string data and drag it back to the original listbox (1).
    If I try to do that, the string data just disappears and I cannot retrieve it again.
    Thanks for any response, much appreciated!

    An example would help tremendously. 
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • I have an external hard drive that I have been using for years.  All of a sudden my mac will not recognize the external as a "save as" device location.  But the external does show up on my desktop and I can open it to drag and drop items. Help.

    I have an external hard drive that I have been using for years.  All of a sudden my mac will not recognize the external as a "save as" device location.  But the external does show up on my desktop and I can open it to drag and drop items.  What happened and how do I get my mac to rerecognize the device?!?!?

    Hi,
    Check Finder>Preferences>Sidebar, is it checked there to show external drives?

  • Scripting Error in drag and drop of the UIelements

    Hi,
    This is ashwin ,iam new to webdynpro abap ,as iam started in uidevelopement trying to drag and drop uielement into layout its is showing error while iam dragging and droping the uielement like scripting error.
    can any one help mi what that scripting error could be rectified?
    Regards,
    Ashwin

    Hi,
    Thanks fo rthe reply ,i tried on st22 its showin no error .Iam getting a popup saying error as "__ERROR HAS OCCCURED IN THE SCRIPT OF THE PAGE".
    I am using IE 7 Browser and having high internet connection, iam not understanding why am i unable to drag and drop  UIElements on the layout ?
    Regards,
    Ashwin

Maybe you are looking for

  • IPAD/IPOD playing music to a Airport Express - No Sound?

    I have an IPAD and an IPOD.  IPAD is 4th gen, IOS7.  IPOD is 4th gen, IOS6. Airport express is the new one second generation.  Airport Express is wired to my home network, and its in bridged mode with wireless off.  Its purpose is only to play music

  • SPA122 - IVR Factory Reset Parameter not functioning

    Hi Team, We are currently experiencing an issue with the SPA122 [firmware ver. 1.2.0 (022)] whereby the following parameter does not seem to be working on the device. <Protect_IVR_FactoryReset ua="na">Yes</Protect_IVR_FactoryReset> We can see that th

  • How to hide report background engine window

    hi i m using reports6i and when i run a report thorugh forms,reports background engine window also invoke and i want to hide that winodw .any one know how to hide report background engine or is this possibl. if so plz let me how to apply this. thnx i

  • How do you set default object settings

    I don't know how this happened but my default setting for object transparency got changed from "normal" to "color burn" (By selecting: Object - Effects - Transparency - then Color Burn or Normal) How can I switch this back so that the default is alwa

  • Any one having file upload problems via webforms for site in the Australian data center or elsewhere?

    For the last 3-4 weeks we have a web app that can longer upload largish files (e.g. 35mb PDF) via a web form Uploads no problem via SFTP. Adobe so far has provided to answers and can't reproduce the problem. Yet we (in Auckland) and our client in Wel