Regarding DefaultTableCellRenderer &Drag-Drop

I am developing a grid applet which has functions for dragging a cell value from a JTable and setting it in another JTable which uses DefaultTableCellRenderer for displaying values.I am using
public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected, boolean hasFocus, int row,int column) and setValue(..).The problem i am facing now is I am able to drag successfully but I am not being able to pass the value being dragged to the above function.The above function is called implicitly when the mouse moves over the table being rendered.For both the JTables,I am populating directly from the db and has to update the tables after the dragging and dropping is over.....Please help me out!

hi,
I got the answer the question to the question I posted.......TableCellRenderer really an interesting topic!!!!

Similar Messages

  • BW Report iView Drag&Drop

    We have configured a BW Report iView.  The report appears to be generated correctly.  However, drag & drop functionality does not seem to be available.  When using the URL iView, the drag & drop is supported.
    Appreciate if you could advise how to make drag & drop work when using BW Report iView.  Thanks.

    Hi Raja,
    When I execute the query as stated by you i.e; query designer and then by clicking on the display query on the web(ctrlshiftw) button it takes me to aol's search engine
    Alternatively when I uncheck the show friendly http error messages and preview the iview it throws the following error
    The following error occurred:
    Could not connect because of networking problems. Contact your system administrator. (CANT_CONNECT)
    Please contact the administrator.
    I have checked all connection properties and the test connections - Connection Test for Connectors connects successfully as well.
    Where could the problem be? Is there any other way of excuting the query on IE?
    Thanks in advance.
    Best regards,
    Divya Rao

  • Windows Storage Server 2008 - unzip with drag & drop from Windows 7 client fails

    Hello.
    As i asked this question in German and got no answer so i try it in English now.
    I have the following problem:
    We have a Windows SBS 2008, where we store our files. If somebody opens a ZIP-file on a network share from a Windows 7 Client (64 Bit) it is possible to drag & drop the content (multiple files) to a directory. So far everything works as expected.
    We now have an additional Windows Storage Server 2008 integrated in our domain (Buffalo Tera Station WS-QV8/R5), where we also store files. If somebody opens the same ZIP-file on a network share of this server from a Windows 7 Client and tries to drag &
    drop the content the following happens:
    1. only one file is extracted and to display the file a refresh of the explorer view is needed.
    2. when the drag & drop action is repeated a second file is extracted
    Not alle files are extracted and there is no error message or indication why this happens.
    The behaviour is reproducible from another Windows 7 Client (32 Bit).
    If we try to drag & drop the files from the ZIP-file on the Windows Storage Server network sahre to a directory on the SBS network share all files are extracted correctly.
    On the Windows Storage Server itself all files are extracted without problmems. Therefore it must be a problem with the combination of Windows Storage Server und Windows 7 Client accessing the files via network shares.
    Are there any ideas where this problem could be located? Has anybody the same phenomenon and maybe a solution for it?
    Thanks in advance
    Michael Pruss

    Hi Michael,
    Thank you for clarifying the issue for us.
    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
    Thank you for your understanding and support.
    Regards
    Kevin
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback
    on our support quality, please send your feedback here.
     

  • Drag&drop columns no longer works for selected columns in EA3

    Hi
    drag&drop from navigator to build select statements in EA3 uses all columns of the tabl instead of the selected ones!
    Best regards
    Joe

    It's working for me in our current dev build, if it's broken in EA3, it's since been fixed.

  • Drag & Drop on singleCell in Advanced Datagrid

    Hi There
    Is it posible to make a "Exel" like flex app where you drag from one cell to another cell to organise you data ?
    Regards
    T

    Hello Cedric,
    I'm sorry but I had the confirm from people at NI France support that you can't trigger an event drag&drop on the whole XCTL.
    You can only trigger this kind of event concerning individual controls inside the XCTL. It trigger the event structure in "facade.vi". from there if you can get a queue to communicate between the xctl and the containing VI, you can get your state machine doing the event you want (with a producer-consumer structure).
    It's not perfect but it is the only workaround we found at Nerys.
    Sebastien DEVISSCHER - Nerys

  • Webdynpro ABAP layouteditor:Can't drag&drop UIelements from toolbar to view

    Hi there,
    i have a problem with the Webdynpro for ABAP layout editor in SE80. When i'm editing a view, i see the UI elemnts toolbar, but i cannot "drag&drop" any elemet of the toolbar to the view, it'S only possible to add elements using right click on rootuielementcontainer.
    Does anybody has an idea what could be wrong?
    I have SAP Netweaver Release 702 SP 8 and using SAP GUI 710 (Level 22).
    regards
    Steffen

    Shut off include photos from subitems.
    This exact question was answered yesterday.

  • How to move items? Drag & Drop but i couldn't move to extreme right

    Hi All,
    We have one Select List and Button, i want to move both the items to right of the region...,I tried using Drag & Drop but i couldn't move to extreme right..
    What i need to do?
    Pls help me in this regard,
    Thanks,
    Anoo..

    Hi Anoo,
    The layout of items on your page depends on the region template used, and also the attributes of the item e.g. the Horizontal/Vertical Alignment of the Element and Label; the value of ColSpan, RowSpan, etc. By making some small tweaks to your existing region template or item attributes, you can achieve the desired layout. For example, lets say you're working with the "Form Region" HTML region. You can easily modify this template to display the standard cells of the table to the right instead of left, by changing the alignment in the <td> tags, using align="right". This will result in all items being positioned to the right of a region using this template.
    You may find it useful to refer to the following related threads on the Application Express forum, which discuss the same topic:
    Re: Layout form items
    Items positioning
    Re: Create a free form Report
    I hope this helps.
    Regards,
    Hilary

  • Drag Drop based Report Builder

    Hello to all
    I want to create a report builder that will create report with drag drop operation. Can any one give me an idea or example that will help me a lot.
    With Regards
    Preet
    Edited by: socmag_Java_developer on Apr 17, 2009 3:27 AM

    Hi
    I've just resolved a similar problem in Visual Studio whereby I had created a matrix with several columns and wanted to show each column as an overall percentage of each row.
    It wasn't in sharepoint, but it may give you an idea of where to look to help you resolve this issue?
    Basically, you have to tell the formula which set of data you want to add together to use as the number to do the divison by:
    For example:
              |Column1| Column 2 | Column 3 |
    Row 1  |     10    |     10       |     10       |
    Row 2  |     10    |      10      |     20       |
    If we assume we want to add the numbers in row 1 and show them as a percentage, we would expect to see 33% across all columns.  In row 2, we would expect to see 25%, 25% and 50%.  The formula to do this is:
    Sum(Field)/Sum(Field,"RowGroupName")
    It works in Visual Studio in a report matrix - hope it helps point you in the right direction for Sharepoint?
    Regards
    Kaz

  • Drag-drop data column sorting

    Hey guys,
    Does any one know how to achieve drag-drop data column
    sorting? I tried, but could not find an efficient way to do this.
    It would be an awesome spry feature if possible, but if someone
    else knows how to do this already it would help.
    Thanks,
    Timothy D Farrar

    Hey guys,
    We aim to be as compatible as possible with the other
    frameworks but sometimes problem may exists. We need to see the
    crashing pages to be able to determine the causes for the JS error
    message and where the incompatibilities are located and either fix
    the problems or help you to change your pages to work.
    In this situation I suspect the issue appears because the
    spry region is generated after the drag and drop code from the
    script.aculo.us is instantiated and we destroy the initial elements
    to which this widget is binded. In this situation the solution is
    to instantiate the drag and drop after the region generate its
    content by using the region observers. You'll have to put the drag
    and into a separated function and register the code so the region
    will call it automatically onPostUpdate.
    We include in our documentation more details about the
    Region
    observer notifications. Please search the dedicated chapter
    inside this doc: "Region observer notifications"
    Regards,
    Cristian MARIN

  • Drag/Drop "Numbered Stills" from Explorer into Project?

    I only get individual stills when I drag a folder from Explorer into a project.  Is there a way to tell Premiere to import as numbered stills (ie a sequence) when using drag/drop?
    Thanks.

    Yes, there is an Adobe way that is MUCH better, but it is not exactly a Premiere Pro way
    1) Using Adobe Bridge, put all of your stills in the order that you want them to show in Premiere
    2) Select all photos and do a right-click "batch rename" (set to make a copy of all photos with 001 002 003 numbers in front of each file name in an empty sub-directory)
    3) Import the whole "folder" (that you just "batch rename" copied the photos into) using the "import folder" option
    Hope this works for your "workflow" as well as it does for mine.
    Regards,
    Jim

  • IC Agent mails attachment - Drag & Drop the file from local/desktop into mailform

    Dear Gurus,
    Please help me regarding the following it's urgent please!
    We have implemented the Interaction Center, in that we have one requirement, where uses/agents wants to attach/upload the file using drag & drop (mouse) method. The standard process is there will be an attachment block where we have button called browse, using this we can attache a file. Please suggest me is there any standard option/configuration to do this, if no standard way at least guide me how to achieve this using technical expertise.
    Thank you very much and Regards,
    Niranjan

    Hi Niranjan,
    Up to my understanding, SAP is working on this requirement of bringing the drag and drop upload functionality. You can find more information in the below link.
    You Asked for it, SAP Delivers: Twenty-Four (24) Cool New CRM Enhancements!
    Regards,
    karthi M R.

  • Strange Problem Drag & Drop Between Lists

    In the following code, drag & drop is set to copy objects, but when more than one instance of an item exists, only the last item (highest data provider index) item can be selected. Any idea why this is happening, and how to correct this?
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      creationComplete="init();">
      <mx:Script>
        <![CDATA[
          import mx.collections.ArrayCollection;
          [Bindable] private var srcAC:ArrayCollection = new ArrayCollection();
          [Bindable] private var destAC:ArrayCollection = new ArrayCollection();
          private function init():void{
            srcAC = new ArrayCollection(['Fish', 'Meat', 'Chicken']);
            destAC = new ArrayCollection();
          private function displayData():void{
            trace("****************************************");
            trace("menuList dataProvider:");
            for each(var srcItem:Object in srcAC){
              trace("\t" + srcItem.toString());
            trace("----------------------------------------");
            trace("orderList dataProvider:");
            for each(var destItem:Object in destAC){
              trace("\t" + destItem.toString());
        ]]>
      </mx:Script>
      <mx:HBox>
        <mx:VBox>
          <mx:Label text="Today's Menu" fontWeight="bold" fontSize="14"/>
          <mx:List id="menuList" width="200" dataProvider="{srcAC}"
            dragEnabled="true" dropEnabled="true" dragMoveEnabled="false"
            allowMultipleSelection="true" fontSize="14"/>
        </mx:VBox>
        <mx:VBox>
          <mx:Label text="Your Order" fontWeight="bold" fontSize="14"/>
          <mx:List id="orderList" width="200" dataProvider="{destAC}"
            dragEnabled="true" dropEnabled="true" dragMoveEnabled="false"
            allowMultipleSelection="true" fontSize="14"/>
        </mx:VBox>
      </mx:HBox>
      <mx:Button id="b1" label="Reset Order" click="init();"/>
      <mx:Button label="Display Data Providers" click="displayData();"/>
    </mx:Application>

    Hello
    Actually I have also face this problem in one of my appliocation so have done some work arround for that.
    If we use object of ArrayCollection as 'key-value' (like- {label:'Fish'} ) pair than it work fine.
    srcAC = new ArrayCollection([ {label:'Fish'},{label:'Meat'},{label:'Chicken'}]);
    In case of
    srcAC = new ArrayCollection(['Fish', 'Meat', 'Chicken']);
    If we drop same item two times than list is not identify unique item of the list
    and if we use objet like- {label:'Fish'} than every item is unique for list.
    I m not sure this is right or not but it works fine.
    Also we need to set 'labelField' of list as per object.
    With Regards
    Virat Patel

  • Drag&Drop - how to change cursor?

    Hi,
    I know how to use Drag&Drop but I have two problems:
    1. I would like to have my icon displayed right next to the system's default cursor during dnd operation instead of displaying my icon only. How can I achieve this?
    2. when I use my own image as cursor during dnd operation, the size of the cursor is incorrect. It's supposed to have 24x24 pixels but it gets displayed in a different size. The ImageIcon still has 24x24 pixels, but the cursor is wrong.
    Thanks a lot!
    Regards,
    Ren�
    ImageIcon copyIcon = new ImageIcon("c:\\tmp\\drag_copy.gif");
    System.err.println(copyIcon.getIconWidth() + "; " + copyIcon.getIconHeight());
    copyCursor = Toolkit.getDefaultToolkit().createCustomCursor(
    copyIcon.getImage(), new java.awt.Point(0, 0), "I30COPY");
    e.startDrag(copyCursor, new StringSelection("DRAGITEM"), this);

    I just found a solution right here:
    http://www.javaworld.com/javaworld/javatips/jw-javatip114.html

  • Drag Drop Event

    Hello All,
    Can I trap the Drag and Drop event of a file from desktop through Scripting for Adobe Bridge.
    Thank you all in advance.
    Regards
    Farzana.

    I haven't seen such an event available to the scripts. I have an event handler and when I turned on my own logging to output all the events that I see, I didn't see any drag/drop events when I tried that operation. That doesn't mean there isn't someother way to do this, but it wasn't obvious to me through normal event handling.
    --John

  • Icon for Drag&Drop

    hello,
    does anybody known or has anybody a special icon for Drag&Drop (something like copy or delete icons) ?
    thank yuo very much for each answer!
    regards,
    Joana

    Try looking in jre/lib/images/cursors

Maybe you are looking for