API for Solaris 8 Mouse Events

Hi
I am looking for a Solaris 8 API so I can listen to Mouse moved events, although the mouse cursor is not over my java application window.
Any ideas?

i've seen java 1.5 (i think) has a new class to get mouse coords on screen, but i don't have java 1.5 so i can't tell exactly where to look

Similar Messages

  • SCTP API for Solaris 10

    I've been trying to use SCTP for Solaris 10, and it seems that the API is very far behind the current SCTP API. Does anyone know if there's an update to SCTP for Solaris, or if one is planned at some point? Thanks.
    - Jon

    Don't go back any farther though.
    I've heard reports that prior to Solaris 9, the included in.tftpd lacks certain extensions that are required for PXEGRUB in Solaris 10 to work properly.
    Darren

  • How can I make only the shape active for the mouse events, not the whole box around it?

    I want to create mouse over events for different parts of an image (say of a hard disk drive), so when the user places their mouse over the spindle, say, it will change colour.
    At the moment I have it working however the event is triggered when ever the mouse is in the bounding box of the spindle image. How can I get it to only be triggered when it is above the non transparent part of the image (or symbol)?

    Thanks joris182, but that wont work when there are other objects within the bounding box of the transparent symbol. For example, if I want the sclera to highlight, if I use an invisible shape over it, it will be active even if someone has their mouse over the vitreous body.

  • REST API for audit log events

    How can I execute audit log report using REST API. If it is not possible is there any other ways to retrieve all audit log events(Upload/download/delete/share/login/logout) using REST API.

    I thought it not possible
    Ravin Singh D

  • APIs for Project Events and Project Invoices

    Hi All,
    Can anyone tell me the APIs for creating project events and project invoices.
    any help will be greatly appreciated.
    Thanks
    gt1227

    Hi
    go through the below link, all API for projects API's are listed
    http://docs.oracle.com/cd/B12190_11/current/acrobat/115pjapi.pdf
    Thanks
    Krishna

  • Waiting for a mouse click in a single thread

    Here's my problem:
    I'm working on a program I didn't initially create, and I picked it up from the rough midpoint of its evolution. It is a single thread AWT program, with a mouseListener interface already implemented.
    Here's my problem. In a game setting, we have two players. It is no problem when both are computer controlled. When player one is controlled by a human, I need to wait for a mouse event before returning, because upon returning player two moves (regardless of its player configuration).
    I can't do any kind of busy waiting because it is a single thread. I'm looking for some kind of option besides making the program multithreaded. This also makes it difficult to use some sort of boolean variable, though I don't think it's impossible.
    Thanks in advance for any help.
    Eric

    #9 - You are correct in your assumptions. I agree it's
    not the best model, but it worked for the original
    purpose, which was to have one player always
    controlled by the computer, and the option of
    selecting a second player as being either human or
    computer. Since each move is made manually - that is,
    for a move to be made, it requires user input - there
    was no harm in returning from a function, because it
    had no immediate computation. The requirements have
    just changed, and now I must allow both players to be
    selectable. This presents a problem in that I have to
    wait for the move actions to finish before
    proceeding.Understood.
    >
    My only question is, how can I access the AWT thread?You mentioned in an earlier post that you have action listeners. As triggered by user events, these are always called on the AWT thread. For example:
    import javax.swing.*;
    import javax.awt.event.*;
    JButton button = new JButton( new AbstractAction {
            public void actionPerformed(ActionEvent e) {
                synchronized (myMonitor) {
                    myMonitor.notifyAll();
        });This button can be added to some swing UI. If clicked on, then actionPerformed will be called on the AWT thread, and any threads waiting on myMonitor will be notified.
    I see what you are saying - it's almost exactly what
    my coworkers told me - but I don't have the knowledge
    to implement it, which is why I'm here. Creating a
    monitor object isn't a problem (makeMove() would need
    to be synchronized, otherwise you wouldn't be able to
    call wait()),I recommend using a separate object for the monitor, especially if you are already using synchronized, so that you know exactly how each object's lock is being used. If you're sure it is safe, then there is nothing wrong with using the object itself as the monitor, as you suggest, however.
    but I'm not sure what you mean by the
    action handling method should be called on the AWT
    thread.Just that any action listener method is always called on the AWT thread in response to user action.
    Dave

  • USB API?  Solaris 8 or in 9?

    I am looking for any information on the USB api for Solaris. In the early docs on Solaris 8, it was mentioned that the api would be in a future release, but I cannot find it. Does anyone have information about its inclusion (or exclusion) in Solaris 8?
    Thanks in advance,
    John

    Have a look at the manpages (in s8) for uhci, ohci, hubd, usb_mid, hid and scsa2usb. The document "Writing Device Drivers" (see docs.sun.com) is also useful, as is the documentation on USB located at http://www.usb.org/developers/home.php3

  • Handling mouse events anywhere

    Hi,
    We have built an application with a Swing GUI and for automation and testing we would like to record all keyboard and mouse events to be able to play them afterwards.
    The keyboard events can be recorded easily with a KeyboardFocusManager but for the mouse events I still need a solution.
    The GUI consists of a JFrame containing several JPanels. When I add a MouseListener on the JFrame, its mousePressed and mouseReleased events are not called everytime I click somewhere on the frame. For example, when I click on a button inside one of the JPanels, the mouse event methods of the frame are not executed.
    Can somebody tell me how I can easily capture all mouse events in the GUI without adding MouseListeners in every JPanel??
    Thanks in advance...

    I know how to use the Robot class, that's not really the issue.
    What we are doing actually is writing keyboard and mouse events into a file.
    Afterwards we use the Robot class to playback the events in the file. This is no problem, I just don't know how I can easily intercept ALL mouse events in the GUI without adding mouseListeners in each component in the GUI.

  • Cut or Inverse Masking via Blend.Layer + Blend.Erase = no mouse event listener for objects behind "glass wall"

    I've successfully erased unwanted graphics using Blend and I can drag a desired object that is behind the erased area, but the dragged object does not have mouse events unless I drag if from behind the erased area.  Does anyone know a good work around or how I can force the event to be dispatched when the object behind the "glass wall" is clicked?  I can't find documentation anywhere that addresses this situation.  If an object behind can not be selected how is it really erased?  Thanks in advance!

    Yes, and I want to keep it behind.  It's visible and can be dragged, but
    since behind the transparent area that has been erased using Blend.Erase it
    no longer receives click events.  Thanks for your response.
    Michelle

  • Using mouse event for right click or scroll

    I would like someone to guide me that if there is any events which can be used for right click of the mouse or the scroll of the mouse(specially the scroll). Until now all the mouse event i have been using is based on the left mouse click, release......  So could anyone guide me how to use the right click and scroll of the mouse using actionscript.
    Thank you!

    You should try searching the forums using the key terms related to what you are after.  I don't think you'll find much help for the right click though... appears to not be supported by Flash.  Below is a link to one result for the mouse scroll from just the other day... you can probably find more if it does not help.
    http://forums.adobe.com/message/3511047#3511047

  • All buttons in all files are now showing error: Mouse events are permitted only for button instances.

    Somebody please help:
    I've taught myself enough with Flash to customize a
    fully-Flash template for my wife's website, and two of the buttons
    didn't do what I wanted them to in Actionscript. They then began
    giving me the message:
    **Error** Symbol=sub_butt1, layer=Layer 4, frame=1:Line 1:
    Mouse events are permitted only for button instances
    on (rollOver) {
    **Error** Symbol=sub_butt1, layer=Layer 4, frame=1:Line 4:
    Mouse events are permitted only for button instances
    on (releaseOutside, rollOut) {
    Total ActionScript Errors: 2 Reported Errors: 2
    Not only do I not know how to fix this, the same message
    comes up for every single button in the entire fla I had saved,
    plus earlier versions where I hadn't even messed with the buttons
    yet.
    Any suggestions?

    Hello Corbett,
    The error is saying that you are trying to apply a button
    action to something
    other than a button. Often this happens when you select the
    frame that the
    button is on instead of the actual button, thus applying the
    action to the
    frame instead of the button.
    Make sure you select the button on the stage and then apply
    the actions there.
    You'll probably have to remove the action from the frame
    before it will work
    (looks like it's on Layer 4 frame 1).
    Good luck!
    Jesse H.
    Adobe Community Expert
    My site:
    http://www.jharding.com
    Free Blog Radio:
    http://www.tornadostream.com
    > Somebody please help:
    > I've taught myself enough with Flash to customize a
    fully-Flash
    > template for
    > my wife's website, and two of the buttons didn't do what
    I wanted them
    > to in
    > Actionscript. They then began giving me the message:
    >
    > **Error** Symbol=sub_butt1, layer=Layer 4, frame=1:Line
    1: Mouse
    > events are
    > permitted only for button instances
    > on (rollOver) {
    > **Error** Symbol=sub_butt1, layer=Layer 4, frame=1:Line
    4: Mouse
    > events are
    > permitted only for button instances
    > on (releaseOutside, rollOut) {
    > Total ActionScript Errors: 2 Reported Errors: 2
    >
    > Not only do I not know how to fix this, the same message
    comes up for
    > every
    > single button in the entire fla I had saved, plus
    earlier versions
    > where I
    > hadn't even messed with the buttons yet.
    > Any suggestions?

  • AS3 code for Mouse Event

    Hi,
    I had uploaded jpeg file onto the stage using
    File->Import.
    Now, how to access the mouse-events using AS3.0?
    i.e., when we click with mouse on the stage
    it should display the x and y co-ordinates of the point
    being clicked.
    These x and y coordinates must be displayed in text-boxes
    provided down on the same stage.
    Please reply me

    You can do show/hide movieclip on mouseover. get your box
    position and assign to the popup (tooltip movieclip).
    see this...
    not tested. but it should work.
    import flash.events.MouseEvent;
    function showClip(evt:MouseEvent) {
    tooltips.x = evt.target.x + evt.target.width;;
    tooltips.y = evt.target.y - evt.target.height;
    tooltips.visible = true
    function hideClip(evt:MouseEvent) {
    tooltips.visible = false;
    box.addEventListener(MouseEvent.MOUSE_OVER, showClip);
    box.addEventListener(MouseEvent.MOUSE_OUT, hideClip);
    I assume you'll create two movieclips named: box and tooltips

  • Problem with TrayIcon and mouse events

    Hi,
    I am trying to listen for a mouseEntered event on a TrayIcon.
    This is the code i am using:
    final TrayIcon icon = new TrayIcon(getImage(), "tray icon");
    final SystemTray tray = SystemTray.getSystemTray();
    try {
       tray.add(icon);
    }catch (AWTException e) {System.out.println("TrayIcon could not be added.");return;}
    icon.addMouseListener(new MouseAdapter() {
    @Override
    public void mouseEntered(MouseEvent e){
       System.out.println("works");
    }});The icon is correctly shown in the tray bar, but the mouse entered event is not working.
    I have to say that i am using the exactly same code to achieve the same effect on a JButton and it works without any problem.
    Is there anything wrong?
    Thanks,
    Nite

    is there a way to request my thread to be moved into Swing section? Well, the idea is to post the question in the proper forum in the first place.
    yes, but i didnt find anything related to my problem.Really, I found posted examples of using a MouseListener.
    Does your code work for other events or is the problem only related to mouseEntered() events (which may not be supported, I don't know since I don't have the proper API to use TrayIcons)?
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Then maybe others can test your code or see something else wrong.

  • Touch to Mouse events conversion

    Hi Everybody!
    Does anybody know how correctly fire mouse events to Oracle Maps in javascript?
    Default translation touch events in iPad Safari does not quite fit. It try zoom or pan browser window, not map. :(
    If catch touch events and disable default translation I can zoom and pan MVMapView object.
    But how fire "click","mousemove","mouseover" events on Map? I need dispatch event to ThemeBasedFOIs (InfoWindow Popup and other listeners)?

    Yes. The Oracle Maps tutorial contains examples (the tutorial can be found in your mapviewer deployment
    e.g. http://localhost:7001/mapviewer/fsmc/tutorial/index.html) and documentation in the API reference
    (e.g. http://localhost:7001/mapviewer/fsmc/apidoc/index.html). Look at MVEvent and the attachEventListener function of MVMapView, MVThemeBasedFOI, and MVFOI classes for example.

  • Mouse Event Listeners with Full Screen JMF

    I am trying to call the mouseClicked function from JMFs addMouseListner API in order to stop a media file when a user clicks the mouse button (or a key) like in a screensaver
    I am able to access the function just before the player is started but once the media file begins to play I am not?
    Here is the code I am using for the player and listener:
    public static void main(String[] argv) {
    JMF myFrame = new JMF("Java Media Framework Project");
    myFrame.setUndecorated(true);
    myFrame.show();
    Dimension screenDim =Toolkit.getDefaultToolkit().getScreenSize();
    myFrame.setSize(screenDim.width, screenDim.height);
    myFrame.setResizable(false);
    myFrame.addMouseListener(
    new MouseAdapter(){
    public void mouseClicked(MouseEvent e) {
    System.out.println("Mouse was clicked");
    System.exit(0);
    myFrame.play();
    Are there any other methods to get around this? Is it possible to embed a JMF application in a window that I can then monitor mouse events from??

    I passed the player object to a Listener class and I can get it to work ok with keyboard controls so Im sure the thread is not being blocked...but my problem still exists in being able to monitor mouse events within the JMF display while the media is being played at full screen. (i.e. in order to stop the media)
    Maybe I can use the ControllerListener within the JMF player to monitor mouse events? Any ideas on how I do this?
    Is it possible to layer the display with a transparent window from which I can monitor mouse events from?
    You mentioned asynchronical playback...I am looking into this idea, are there any examples of this on the web I can look at?
    Thanks for your speedy reply also!!
    Regards,
    Joe
    public static void main(String[] argv) {
    JMF myFrame = new JMF("Java Media Framework Project");
    myFrame.setUndecorated(true);
    myFrame.show();
    Dimension screenDim =Toolkit.getDefaultToolkit().getScreenSize();
    myFrame.setSize(screenDim.width, screenDim.height);
    myFrame.setResizable(false);
    myFrame.new Listener(myFrame);
    myFrame.play();
    public class Listener implements KeyListener,
    MouseListener,
    MouseMotionListener,
    WindowListener {
    private JMF owner;
    Listener(JMF w) {
    owner = w;
    owner.addMouseListener(this);
    owner.addKeyListener(this);
    owner.addMouseMotionListener(this);
    //owner.addWindowListener(this);
    private void stop() { owner.stop(); }
    //---------- KeyListener Implementation ------------------
    public void keyPressed (KeyEvent evt) { stop(); System.out.println("key pressed");}
    public void keyReleased(KeyEvent evt) { stop(); }
    public void keyTyped (KeyEvent evt) { stop(); }
    //---------- MouseListener Implementation ----------------
    public void mouseClicked (MouseEvent e) { stop(); System.out.println("Mouse clicked");}
    public void mousePressed (MouseEvent e) { stop(); }
    public void mouseReleased(MouseEvent e) { stop(); }
    public void mouseEntered (MouseEvent e) { }
    public void mouseExited (MouseEvent e) { }
    //---------- MouseMotionListener Implementation ----------
    public void mouseDragged(MouseEvent e) { }
    public void mouseMoved (MouseEvent e) {
    if (oldMouse == null)
    oldMouse = new Point(e.getX(), e.getY());
    else if (e.getX() != oldMouse.x
    || e.getY() != oldMouse.y)
    stop();
    Point oldMouse;
    //---------- WindowListener Implementation ---------------
    public void windowOpened (WindowEvent e) { stop(); }
    public void windowClosing (WindowEvent e) { stop(); }
    public void windowClosed (WindowEvent e) { stop(); }
    public void windowIconified (WindowEvent e) { stop(); }
    public void windowDeiconified(WindowEvent e) { stop(); }
    public void windowActivated (WindowEvent e) { stop(); }
    public void windowDeactivated(WindowEvent e) { stop(); }
    }

Maybe you are looking for