Mouse detecting object component

I'm writting an applet in which there're 3 objects(same class) on the screen, when I clicked and dragged the object, it'll move along with the mouse. I'm having trouble to let the mouse recognise which object it is clicked and dragged. Can anyone please help me? I'm new to Java and I need to slove this problem as soon as I can. Thanks!

You didn't say what kind of objects you are trying to move. Looking at your earlier threads it appears you were working with graphics (as opposed to components like Panels or Labels). Here's an example of detecting and moving graphic shapes in the AWT. Swing is a little easier to do this in because of the double buffering. I made it so you can run it in either j2se 1.4 or the newer 1.5 (which requires generics).
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.*;
import java.util.*;
import java.util.List;
import javax.swing.event.MouseInputAdapter;
public class Detection
    public Detection()
        DetectionPanel detectionPanel = new DetectionPanel();
        Detector detector = new Detector(detectionPanel);
        detectionPanel.addMouseListener(detector);
        detectionPanel.addMouseMotionListener(detector);
        Frame f = new Frame();
        f.addWindowListener(new WindowAdapter()
            public void windowClosing(WindowEvent e)
                System.exit(0);
        f.add(detectionPanel);
        f.setSize(400,400);
        f.setLocation(200,200);
        f.setVisible(true);
    public static void main(String[] args)
        new Detection();
class DetectionPanel extends Panel
    List <RectangularShape> shapes;                                     // j2se 1.5
    // List shapes;                                                     // j2se 1.4
    boolean firstTime;
    public DetectionPanel()
        shapes = new ArrayList<RectangularShape>();                     // j2se 1.5
        // shapes = new ArrayList();                                    // j2se 1.4
        firstTime = true;
    public void paint(Graphics g)
        super.paint(g);
        Graphics2D g2 = (Graphics2D)g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                            RenderingHints.VALUE_ANTIALIAS_ON);
        if(firstTime)
            initShapes();
        for(int j = 0; j < shapes.size(); j++)
            g2.draw(shapes.get(j));                                     // j2se 1.5
            // g2.draw((RectangularShape)shapes.get(j));                // j2se 1.4
    private void initShapes()
        int w = getWidth();
        int h = getHeight();
        int dia = Math.min(w,h)/4;
        shapes.add(new Rectangle(2*w/3, 2*h/3, dia, dia));
        shapes.add(new Ellipse2D.Double(w/4 - dia/2, h/3 - dia/2, dia, dia));
        firstTime = false;
    public void moveShape(int index, int x, int y)
        RectangularShape rs = shapes.get(index);                        // j2se 1.5
        // RectangularShape rs = (RectangularShape)shapes.get(index);   // j2se 1.4
        Rectangle clip = new Rectangle();
        clip.x = (int)(x < rs.getX() ? x : rs.getX());
        clip.y = (int)(y < rs.getY() ? y : rs.getY());
        clip.width  = (int)(clip.x + rs.getWidth());
        clip.height = (int)(clip.y + rs.getHeight());
        rs.setFrame(x, y, rs.getWidth(), rs.getHeight());
        repaint(clip.x, clip.y, clip.width, clip.height);
    public List<RectangularShape> getShapes()                           // j2se 1.5
    // public List getShapes()                                          // j2se 1.4
        return shapes;
class Detector extends MouseInputAdapter
    DetectionPanel detectionPanel;
    int selectedIndex;
    Point offset;
    boolean dragging;
    public Detector(DetectionPanel dp)
        detectionPanel = dp;
        offset = new Point();
        dragging = false;
    public void mousePressed(MouseEvent e)
        Point p = e.getPoint();
        List<RectangularShape> list = detectionPanel.getShapes();       // j2se 1.5
        // List list = detectionPanel.getShapes();                      // j2se 1.4
        for(int j = 0; j < list.size(); j++)
            RectangularShape rs = list.get(j);                          // j2se 1.5
            // RectangularShape rs = (RectangularShape)list.get(j);     // j2se 1.4
            if(rs.contains(p))
                offset.x = (int)(p.x - rs.getX());
                offset.y = (int)(p.y - rs.getY());
                dragging = true;
                selectedIndex = j;
                break;
    public void mouseReleased(MouseEvent e)
        dragging = false;
    public void mouseDragged(MouseEvent e)
        if(dragging)
            int x = e.getX() - offset.x;
            int y = e.getY() - offset.y;
            detectionPanel.moveShape(selectedIndex, x, y);
}

