Enable Dropping into Empty JTables

Hi there!
I've just posted another blog on Swing Drag and Drop. Learn how to enable dropping into empty JTables with a single method call in Mustang, or a simple override in earlier versions of J2SE.
http://weblogs.java.net/blog/shan_man/archive/2006/01/enable_dropping.html
All the best,
Shannon Hickey (Swing Team)

Hi,
It looks like below bug in SQLDeveloper.
Bug 6326721: Updatable views - could not insert, update and delete as for tables.
Please close the thread, if I answered your question.
Regards,
Satishbabu Gunukula
http://oracleracexpert.blogspot.com

Similar Messages

  • I can't move photos from iPhoto to my secondary hard drive or to a burn folder.  I have never had a problem with this before.  This is something new.   They will not drop into either folder.  Nothing happens.

    I can't move photos from iPhoto to my secondary hard drive or to a burn folder.  I have never had a problem with this before.  This is something new.   They will not drop into either folder.  Nothing happens. 
    I checked my secondary harddrive and there is plenty of memory.
    I emptied my burn folder but the photos still will not drop into it.
    I created a new burn folder, no luck with this either.
    230 photos is the maximum size of the events I am trying to move from iPhoto to save elsewhere.
    I have shut down and restarted my computer.   No change. The photos still will not drop out of iPhoto.
    My Mac Computer Storage shows that I have 62.2GB free out of 249.2GB (movies, photos and contacts taking up the most space)
    My Lacie External Harddrive (2TB capacity) shows that I have 1.79TB available.  It shows that 207,729,520,640 bytes (207.73 GB on disk) are used.
    I have never had this problem before.  It is usually very easy to move my photos from iPhoto.
    I am not a computer expert (I work in surgery so don't have a need for lots of computer knowledge) so please explain in simple terms.  
    Thank you so much for any help you can provide.
    I really appreciate it.

    YES Terence!  Thank you. Exporting allowed me to move my photos from iPhoto into the Burn Folder on my desktop.   But that doesn't explain why I'm having to go that route now.   Have I done something (accidentally changed some setting) on my computer that will not allow me to just click and drag anymore?   I really liked the convenience of the click and drag option. 
    I don't have the time tonight to export and burn a lot of CD/DVDs.  I'll try that tomorrow and make sure my photos are moving properly.  I also need to export photos to my external hard drive to make sure that route is working. 
    Wouldn't you know that my Apple Care Plan runs out this Wednesday?!  I need to make sure everything is working properly before that expires. 
    Thank you so much for your help.   I really, really appreciate it.

  • Disable JTable draggable? // reimporting into a JTable?

    How do I disable the ability to drag and drop the colons of a JTable?
    I am making a database where I am importing from a file (to view, but not edit it). How can I reimport the file after I have imported it into the JTable?
    This is my code at the moment.
        public void reload()
            ArrayList<String> ve = new ArrayList<String>(9); // imports the file into an ArrayList of lines
            try
                BufferedReader reader = new BufferedReader(new FileReader(source));
                String line = null;
                while ((line = reader.readLine()) != null)
                    ve.add(line);
                reader.close();
            catch (IOException e)
                System.out.println("Error reading file.");
            ve.trimToSize();
            String [][] data = new String[ve.size()/9][];
            for(int i = 0; i < data.length; i++)
                data[i] = new String[9];
                String name = ve.get(9*i);
                data[0] = name;
    String mobile = ve.get(9*i+1);
    data[i][1] = mobile;
    String dest = ve.get(9*i+2);
    data[i][2] = dest;
    String tranOut = ve.get(9*i+3);
    data[i][3] = tranOut;
    String tranIn = ve.get(9*i+4);
    data[i][4] = tranIn;
    String adult = ve.get(9*i+5);
    data[i][5] = adult;
    String number = ve.get(9*i+6);
    data[i][6] = number;
    String dep = ve.get(9*i+7);
    data[i][7] = dep;
    String arr = ve.get(9*i+8);
    data[i][8] = arr;
    sort(data); // run quickSort
    table = new JTable(data, columnNames);
    scrollPane = new JScrollPane(table);
    }It works the first time it is run, but not when I try to call it later (from the menus).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    In future, Swing questions should be asked in the [Swing Forum.|http://forums.sun.com/forum.jspa?forumID=57]
    The header row of a JTable is really an instance of JTableHeader . Take a look at the API and see if there are any methods that would be of use. (Hint: there are!)

  • Loop audio disappears when dropped into timeline

    When I preview a loop, it sounds great. When I drag & drop into the timeline, the loop no longer has any sound. Any suggestions?

    You dragged it into the empty area of the timeline, right?
    It sounds like you don't have the instrument that this loop uses (the preview is always an audio file, while the loop itself plays on GB's software instruments). What instrument is that supposed to be? Can you create a new software instrument track and use that instrument?

  • Automatically open files when dropped into a folder

    I have a folder which has a constant stream of images being dropped into it. Is it possible for Photoshop to automatically open recently added images of a certain folder, then save (as .psd) and close to a different location?
    It would be nice for Photoshop to do this overnight as new images are being dropped into the folder.

    As a start you could read this thread.
    http://www.ps-scripts.com/bb/viewtopic.php?t=1735&postdays=0&postorder=asc&start=0

  • Wanted to put a file via a drag and drop into applications on my finder sidebar.  it missed and landed in the sidebar itself.  i can not remove it.  i can not even highlight it.  how can i remove it from the sidebar.

    I wanted to put a file via a drag and drop into applications on my finder sidebar.  it missed and landed in the sidebar itself.  i can not remove it.  i can not even highlight it.  how can i remove it from the sidebar.

    Try holding down the Command key and dragging the file well off the sidebar.
    Hope this helps.

  • How to drag image in left panel then drop into right panel??

    Dear friends.
    I have following code, it is runnable, just add two jpg image files is ok, to run.
    I tried few days to drag image from left panel then drop into right panel or vice versa, but not success, can any GUI guru help??
    Thanks.
    Sunny
    [1]. main code/calling code:
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class ImagePanelCall extends JComponent {
         public  JSplitPane ImagePanelCall() {
              setPreferredSize(new Dimension(1200,300));
              JSplitPane          sp = new JSplitPane();
              sp.setPreferredSize(new Dimension(1200,600));
              sp.setOrientation(JSplitPane.HORIZONTAL_SPLIT);
              add(sp);
              ImagePanel     ip = new ImagePanel();
              ImagePanel     ip1 = new ImagePanel();
              ip.setPreferredSize(new Dimension(600,300));
              ip1.setPreferredSize(new Dimension(600,300));
              sp.setLeftComponent(ip);// add left part
              sp.setRightComponent(ip1);// add right part
              sp.setVisible(true);
              return sp;
         public static void main(String[] args) {
              JFrame frame = new JFrame("Test transformable images");
              ImagePanelCall  ic = new ImagePanelCall();
              frame.setPreferredSize(new Dimension(1200,600));
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.getContentPane().add(ic.ImagePanelCall(), BorderLayout.CENTER);
              frame.pack();
              frame.setVisible(true);
    }[2]. code 2
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class ImagePanel extends JComponent {
         private static final Cursor DEFAULT_CURSOR = new Cursor(Cursor.DEFAULT_CURSOR);
         private static final Cursor MOVE_CURSOR = new Cursor(Cursor.MOVE_CURSOR);
         private static final Cursor VERTICAL_RESIZE_CURSOR = new Cursor(Cursor.N_RESIZE_CURSOR);
         private static final Cursor HORIZONTAL_RESIZE_CURSOR = new Cursor(Cursor.W_RESIZE_CURSOR);
         private static final Cursor NW_SE_RESIZE_CURSOR = new Cursor(Cursor.NW_RESIZE_CURSOR);
         private static final Cursor NE_SW_RESIZE_CURSOR = new Cursor(Cursor.NE_RESIZE_CURSOR);
         public Vector images;
         * Create an ImagePanel with two images in.
         * A MouseHandler instance is added as mouse listener and mouse motion listener.
         public ImagePanel() {
              images = new Vector();
              images.add(new TransformableImage("swing/dnd/Bird.gif"));
              images.add(new TransformableImage("swing/dnd/Cat.gif"));
              setPreferredSize(new Dimension(600,600));
              MouseHandler mh = new MouseHandler();
              addMouseListener(mh);
              addMouseMotionListener(mh);
         * Simply paint all the images contained in the Vector images, calling their method draw(Graphics2D, ImageObserver).
         public void paintComponent(Graphics g) {
              Graphics2D g2D = (Graphics2D)g;
              for (int i = images.size()-1; i>=0; i--) {     
                   ((TransformableImage)images.get(i)).draw(g2D, this);
         * Inner class defining the behavior of the mouse.
         final class MouseHandler extends MouseInputAdapter {
              private TransformableImage draggedImage;
              private int transformation;
              private int dx, dy;
              public void mouseMoved(MouseEvent e) {
                   Point p = e.getPoint();
                   TransformableImage image = getImageAt(p);
                   if (image != null) {
                        transformation = image.getTransformation(p);
                        setConvenientCursor(transformation);
                   else {
                        setConvenientCursor(-1);
              public void mousePressed(MouseEvent e) {
                   Point p = e.getPoint();
                   draggedImage = getImageAt(p);
                   if (draggedImage!=null) {
                        dx = p.x-draggedImage.x;
                        dy = p.y-draggedImage.y;
              public void mouseDragged(MouseEvent e) {
                   if (draggedImage==null) {
                        return;
                   Point p = e.getPoint();
                   repaint(draggedImage.x,draggedImage.y,draggedImage.width+1,draggedImage.height+1);
                   draggedImage.transform(p, transformation,dx,dy);
                   repaint(draggedImage.x,draggedImage.y,draggedImage.width+1,draggedImage.height+1);
              public void mouseReleased(MouseEvent e) {
                   Point p = e.getPoint();
                   draggedImage = null;
         * Utility method used to get the image located at a Point p.
         * Returns null if there is no image at this point.
         private final TransformableImage getImageAt(Point p) {
              TransformableImage image = null;
              for (int i = 0, n = images.size(); i<n; i++) {     
                   image = (TransformableImage)images.get(i);
                   if (image.contains(p)) {
                        return(image);
              return(null);
         * Sets the convenient cursor according the the transformation (i.e. the position of the mouse over the image).
         private final void setConvenientCursor(int transfo) {
              Cursor currentCursor = getCursor();
              Cursor newCursor = null;
              switch (transfo) {
                   case TransformableImage.MOVE : newCursor = MOVE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_TOP : newCursor = VERTICAL_RESIZE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_BOTTOM : newCursor = VERTICAL_RESIZE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_LEFT : newCursor = HORIZONTAL_RESIZE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_RIGHT : newCursor = HORIZONTAL_RESIZE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_TOP_LEFT_CORNER : newCursor = NW_SE_RESIZE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_TOP_RIGHT_CORNER : newCursor = NE_SW_RESIZE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_BOTTOM_LEFT_CORNER : newCursor = NE_SW_RESIZE_CURSOR;
                        break;
                   case TransformableImage.RESIZE_BOTTOM_RIGHT_CORNER : newCursor = NW_SE_RESIZE_CURSOR;
                        break;
                   default : newCursor = DEFAULT_CURSOR;
              if (newCursor != null && currentCursor != newCursor) {
                   setCursor(newCursor);
         public static void main(String[] args) {
              JFrame frame = new JFrame("Test transformable images");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.getContentPane().add(new ImagePanel(), BorderLayout.CENTER);
              frame.pack();
              frame.setVisible(true);
    }[3]. code 3
    import java.awt.*;
    import javax.swing.*;
    import java.awt.image.*;
    public final class TransformableImage extends Rectangle {
         public static final int MOVE = 0;
         public static final int RESIZE_TOP = 10;
         public static final int RESIZE_BOTTOM = 20;
         public static final int RESIZE_RIGHT = 1;
         public static final int RESIZE_LEFT = 2;
         public static final int RESIZE_TOP_RIGHT_CORNER = 11;
         public static final int RESIZE_TOP_LEFT_CORNER = 12;
         public static final int RESIZE_BOTTOM_RIGHT_CORNER = 21;
         public static final int RESIZE_BOTTOM_LEFT_CORNER = 22;
         public static final int BORDER_THICKNESS = 5;
         public static final int MIN_THICKNESS = BORDER_THICKNESS*2;
         private static final Color borderColor = Color.black;
         private Image image;
         * Create an TransformableImage from the image file filename.
         * The TransformableImage bounds (inherited from the class Rectangle) are setted to the corresponding values.
         public TransformableImage(String filename) {
              ImageIcon ic = new ImageIcon(filename);
              image = ic.getImage();
              setBounds(0,0,ic.getIconWidth(), ic.getIconHeight());
         * Draw the image rescaled to fit the bounds.
         * A black rectangle is drawn around the image.
         public final void draw(Graphics2D g, ImageObserver observer) {
              Color oldColor = g.getColor();
              g.setColor(borderColor);
              g.drawImage(image, x, y, width, height, observer);
              g.draw(this);
              g.setColor(oldColor);
         * Return an int corresponding to the transformation available according to the mouse location on the image.
         * If the point p is in the border, with a thickness of BORDER_THICKNESS, around the image, the corresponding
         * transformation is returned (RESIZE_TOP, ..., RESIZE_BOTTOM_LEFT_CORNER).
         * If the point p is located in the center of the image (i.e. out of the border), the MOVE transformation is returned.
         * We allways suppose that p is contained in the image bounds.
         public final int getTransformation(Point p) {
              int px = p.x;
              int py = p.y;
              int transformation = 0;
              if (py<(y+BORDER_THICKNESS)) {
                   transformation += RESIZE_TOP;
              else
              if (py>(y+height-BORDER_THICKNESS-1)) {
                   transformation += RESIZE_BOTTOM;
              if (px<(x+BORDER_THICKNESS)) {
                   transformation += RESIZE_LEFT;
              else
              if (px>(x+width-BORDER_THICKNESS-1)) {
                   transformation += RESIZE_RIGHT;
              return(transformation);
         * Move the left side of the image, verifying that the width is > to the MIN_THICKNESS.
         public final void moveX1(int px) {
              int x1 = x+width;
              if (px>x1-MIN_THICKNESS) {
                   x = x1-MIN_THICKNESS;
                   width = MIN_THICKNESS;
              else {
                   width += (x-px);
                   x = px;               
         * Move the right side of the image, verifying that the width is > to the MIN_THICKNESS.
         public final void moveX2(int px) {
              width = px-x;
              if (width<MIN_THICKNESS) {
                   width = MIN_THICKNESS;
         * Move the top side of the image, verifying that the height is > to the MIN_THICKNESS.
         public final void moveY1(int py) {
              int y1 = y+height;
              if (py>y1-MIN_THICKNESS) {
                   y = y1-MIN_THICKNESS;
                   height = MIN_THICKNESS;
              else {
                   height += (y-py);
                   y = py;               
         * Move the bottom side of the image, verifying that the height is > to the MIN_THICKNESS.
         public final void moveY2(int py) {
              height = py-y;
              if (height<MIN_THICKNESS) {
                   height = MIN_THICKNESS;
         * Apply a given transformation with the given Point to the image.
         * The shift values dx and dy are needed for move tho locate the image at the same relative position from the cursor (p).
         public final void transform(Point p, int transformationType, int dx, int dy) {
              int px = p.x;
              int py = p.y;
              switch (transformationType) {
                   case MOVE : x = px-dx; y = py-dy;
                        break;
                   case RESIZE_TOP : moveY1(py);
                        break;
                   case RESIZE_BOTTOM : moveY2(py);
                        break;
                   case RESIZE_LEFT : moveX1(px);
                        break;
                   case RESIZE_RIGHT : moveX2(px);
                        break;
                   case RESIZE_TOP_LEFT_CORNER : moveX1(px);moveY1(py);
                        break;
                   case RESIZE_TOP_RIGHT_CORNER : moveX2(px);moveY1(py);
                        break;
                   case RESIZE_BOTTOM_LEFT_CORNER : moveX1(px);moveY2(py);
                        break;
                   case RESIZE_BOTTOM_RIGHT_CORNER : moveX2(px);moveY2(py);
                        break;
                   default :
    }

    I gave you a simple solution in your other posting. You never responded to the suggestion stating why the given solution wouldn't work, so it can't be that urgent.

  • Why cant I drag and drop into playlists

    I used to be able to drop and drag inrto playlists. Now I get a message which says press + button to add, but there seems no way of doing it. I'm using windows 7

    Apple Support Communities updatesI’ve tried the control-I route and then tried to locate the file without success. What I get as a file location starts with //localhost/C:/Users. It may also be useful to know that most/all the missing files seem to have been copied from CDs. I can’t be sure if it’s all because the whole music file has nearly 9000 entries! The ones that still seem to work were copied from an external hard drive.
    From: Apple Support Communities Updates
    Sent: Wednesday, April 01, 2015 7:30 PM
    To: couffin
    Subject: - why cant I drag and drop into playlists
                                                                                    You received a reply 
                                    turingtest2 has replied to your question. You can view the full discussion in Apple Support Communities.                                                                                
    why cant I drag and drop into playlists 
                                    The "missing file" error happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, one of its parent folders, or the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout, or vice-versa, and so is looking in slightly the wrong place. (In the case of a library moved from one system to another there are also potential permissions issues. See Repair security permissions for iTunes for Windows if this might apply.)
                                    Select a track with an exclamation mark, use Ctrl-I to Get Info, then click No when asked to try to locate the track. (Due to a bug in iTunes 12 you currently have to say No twice!) Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, a folder renamed, or a drive letter has changed, it should be possible to reverse the actions. If the difference between the two paths is an additional Music folder in one path then this is a layout issue. I can explain further if that is the case.
                                    In some cases iTunes may be able to repair itself if you go through the same steps with Get Info but this time click Locate and browse to the lost track. It may then offer to attempt to automatically fix other broken links. Although it says something like "use the same location" it expects to find the tracks in the same artist & album layout that it generates, not all in one big folder.
                                    If another application like Windows Media Player has moved/renamed the files then the chances are that subtle differences in naming strategies will make it hard to restore the media to the precise path that iTunes is expecting. In such cases, as long as the missing files can be found somewhere, you should be able to use my FindTracks script to reconnect them to iTunes. See this post for an explanation of how it works.
                                    tt2
                                                                                    Correct Answer Helpful Answer 
                                  Use the buttons above to tell turingtest2 and the rest of the community if this reply solved your question or helped you get closer to finding a solution. 
                                  To reply to turingtest2, go to the discussion in Apple Support Communities. 
                                  You are receiving this email from Apple Support Communities. You can change your email preferences in your Apple Support Communities Profile. 
                                  TM and copyright © 2014 Apple Inc. 1 Infinite Loop, MS 96-DM. Cupertino, CA 95014. 
                                  All Rights Reserved | Privacy Policy | Terms of Use | Apple Support

  • How do I set up the XCode Debugger so that it does not drop into asm?

    How do I set up the XCode Debugger so that it does not drop into asm?
    I want to step through my Cocoa Objective-C code and I do not want to see the underlying assembly. When I hit step over, I want it to step to my next line of objective-C code, not to the next assembly language statement.
    99+% of the time, I want to do high level debugging. Don't you?

    I solved my own problem almost immediately after I posted it.
    You use Debug>Toggle Disassembly Display.
    It puts a check mark to drop into assembly, no check mark for no assembly (my choice) and a dash (NSMixedState) for both. It's obvious now.
    Sometimes it can be vexing to find simple XCode features quickly.

  • How to enable commenting into pdf files using java?

    Hi All,
    Is there any way available to enable comments into pdf files through java. I have a Adobe Reader 9 and also I want put some comments into pdf file, but the reader is not allowed to place a comment into pdf file before enabling the Comments into pdf. After enabling the comments in pdf file then only we can place the comments and we can the pdf file with comments.
    Is there any way available to enable comments into pdf file to view acrobat reader.
    Thanks in advance.

    The end user who uses the web application has Acrobat installed in their mahcine needs it only for the purpose of enabling comments in pdf. If this task of enabling comments in pdf is done through my application there is no need for acrobat in such user's machine which was requested as a cost cuttnig measure.
    For this purpose, i need to know about how to enable comments in pdf through java api.
    I have used itext java api for other pdf related manipulation in java. But it does not have feature as per the requirement posted above. Can any body suggest relevant java api to achieve the task requested?
    Tahnks in Advance.

  • Can't drag and drop into Folder

    Greetings... i have been happily going along using iPhoto (6) on a fairly basic level making folders and dragging and dropping but suddenly its changed, i can now only drag and drop into albums.
    I will create a folder but can't move anything into it.
    This seemed to happen after iPhoto asked would i like things sorted to make it work better , i can't remember the exact wording,i clicked yes and at some point realised my folders had changed to albums into which i can drag and drop but use of folders is now denied.
    I would like to know what is going on and why i can no longer do such a simple thing as move photos into a folder.
    I have tried using different names for folders from the albums so there wouldn't be confusion but nothing has worked.

    Thank you for this answer. I don't have an adequate explanation for why i couldn't remember how things operated on iPhoto. I had been using it successfully for some time but then didn't go into it for a few weeks and obviously had forgotten what i seemed to know earlier on. I created new folders and from there found it didn't work and was puzzled. Thought i had used folders before but i couldn't have or had overcome the problem by myself at that time.

  • A iPhone 4S (currently in possession of it) was dropped into the ocean and we can get it into DFU and recovery mode, but we can't get it to go to the lock screen or home screen the phone just gets stuck on the apple symbol, how can I fix this?

    Hey, apparently this iPhone 4S was dropped into the ocean and the light for the camera and a light where the 3G/4G bar is are both glowing. The iPhone 4S, I assume, was on iOS 5.1.1 I need help getting off info from it WITHOUT RESTORING IT. I'm not sure if Apple has any third party apps that they are allowed to suggest to us or if I'm on my own on this one, but if you guys can help I would greatly apperciate it.
    Thanks!

    Those are definitely features of liquid damage. First step after completely drying the iPhone would be battery replacement. The camera circuitry and proximity sensor circuitry are surging because you are seeing these lights.
    New battery may get this booted back up so you can recover data, or even get the iPhone working again.

  • UWL Task is not dropped into uwl task .

    Dear gurus,
    In ess i am applying leave and this will available under task list of  manager after 1st approval it is not dropping into task for 2nd level approval, please guide me to proceed.
    Thanks & regards,
    smruti ranjan moharana

    Hi Smruti,
    Have you customised the standard leave request workflow in the backend?
    Standard leave approval workflow is one level one.
    Check in the backend and look for the worklfow log and see what happened after 1st level approval has been done.
    Go to SE38--->give program name as RPTARQDBVIEW and then give the personnel number and leave request date as input.
    Press F8 and it will show the leave requests you have raised.
    Then check the workflow log and let me know what happened over there.
    Take help of workflow consultant if you need.
    Cheers,
    Raja.D

  • Drag and Drop between two JTables

    I tried to implement drag and drop between two JTables using data transfer, but i did not get it to work, that dnd works in both directions. i have my own transferhandler, but if is use setTransferHandler(handler), i'm no longer able to start a drag from that table. i also tried to use a mouse listener to call exportAsDrag, but i only works in one direction. any ideas or examples?

    That is a rather large request, and indicates that you have likely not spent much time researching the subject before posting. Read up on Swing drag & drop here (http://java.sun.com/docs/books/tutorial/dnd/), then ask specific questions about something you don't understand, problems with your implementation, etc.
    Mike

  • Drag and drop from/to JTable

    Hi,
    I am trying to implement drag and drop between two JTables. I have two questions about this and I hope you can help me.
    1. I would like to prevent the user from droping an Object in the same JTable as the object came from in the first place. How can I do that?
    2. How can I drop an Object in a JTable if there isn�t any rows in the table?
    I am using jdk 1.4.
    Thanks!!!
    :-)Lisa

    I think you just use setDragEnabled(true) on both tables.
    If not, then maybe this link will help:
    http://java.sun.com/docs/books/tutorial/uiswing/misc/dnd.html

Maybe you are looking for

  • Data usage in BlackBerry Curve 9380

    I am on a 250Mb allowance contract but don't know how to check how much data I have used so far. I am on Orange and I spoke to an advisor who said its best to reset the counter every month but I cant seem to find the counter. Any help??

  • Imac 10.5 and MacBook Pro 10.4.11

    Hello, i just bought an imac 10.5 and i try to transfer with the firewire cable all my previous data from my macbook pro (10.4.11) and imac doesn't recognize my lapetop telling that there's no mac OS X on it ! How can i manage that ? Thanks in advanc

  • Aperture Crashing when making book

    Since updating to the latest release of Aperture, I've noticed it has gotten a bit freeze-prone. Working on a new book today, I've had to force quit 7 times in the last 3 hours. Thank god for Aperture saving as I go along. Has anyone else noticed thi

  • EVGTS #RFR

    Hi experts! I have a problem - sometimes EVGTS returns #RFR instead of value. What's wrong? Is it possible resolve this problem without redesign of report? Do you know any steps to improve performance? I checked this report on workstation which has a

  • HT3311 How to resubmit a podcast feed after being denied

    My feed was declined I think because it didn't have artwork, it does now and i have tested it on the validator.  But iTuns says the feed has already been submited.  How do i resubmit?