Similar Messages

  • Detecting object component

    I'm writting an applet in which there're 3 objects(same class) on the screen, when I clicked and dragged the object, it'll move along with the mouse. I'm having trouble to let the mouse recognise which object it is clicked and dragged. Can anyone please help me? I'm new to Java and I need to slove this problem as soon as I can. Thanks!

    It would greatly help with some source code :D
    But anyway, here is one solution:
    If you add a x and y variable into each class and make the mouseDragged event change these variables.
    Then you could use
    p1.setLocation(p1.x, p1.y);or maybe even from inside the class
    setLocation(x, y);

  • How to detect object being touched or not in kinect

    Dear all,
    i am new bie to kinect programming. i want to build application where camera can detect object touched or not.consider 3 object are placed on table like in set book ; remote & MOUSE . whenever object being picked i wanted to increment paricular item
    being counted up. if object kept back count remain same. 
    Is it possible to check which object being touched?? & increment the count in the particular item section.
    if moused picked once increment mount count value by 1 & display on screen.let me know how can i do usinf kinect sensor.
    AMPS12

    Kinect itself does not provide any type of object recognition. There are third party libraries and tools that you may want to look into that can do that. Kinect will only provide you depth and color information of what the camera sees. We have a body tracking
    system so we know where people are. Based on that and if you define target areas, you may be able to deduce things.
    Carmine Sirignano - MSFT

  • Detecting object in images

    Hi,
    how can I detect objects in images using java ?
    I need to detect movements of an object in consecutive images exported from a video.
    thank you

    use PixelGrabber to record a grid of colors then store it in a 2D array and with the next image get another 2D array of colors from the picture and compare the two arrays to see which part of the grid changed. You still will not have a way to tell the difference from the place were the object was and the color of the current object unless you had a image of the place room screen or what ever it is without objects and compared all other images to that one.

  • Wireless keyb mouse detected but won´t pair.

    Im on a Imac 27 inch from feb 2010, running OSX 10.6.7. Just updated all software (after the problem existed, thus the update did not cause the problem).
    I´ve had some bad experience with particularly the mouse disconnecting/connecting again in a rather annoying way. The answer I got from Apple support about a year ago was to keep fresh batteries in the devices and it should work.
    Suddenly my keyboard and mouse stopped working....this is what I´ve donw in my attempts to fix it:
    - tried both devices on a Imac at the local Mac store, both connected and paired just fine.
    - changed the batteries on both devices
    - of course made sure Bluetooth is on and in detectable mode on my Imac
    - repaired permissions
    - trashed the bluetooth prefs...(com.apple.Bluetooth.plist)
    - turning off any other bluetooth device within 10 meter
    Now, my Imac detects both the mouse and the keyboard but won´t pair with them. Also, what sometimes happens is that the computer after like 2 seconds don´t see the keyboard/mouse no more. If I go to system/keyboard and then press "Settings for Bluetooth keyboard" in the lower right corner (I´m on a Swedish Imac so I´m not 100% sure what it says in english but I hope you understand), it will detects "Peters Keyboard" then I press continue to pair it and then it dissapears....very strange. Sometimes the Imac asks me to enter a 8 digit code for the pairing to work, but after doing so it´s still not working.
    Very very strange behaviour and I don´t know what to do. Unfortunately re-installing OSX is not an option right now, but I would be so glad if someone could give me some hints on stuff to try out. Can I delete the  Bluetooth driver and associated files in some way? I do have a USB mouse, however no USB keyboard.
    Many thanks in advance
    Peter Sjostrom

    Can you at least right-click?

  • Update to nvidia 304.x - Mouse detected but frozen

    I updated my system to the latest Nvidia drivers
    local/lib32-nvidia-utils 304.43-1
    NVIDIA drivers utilities and libraries. (32-bit)
    local/nvidia 304.43-1
    NVIDIA drivers for linux.
    local/nvidia-utils 304.43-1
    NVIDIA drivers utilities and libraries.
    when using the older 302.x Nvidia drivers, gpm at login, and then X both works. When switching to a 304.x Nvidia driver, nothing happens with gpm, and in X, the mouse stays visible, centered, and frozen.
    I checked the X logs and xinput, and the mouse seems detected and shown as loaded/working, nothing unusual.
    I tried downgrading other packages (linux kernel, going from testing to stable, ...), with no effect, so it seems to be caused by the nvidia driver alone.
    Anything I may be missing ? I also tried posting on archlinuxfr forum, with no luck (I am told to downgrade nvidia, which also downgrades the linux kernel. I get errors when I downgrade now.)
    Last edited by alex130 (2012-08-31 10:44:07)

    thanks i didn't find that when i search. guess i have to wait for the newer driver. seems odd waiting for a new driver for a card more than 2 years old. thanks again.

  • A4Tech USB mouse detected as Joystick

    I hope there isn't a duplicate to this, I couldn't find one, but my searching skills aren't exactly superb.
    Hello, I'm trying to play FEZ on steam but the game is unplayable due to, what appears to be, my mouse being picked up as a joystick by steam.
    Currently the game behaves as if the walk-left key was stuck, and loads as if a gamepad(which I don't have and there aren't any other input devices other than the keyboard or mouse) was plugged in.
    Based on the console output from Dota2(which happily behaves <3 doto never fails me)
    Found joystick 'A4TECH USB Device' (03000000da0900006690000011010000), but no recognized controller configuration for it.
    I found that the issue might be my USB mouse being detected as a joystick, and so I followed their suggestions to fix the issue with no results.
    Things I tried:
    Deleting the /dev/input/js0 that was being created, I gather, because of the mistaken id.(source)
    Disabling via xinput everything A4TECH except for the one that actually allows me to use the mouse.(source)
    Disabling via xinput the mouse and key events.(source)
    xinput list output:
    $ xinput list
    ⎡ Virtual core pointer id=2 [master pointer (3)]
    ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
    ⎜ ↳ A4TECH USB Device id=8 [slave pointer (2)]
    ⎜ ↳ A4TECH USB Device id=10 [slave pointer (2)]
    ⎣ Virtual core keyboard id=3 [master keyboard (2)]
    ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
    ↳ Power Button id=6 [slave keyboard (3)]
    ↳ Power Button id=7 [slave keyboard (3)]
    ↳ Webcam C170 id=11 [slave keyboard (3)]
    ↳ AT Translated Set 2 keyboard id=12 [slave keyboard (3)]
    ↳ A4TECH USB Device (keys) id=9 [slave keyboard (3)]
    Since steam is not officially supported for Arch I figured this would be the best place to come looking for help. Please, if you need any more information ask me.
    Thank you

    Hi!
    I use A4Tech mouse. With latest updates, appeared the same problem
    Searching, I found a solution that helped me. you should also help.
    I have a game FEZ, same problem. Games use /dev/input/event*. Removing unnecessary. the problem will be solved.
    Yes, I understand that this is a hack, and not the normal fix.
    The mouse is defined as 2 devices, the second we need to remove.
    cat /proc/bus/input/devices
    Find:
    I: Bus=0003 Vendor=09da Product=8090 Version=0111
    N: Name="A4Tech USB Full Speed"
    P: Phys=usb-0000:00:13.5-2.4/input0
    S: Sysfs=/devices/pci0000:00/0000:00:13.5/usb1/1-2/1-2.4/1-2.4:1.0/0003:09DA:8090.003B/input/input70
    U: Uniq=
    H: Handlers=event2 mouse0
    B: PROP=0
    B: EV=17
    B: KEY=ffff0000 0 0 0 0
    B: REL=143
    B: MSC=10
    I: Bus=0003 Vendor=09da Product=8090 Version=0111
    N: Name="A4Tech USB Full Speed"
    P: Phys=usb-0000:00:13.5-2.4/input1
    S: Sysfs=/devices/pci0000:00/0000:00:13.5/usb1/1-2/1-2.4/1-2.4:1.1/0003:09DA:8090.003C/input/input71
    U: Uniq=
    H: Handlers=sysrq kbd event3 js0
    B: PROP=0
    B: EV=12001f
    B: KEY=3007f 0 0 4c3ffff17aff32d bf54445600000000 c00000000000001 130c130b17c007 ffa67bfad951dfff febeffdfffefffff fffffffffffffffe
    B: REL=40
    B: ABS=ffffff01000701ff
    B: MSC=10
    B: LED=1f
    as event3 and js0
    If you remove event3 then the problem is solved. only until you reboot.
    What attributes it has
    udevadm info -a /dev/input/event3
    I chose and made a rule for udev:
    cat /etc/udev/rules.d/52-a4tech.rules
    SUBSYSTEM=="input", ATTRS{name}=="*A4Tech*", ATTRS{phys}=="*/input1", RUN+="/usr/bin/rm /dev/input/%k"
    Use this rule and should all work. FEZ now works correctly.
    more here
    http://stackoverflow.com/questions/6990 … input-stre
    https://bbs.archlinux.org/viewtopic.php?id=190485

  • Logitech mouse detected by HAL as a keyboard??

    Using Xorg input hotplugging through hal, everything worked until this morning...
    When I plug a Logitech VX Nano wireless usb mouse, it is detected as a keyboard and the mouse does not work at all...
    I also have plugged in a microsoft keyboard/mouse duo. I tried restarting X with only the VX, but even that does the same behaviour.
    cat /proc/bus/input/devices wrote:
    I: Bus=0003 Vendor=046d Product=c521 Version=0111
    N: Name="Logitech USB Receiver"
    P: Phys=usb-0000:00:1d.1-1/input0
    S: Sysfs=/class/input/input16
    U: Uniq=
    H: Handlers=mouse1 event8
    B: EV=17
    B: KEY=ffff0000 0 0 0 0 0 0 0 0
    B: REL=143
    B: MSC=10
    I: Bus=0003 Vendor=046d Product=c521 Version=0111
    N: Name="Logitech USB Receiver"
    P: Phys=usb-0000:00:1d.1-1/input1
    S: Sysfs=/class/input/input17
    U: Uniq=
    H: Handlers=kbd event9
    B: EV=1f
    B: KEY=837fff 2c3027 bf004444 0 0 1 f84 8a27c000 667bfa d9415fed 8e0000 0 0 0
    B: REL=40
    B: ABS=1 0
    B: MSC=10
    lshal wrote:
    udi = '/org/freedesktop/Hal/devices/usb_device_46d_c521_noserial_if1_logicaldev_input'
      info.addons.singleton = {'hald-addon-input'} (string list)
      info.capabilities = {'input', 'input.keys', 'button'} (string list)
      info.category = 'input'  (string)
      info.parent = '/org/freedesktop/Hal/devices/usb_device_46d_c521_noserial_if1'  (string)
      info.product = 'Logitech USB Receiver'  (string)
      info.subsystem = 'input'  (string)
      info.udi = '/org/freedesktop/Hal/devices/usb_device_46d_c521_noserial_if1_logicaldev_input'  (string)
      input.device = '/dev/input/event9'  (string)
      input.originating_device = '/org/freedesktop/Hal/devices/usb_device_46d_c521_noserial_if1'  (string)
      input.product = 'Logitech USB Receiver'  (string)
      input.x11_driver = 'evdev'  (string)
      input.xkb.layout = 'ca'  (string)
      input.xkb.model = 'evdev'  (string)
      input.xkb.rules = 'base'  (string)
      input.xkb.variant = 'fr'  (string)
      linux.device_file = '/dev/input/event9'  (string)
      linux.hotplug_type = 2  (0x2)  (int)
      linux.subsystem = 'input'  (string)
      linux.sysfs_path = '/sys/class/input/input17/event9'  (string)
    udi = '/org/freedesktop/Hal/devices/usb_device_46d_c521_noserial_if0_logicaldev_input'
      info.capabilities = {'input', 'input.mouse'} (string list)
      info.category = 'input'  (string)
      info.parent = '/org/freedesktop/Hal/devices/usb_device_46d_c521_noserial_if0'  (string)
      info.product = 'Logitech USB Receiver'  (string)
      info.subsystem = 'input'  (string)
      info.udi = '/org/freedesktop/Hal/devices/usb_device_46d_c521_noserial_if0_logicaldev_input'  (string)
      input.device = '/dev/input/event8'  (string)
      input.originating_device = '/org/freedesktop/Hal/devices/usb_device_46d_c521_noserial_if0'  (string)
      input.product = 'Logitech USB Receiver'  (string)
      input.x11_driver = 'evdev'  (string)
      linux.device_file = '/dev/input/event8'  (string)
      linux.hotplug_type = 2  (0x2)  (int)
      linux.subsystem = 'input'  (string)
      linux.sysfs_path = '/sys/class/input/input16/event8'  (string)
    I only have one fdi file for the synaptics touchpad on the laptop:
    /etc/hal/fdi/policy/11-synaptic-options.fdi wrote:<?xml version="1.0" encoding="ISO-8859-1"?>
    <deviceinfo version="0.2">
      <device>
        <match key="info.product" contains="ETPS/2 Elantech Touchpad">
          <merge key="input.x11_driver" type="string">synaptics</merge>
          <merge key="input.x11_options.SHMConfig" type="string">on</merge>
          <merge key="input.x11_options.MaxSpeed" type="string">1.00</merge>
          <merge key="input.x11_options.MinSpeed" type="string">0.4</merge>
          <merge key="input.x11_options.MaxDoubleTapTime" type="string">750</merge>
          <merge key="input.x11_options.Emulate3Buttons" type="string">on</merge>
          <merge key="input.x11_options.VertTwoFingerScroll" type="string">1</merge>
          <merge key="input.x11_options.HorizTwoFingerScroll" type="string">1</merge>
          <merge key="input.x11_options.TapButton1" type="string">1</merge>
          <merge key="input.x11_options.TapButton2" type="string">2</merge>
          <merge key="input.x11_options.TapButton3" type="string">3</merge>
          <merge key="input.x11_options.LockedDrags" type="string">0</merge>
        </match>
      </device>
    </deviceinfo>
    Anyone has an idea of what could be wrong??
    Thanx!!

    Hi there, I bought one of these new Razer Copperhead mice a few days ago and have had the exact same problem. Since X detected the mouse correctly once I just did not turn my box of anymore. But, unfortunately, I had to reboot a few minutes ago and my box locked up again and again - I guess I pressed the reset button for about four times - so I decided to investigate on that.
    Here's what I found out: `dmesg | grep ^input' shows me that the mouse gets detected twice by the usb modules:
    input: Razer Razer Copperhead Laser Mouse as /class/input/input2
    input: USB HID v1.00 Mouse [Razer Razer Copperhead Laser Mouse] on usb-0000:00:13.1-1
    input: Razer Razer Copperhead Laser Mouse as /class/input/input3
    input: USB HID v0.01 Keyboard [Razer Razer Copperhead Laser Mouse] on usb-0000:00:13.1-1
    See the difference? "USB HID v1.00 Mouse" vs. "USB HID v0.01 Keyboard". So I checked /sys/class/input/input{2,3} to see that input2 (the mouse one) got a subdirectory called mouse0 which in turn has a file called dev while input3 doesn't.
    Long story short: I created a simple Udev rule to create a device node for the detected mouse input which I use in my xorg.conf:
    Udev rule (one line)
    KERNEL=="event*", SYSFS{name}=="Razer Razer Copperhead Laser Mouse", SYSFS{mouse0/dev}=="*" NAME="input/copperhead" MODE="664", GROUP="users"
    xorg.conf
    Section "InputDevice"
    Identifier "Mouse0"
    Driver "evdev"
    Option "Device" "/dev/input/copperhead"
    Option "Resolution" "2000"
    EndSection
    So far it's working quite well. I hope that this is the final solution since I don't feel like messing with this anymore...

  • Mouse plugged in or not. Mouse detection

    I am programming a GUI and I need to detect if there is a mouse plugged in or not. Maybe I will not have a mousse, maybe two. I need to manage the presence of these devices.
    I don't find any library or post to get some clue. Any ideas?
    Thanks.
    Dani

    To find out if a mouse is connected (but not how many(1))
    http://java.sun.com/j2se/1.5.0/docs/api/java/awt/MouseInfo.html
    GUI should be operable with or without mouse anyway.I agree completely with this statement.
    1) I would also guess it would depend on the OS on how it handles multiply mice. On my XP laptop, it simply has a single cursor, and both the mouse and the crap pad thing move it.

  • Detecting objects in images

    http://richandsian.co.uk/images/testin.png - Input image
    http://richandsian.co.uk/images/testout1.png - Output image 1
    http://richandsian.co.uk/images/testout2.png - Output image 2
    http://richandsian.co.uk/errata/blobdimensions.txt - Object dimensions
    Ok, so I'm trying to play with something like OCR that I've written, but very simple. It just looks for groups of connected pixels by thresholding an image and seeing who is connected, then paints each blob a random colour.
    When I then spit out details about the height and width of each blob (see object dimensions) I get mostly sensible stuff - characters of width 5x7 for ones like aeuonmcv, etc... and the odd 5x10 you would think might be an h,p,g,d, etc...all good.
    However, I have the odd blob that's something bizarre like 55x3 and not an obvious object looking at the image. So I painted all blobs their own colour only if they had a dimension greater than 10.
    And this: http://richandsian.co.uk/images/testout3.png is what I got.
    Presumably there's a pattern to what I've done, but I can't figure it out, anyone have any ideas? Thanks
    Code tarball here: http://richandsian.co.uk/errata/ocr.tar.gz

    Hi cs02rm0,
    I read the post and am trying to do something similar, is there any chance I could get a look at the code? Many thanks, Ron

  • How to properly detect object not found in query?

    Generally, we'd prefer to catch the unchecked exceptions which JDO throws in
    response to database operations that go awry. That said, there's one in
    particular that's bothering us:
    The most important and common one of these which we'd like to know about is
    when a query or getObjectByID() fails because the desired object isn't in
    the DB.
    Currently, an exception is thrown, which we would presumably have to catch
    and parse the message text of to determine if this was a row not found, vs.
    a database problem?
    Please tell me there's a better way to determine if a row(s) isn't(aren't)
    found!
    thanks,
    david

    Patrick -- I believe we just see them in getObjectById(), which is what we
    do most often.
    The subclass of JDODataStoreException that you'll throw is great.
    I'd suggest that a property setting could configure kodo to return null to
    getObjectById() instead -- ONLY for the case of object not found, for those
    of us who might consider this a less-than-truly-exceptional case :)
    thanks much,
    david
    "Patrick Linskey" <[email protected]> wrote in message
    news:[email protected]..
    David,
    Also, a query should return a collection of size zero, and not throw an
    exception.
    Are you seeing exceptions only when executing getObjectById(), or also
    when querying?
    -Patrick
    On Tue, 29 Apr 2003 05:03:23 -0400, david michaels wrote:
    Generally, we'd prefer to catch the unchecked exceptions which JDO
    throws in response to database operations that go awry. That said,
    there's one in particular that's bothering us:
    The most important and common one of these which we'd like to know about
    is when a query or getObjectByID() fails because the desired object
    isn't in the DB.
    Currently, an exception is thrown, which we would presumably have to
    catch and parse the message text of to determine if this was a row not
    found, vs. a database problem?
    Please tell me there's a better way to determine if a row(s)
    isn't(aren't) found!
    thanks,
    david--
    Patrick Linskey
    SolarMetric Inc.

  • Associating records of processes N its subprocess in data object COMPONENT

    Hi,
    I am using Monitor Express to monitoring BPM process data, and I want to group data from a process and its subprocess.
    How to join these informations if there is no key-field in COMPONENT dataobject (COMPOSITE_INSTANCE_ID and COMPONENT_INSTANCE_ID are different between processes and subprocess).
    Luciano Gomes

    Hi,
    I am using Monitor Express to monitoring BPM process data, and I want to group data from a process and its subprocess.
    How to join these informations if there is no key-field in COMPONENT dataobject (COMPOSITE_INSTANCE_ID and COMPONENT_INSTANCE_ID are different between processes and subprocess).
    Luciano Gomes

  • BO Extension - how to detect object deletion?

    Hi community.
    I have the problem that we extended an SAP BO node and this BO node might get deleted by user interaction using SAP floorplans.
    However to prevent associations from our custom BOs to this extended SAP BO node pointing into the void I need to somehow react on deletion of this BO node.
    Our own floorplans following these associations and showing content from the SAP BO node throw exceptions if the SAP BO node does not exist anymore.
    the afterModify or beforeSave events of the extended BO do not work: both are (afaik) not triggered upon deletion.
    Did anybody else encounter a similar problem and maybe found a solution?
    More specific: we exended the SAP Project BO and have trouble when a ProjectTask is deleted.

    Hi Sunil, thanks for your answer.
    I already to check for IsSet on the ProjectTask but the assoviation was set even though the destination object was not existent anymore.
    The Idea about counting the project tasks is a good additional idea, i will try to explore into this direction.
    However, how could I solve the problem when the exception gets thrown by UI?
    I.e. when viewing floorplans (no changes made to object so far -> no events/actions with custom code triggered) the UI interpreter follows these associations and tries to load the relevant object to show  the project task data.
    I might save a local copy of this data maybe...
    Best regards,
    Ludger

  • Detecting Active Component in a BOM

    Hello guys,
    Wanted to know if there is an easy way to know which componentes in a BOM are the active ones? A way not involving comparing validation date, like if there is a yes or no something that tells me those components in the BOM are the active ones, the others are the alternative or the old ones.
    Regards,

    Hi,
    can you please elaborate your requirement
    what do you mean by active?
    are you looking some thing like if the component are production or costing relevant?
    Regards,
    Shaiil

  • Capture mouse in a component

    May I capture the mouse in a window?
    In a simple application, I want to capture the mouse in the window. That is, when I move the mouse, there are no MouseEvent.MOUSE_MOVED, but MouseEvent.MOUSE_DRAGGED. So I can get the position of the mouse even the mouse position is out of the window. Just like when we press the leftbutton and move it (in this case, you may find you can get the events of the mouse even in the window even the mouse 's position is out of the window )
    In Windows system, the function is SetCapture and ReleaseCapture
    But in Javva, how can I do it?

    I don't think there is a way to set capture. You just have to look for MouseEvent. MOUSE_DRAGGED which will be sent when you start dragging.

Maybe you are looking for

  • Grouping invoices for payment across orgs

    Hi All, In R12 parables, Is it possible to make a payment of two invoices as below created under two different operating for the same supplier and supplier site using the same payment. (Using a PPR single payment request) ORG_ID VENDOR_ID VENDOR_SITE

  • Can't found my purchase of ringtones

    need help

  • Keeping Podcasts and not letting iTunes update and delete them

    I am subscribed to the Ricky Gervais podcast, however have only had a chance to listen to episode 1, although I have 1-4 on my iPod. He has published 7 episodes, 4-7 are currently on iTunes. So I had 1-4 on my computer, and hit update, and the comput

  • Products Owned section of the Contact Record

    I just noticed the Products Owned section as an available section of the contact record. Does this section have an linkage to opportunities, so when an opportunity has a status of won, it will update the Products Owned section of the contact record?

  • How to unistall and install the hole Java version

    Hy, I tried to unnistal the supposedly old version java and install a new one. I coudn't install the new version because the installer tells me that " This volume contens a new version of java", but when I tried to use one program that requires java