Mouse clicks inside image in applet

How can I respond to mouse clicks inside particular regions in an image loaded as part of an applet in a browser? ie, I want to send these clicks onto the server for the server to handle it and the server should change the image according to the mouse clicks.
Thanks,

/*  <applet code="ImageMouse" width="400" height="400"></applet>
*  use: >appletviewer ImageMouse.java
import java.awt.*;
import java.awt.event.*;
import java.awt.image.BufferedImage;
import java.io.*;
import java.net.*;
import javax.imageio.ImageIO;
import javax.swing.*;
public class ImageMouse extends JApplet
    JLabel label;
    public void init()
        ImageMousePanel panel = new ImageMousePanel();
        ImageMouser mouser = new ImageMouser(panel, this);
        panel.addMouseMotionListener(mouser);
        getContentPane().add(panel);
        getContentPane().add(getLabel(), "South");
    private JLabel getLabel()
        label = new JLabel(" ");
        label.setHorizontalAlignment(JLabel.CENTER);
        label.setBorder(BorderFactory.createTitledBorder("image coordinates"));
        Dimension d = label.getPreferredSize();
        d.height = 35;
        label.setPreferredSize(d);
        return label;
    public static void main(String[] args)
        JApplet applet = new ImageMouse();
        JFrame f = new JFrame();
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.getContentPane().add(applet);
        f.setSize(400,400);
        f.setLocation(200,200);
        applet.init();
        f.setVisible(true);
class ImageMousePanel extends JPanel
    BufferedImage image;
    Rectangle r;
    public ImageMousePanel()
        loadImage();
        r = new Rectangle(getPreferredSize());
    protected void paintComponent(Graphics g)
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D)g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                            RenderingHints.VALUE_ANTIALIAS_ON);
        int w = getWidth();
        int h = getHeight();
        int imageWidth = image.getWidth();
        int imageHeight = image.getHeight();
        r.x = (w - imageWidth)/2;
        r.y = (h - imageHeight)/2;
        g2.drawImage(image, r.x, r.y, this);
        //g2.setPaint(Color.red);
        //g2.draw(r);
    public Dimension getPreferredSize()
        return new Dimension(image.getWidth(), image.getHeight());
    private void loadImage()
        String s = "images/greathornedowl.jpg";
        try
            URL url = getClass().getResource(s);
            image = ImageIO.read(url);
        catch(MalformedURLException mue)
            System.err.println("url: " + mue.getMessage());
        catch(IOException ioe)
            System.err.println("read: " + ioe.getMessage());
class ImageMouser extends MouseMotionAdapter
    ImageMousePanel panel;
    ImageMouse applet;
    boolean outsideImage;
    public ImageMouser(ImageMousePanel imp, ImageMouse applet)
        panel = imp;
        this.applet = applet;
        outsideImage = true;
    public void mouseMoved(MouseEvent e)
        Point p = e.getPoint();
        if(panel.r.contains(p))
            int x = p.x - panel.r.x;
            int y = p.y - panel.r.y;
            applet.label.setText("x = " + x + "  y = " + y);
            if(outsideImage)
                outsideImage = false;
        else if(!outsideImage)
            outsideImage = true;
            applet.label.setText("outside image");
}

Similar Messages

  • Capture right mouse click in image

    I would like to capture a right mouse click while pointing into am image window.
    So far I've come only to the possibilty to capture events that originate somehow with the left mouse click.
    Or
    Are specific to the front panel of the currently active VI
    Or
    Detect whether at the time of calling a subVI the button is down or up, with all the usual hazzel of detecting the transition (plus the necessity of depending on MS Driect X).
    What I would like to have is a signal that describes the right click in an image window.
    Thanks for any ideas
    Gabi
    7.1 -- 2013
    CLA

    Hi,
    If you use LV7, you can use the event structure. Add an event or filter
    event "Mouse down" for the picture. The "button" value indicates 2 for the
    right button, 1 for the left.
    Regards,
    Wiebe.
    the picture control has a property "Mouse". This is a cluster, that includes
    "Gabriela Tillmann" wrote in message
    news:[email protected]..
    > I would like to capture a right mouse click while pointing into am
    > image window.
    > So far I've come only to the possibilty to capture events that
    > originate somehow with the left mouse click.
    > Or
    > Are specific to the front panel of the currently active VI
    > Or
    > Detect whether at the time of calling a subVI the button is down or
    > up, with all the usual hazzel of det
    ecting the transition (plus the
    > necessity of depending on MS Driect X).
    >
    > What I would like to have is a signal that describes the right click
    > in an image window.
    >
    > Thanks for any ideas
    > Gabi

  • Mouse Click Inside text Frame

    Hi,
    I need to get notification when user click inside a text frame (textStrory). I had gone through the IEventWatcher but I am not getting on which should I place this interface.
    Any Suggestion will be  greatly appreciated.

    Yes
    Search for HitTest.
    Dirk

  • Trigger event on mouse click over image window

    How can I use an event structure to pick up on a mouse click on an IMAQ window in Labview. Specifically, I want to pick up a click with the 'select point' tool.

    To work in a Winddraw window, will not want to use the Event Structure, but instead the WindLastEvent. This will allow you to capture the events that occur in the Winddraw window. Attached are two examples, one I wrote using events so users can set up ROI's and the other is using events in LabVIEW with a picture control on the front panel so user can select an ROI.
    I hope this helps!
    Chris D
    Ni Application Engineer
    Attachments:
    Line_Profile_of_Live_Image.vi ‏145 KB
    ROI_from_Picture_Control_using_Events.vi ‏111 KB

  • Mouse clicks in IE with applet not responding

    We have an applet containing a JTree inside a JScrollPane loaded in a frame in Internet Explorer. The JTree has a thread for each node under the root that polls and updates the tree on a set interval (say 30 seconds). For some reason, when the applet is visible form elements in regular HTML pages in other frames no longer repaint properly when clicked. If you click on a checkbox for example, it won't repaint with the check showing until you move the mouse. Also, if you go to load the page in the browser and don't move your mouse, the page doesn't do any loading until the mouse is moved. It seems like there is some weird interaction going on here with the browser, applet, and mouse events.
    Any ideas on what could be causing such a thing to happen?
    Thanks!

    Are you sending your JSP page to your applet first then from the applet opening a separate IE frame with the generated page?
    I came across the following. Hope it helps.
    <% request.setAttribute("_cache_refresh", "true"); %>
    QUOTE:
    "If you want all caches to be refreshed, set the cache to the application scope. If you want all the caches for a user to be refreshed, set it in the session scope. If you want all the caches in the current request to be refreshed, set the _cache_refresh object either as a parameter or in the request.
    The <wl:cache> tag specifies content that must be updated each time it is displayed. The statements between the <wl:cache> and </wl:cache> tags are only executed if the cache has expired or if any of the values of the key attributes have changed."
    Regards,
    Devyn

  • Stimulate mouse click inside a tableview column

    I have a table view and one of the columns has a button. How to click a button programmitically on a particular row on click of button which is outside of the tableview.
    Thanks.

    It appears you can't do a bidirectional binding to myBooleanProperty.not(), so you need one property for each radio button. Here's the general idea:
    My data model class (the traditional person class, with a couple of additional properties). The two boolean properties are bidirectionally bound to each others' logical opposites "by hand".
    Person.java:
    import javafx.beans.property.BooleanProperty;
    import javafx.beans.property.SimpleBooleanProperty;
    import javafx.beans.property.SimpleIntegerProperty;
    import javafx.beans.property.SimpleStringProperty;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    public class Person {
        private final SimpleIntegerProperty num;
        private final SimpleStringProperty firstName;
        private final SimpleStringProperty lastName;
        private final BooleanProperty vegetarian ;
        private final BooleanProperty meatEater ;
        public Person(int id, String fName, String lName) {
          this.firstName = new SimpleStringProperty(fName);
          this.lastName = new SimpleStringProperty(lName);
          this.num = new SimpleIntegerProperty(id);
          this.vegetarian = new SimpleBooleanProperty(false);
          this.meatEater = new SimpleBooleanProperty(true);
          this.meatEater.addListener(new ChangeListener<Boolean>() {
            @Override
            public void changed(ObservableValue<? extends Boolean> observable,
                Boolean oldValue, Boolean newValue) {
              if (vegetarian.get() == newValue) {
                vegetarian.set(! newValue);
          this.vegetarian.addListener(new ChangeListener<Boolean>() {
            @Override
            public void changed(ObservableValue<? extends Boolean> observable,
                Boolean oldValue, Boolean newValue) {
              if (meatEater.get()==newValue) {
                meatEater.set(! newValue);
        public String getFirstName() {
          return firstName.get();
        public void setFirstName(String fName) {
          firstName.set(fName);
        public String getLastName() {
          return lastName.get();
        public void setLastName(String fName) {
          lastName.set(fName);
        public int getId() {
          return num.get();
        public void setId(int id) {
          num.set(id);
        public BooleanProperty vegetarianProperty() {
          return vegetarian ;
        public boolean isVegetarian(){
          return vegetarian.get();
        public void setVegetarian(boolean vegetarian) {
          this.vegetarian.set(vegetarian);
        public BooleanProperty meatEaterProperty() {
          return meatEater ;
        public boolean isMeatEater() {
          return meatEater.get();
        public void setMeatEater(boolean meatEater) {
          this.meatEater.set(meatEater);
      }A controller. The RadioButtonCellFactory does the interesting stuff, binding the radio button's selected property to a property on the model.
    TableExampleController.java:
    import javafx.beans.property.SimpleObjectProperty;
    import javafx.beans.value.ObservableValue;
    import javafx.collections.FXCollections;
    import javafx.collections.ObservableList;
    import javafx.fxml.FXML;
    import javafx.scene.control.RadioButton;
    import javafx.scene.control.TableCell;
    import javafx.scene.control.TableColumn;
    import javafx.scene.control.TableColumn.CellDataFeatures;
    import javafx.scene.control.TableView;
    import javafx.scene.control.cell.PropertyValueFactory;
    import javafx.util.Callback;
    public class TableExampleController {
      @FXML
      private TableView<Person> tableView;
      private ObservableList<Person> data;
      public void initialize() {
        buildTable(tableView);
        tableView.setItems(data);
      private void buildTable(TableView<Person> tableView) {
        data = FXCollections.observableArrayList(new Person(1, "Joe", "Pesci"),
            new Person(2, "Audrey", "Hepburn"), new Person(3, "Gregory", "Peck"),
            new Person(4, "Cary", "Grant"), new Person(5, "Robert", "De Niro"));
        TableColumn<Person, Integer> idColumn = new TableColumn<Person, Integer>(
            "Id");
        idColumn
            .setCellValueFactory(new PropertyValueFactory<Person, Integer>("id"));
        TableColumn<Person, String> firstNameColumn = new TableColumn<Person, String>(
            "First Name");
        firstNameColumn
            .setCellValueFactory(new PropertyValueFactory<Person, String>(
                "firstName"));
        TableColumn<Person, String> lastNameColumn = new TableColumn<Person, String>(
            "Last Name");
        lastNameColumn
            .setCellValueFactory(new PropertyValueFactory<Person, String>(
                "lastName"));
        TableColumn<Person, Person> vegetarianColumn = new TableColumn<Person, Person>(
            "Vegetarian");
        vegetarianColumn.setCellValueFactory(new IdentityCellValueFactory());
        vegetarianColumn.setCellFactory(new RadioButtonCellFactory(true));
        TableColumn<Person, Person> meatEaterColumn = new TableColumn<Person, Person>(
            "Meat Eater");
        meatEaterColumn.setCellFactory(new RadioButtonCellFactory(false));
        meatEaterColumn.setCellValueFactory(new IdentityCellValueFactory());
        tableView.getColumns().addAll(idColumn, firstNameColumn, lastNameColumn,
            vegetarianColumn, meatEaterColumn);
      public void dumpInfo() {
        for (Person p : data) {
          System.out.printf("%s %s (%s)%n", p.getFirstName(), p.getLastName(), p.isVegetarian()?"Vegetarian":"Meat Eater");
        System.out.println();
      private class IdentityCellValueFactory
          implements
          Callback<TableColumn.CellDataFeatures<Person, Person>, ObservableValue<Person>> {
        @Override
        public ObservableValue<Person> call(
            CellDataFeatures<Person, Person> param) {
          Person person = param.getValue();
          return new SimpleObjectProperty<Person>(person);
      public class RadioButtonCellFactory implements
          Callback<TableColumn<Person, Person>, TableCell<Person, Person>> {
        private boolean matchVegetarian ;
        public RadioButtonCellFactory(boolean matchVegetarian) {
          this.matchVegetarian = matchVegetarian ;
        @Override
        public TableCell<Person, Person> call(TableColumn<Person, Person> param) {
          return new TableCell<Person, Person>() {
            @Override
            public void updateItem(final Person person, boolean empty) {
              if (empty) {
                setText(null);
                setGraphic(null);
              } else {
                RadioButton button = new RadioButton();
                if (matchVegetarian) {
                  button.selectedProperty().bindBidirectional(
                      person.vegetarianProperty());
                } else {
                  button.selectedProperty().bindBidirectional(
                      person.meatEaterProperty());
                setGraphic(button);
                setText(null);
    }FXML and startup for completeness:
    <?xml version="1.0" encoding="UTF-8"?>
    <?import javafx.scene.layout.BorderPane?>
    <?import javafx.scene.control.TableView?>
    <?import javafx.scene.control.Button?>
    <BorderPane xmlns:fx="http://javafx.com/fxml" fx:controller="TableExampleController">
    <top>
    <Button text="Dump info" onAction="#dumpInfo"/>
    </top>
         <center>
           <TableView fx:id="tableView"/>
         </center>
    </BorderPane>
    import javafx.application.Application;
    import javafx.fxml.FXMLLoader;
    import javafx.scene.Parent;
    import javafx.scene.Scene;
    import javafx.stage.Stage;
    public class TableExample extends Application {
      @Override
      public void start(Stage primaryStage) throws Exception {
        Parent root = FXMLLoader.load(getClass().getResource("tableExample.fxml"));
        Scene scene = new Scene(root, 400, 250);
        primaryStage.setScene(scene);
        primaryStage.show();
      public static void main(String[] args) {
        launch(args);
    }

  • Multiple JButtons inside JTable cell - Dispatch mouse clicks

    Hi.
    I know this subject has already some discussions on the forum, but I can't seem to find anything that solves my problem.
    In my application, every JTable cell is a JPanel, that using a GridLayout, places vertically several JPanel's witch using an Overlay layout contains a JLabel and a JButton.
    As you can see, its a fairly complex cell...
    Unfortunately, because I use several JButtons in several locations inside a JTable cell, sometimes I can't get the mouse clicks to make through.
    This is my Table custom renderer:
    public class TimeTableRenderer implements TableCellRenderer {
         Border unselectedBorder = null;
         Border selectedBorder = null;
         public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected,
                   boolean hasFocus, int row, int column) {
              if (value instanceof BlocoGrid) {
                   if (isSelected) {
                        if (selectedBorder == null)
                             selectedBorder = BorderFactory.createMatteBorder(2,2,2,2, table.getSelectionBackground());
                        ((BlocoGrid) value).setBorder(selectedBorder);
                   } else {
                        if (unselectedBorder == null)
                             unselectedBorder = BorderFactory.createMatteBorder(2,2,2,2, table.getBackground());
                        ((BlocoGrid) value).setBorder(unselectedBorder);
              return (Component) value;
    }and this is my custom editor (so clicks can get passed on):
    public class TimeTableEditor extends AbstractCellEditor implements TableCellEditor {
         private TimeTableRenderer render = null;
         public TimeTableEditor() {
              render = new TimeTableRenderer();
        public Component getTableCellEditorComponent(JTable table, Object value,
                boolean isSelected, int row, int column) {
             if (value instanceof BlocoGrid) {
                  if (((BlocoGrid) value).barras.size() > 0) {
                       return render.getTableCellRendererComponent(table, value, isSelected, true, row, column);
             return null;
        public Object getCellEditorValue() {
            return null;
    }As you can see, both the renderer and editor return the same component that cames from the JTable model (all table values (components) only get instantiated once, so the same component is passed on to the renderer and editor).
    Is this the most correct way to get clicks to the cell component?
    Please check the screenshot below to see how the JButtons get placed inside the cell:
    http://img141.imageshack.us/my.php?image=calendarxo9.jpg
    If you need more info, please say so.
    Thanks.

    My mistake... It worked fine. The cell span code was malfunctioning. Thanks anyway.

  • Catching mouse click on an irrigular shape image

    Is it possible to catch the mouse click on an irrigular shape image on a JPanel? Can I simply attach a mouse listener to the image?

    Hi,
    you should use a mouseListener, and test the coordinates of the click in the mouseClicked() method, then you can use the inside() method of the Shape to see if the click occured in the shape.
    Hope this will help,
    Regards.

  • Figuring out where a mouse click is under an image

    I want to create a JFrame (or JPanel) where the whole area is one big gif (or icon etc) and I want to make some areas of this panel react to mouse clicks and other areas display messages.
    There are two ways that I can think of doing this.
    The first is that I figure out the x and y coordinates of each area and check to see if each mouse click is within that area.
    The second way is to see if I can figure out how to put something like transparent JButtons over the areas that I want to accept mouse clicks (all the areas will be rectangular) and just do what JButtons do normally.
    The second way sounds easier but I don't know how to do that.
    Does anyone have opinions on which way I should do it?
    Thanks

    To me the first method sounds eaiser.
    A third possible idea? Add a bunch of JPanels to the frame and have split the image into several pieces that are painted by each JPanel. Then use a mouse listener to detect clicks. (Seems easier than trying to make JButton transparent and placing it at the correct point).

  • Disable Mouse Right click inside Adobe Acrobat PDF plugin

    Hi All,
    We are rendering Adobe live cycle pdf file inside html object tag.
    I have disabled toolbar , navigation bar using navpanes=0&toolbar=0.
    But when mouse right click reenable the context menu again.
    So Is there any way to disable mouse righ click inside Adobe Acrobat PDF browser plugin?

    I had the same problem after updating Firefox to version 4.0 and Acrobat Reader to Version X. For me (Win XP) what solve the problem was deleting the Acrobat Reader Plugin (nppdf32.dll) in the Firefox plugin folder (C:\Program Files\Mozilla Firefox\plugins). So now there is only one Acrobat Reader Plugin left namely the one in the Acrobat Reader plugin folder (C:\Program Files\Adobe\Reader 10.0\Reader\Browser).

  • Using mouse click to return image coordinates.

    Ok so I've been trying to figure out how to do this and it seems very complicated for something that really seems straightforward.
    Anyway. I have a camera that updates an image object on the front panel using a while loop. I have another image object that is updated with a still image when the "snap" button is pressed. Now what I want to do is to click on a point in the snapped image and have the VI return the coordinates of that pixel in the image coordinate frame.
    What I've got so far is an event structure in the while loop with the following to occur in the event "image object -> mouse down":
    Server reference (reference to the image object) -> Property node (last mouse position) -> output screen coordinates.
    I've got two errors that don't make a whole lot of sense to me (I haven't worked with event structures before): "event data node contains unwired or bad terminal" and "event structure one or more event cases have no events defined". This second one seems strange since I don't actually want anything to happen if there's no mouse click. The first one seems to refer to the element box on the left hand side of the event structure.
    The above is my lastest attmpt at sorting this problem and as far as I can see it should work. whatever about the errors, am I even taking the right approach with this? I'd have thought image cordinates would be a common enough thing but search the boards here, it would appear not...
    Kinda stumped here. Any help is much appreciated.
    Message Edited by RoBoTzRaWsUm on 04-14-2009 08:34 AM
    Solved!
    Go to Solution.

    Hello RoBoTzRaWsUm,
    I have taken a look at your VI, which has been taking a correct approach to the data you are looking for.  As you are using and event structure, you should be looking for an event to occur.  When using a Property Node, you are trying read an attribute of a control.  However, in an Event Structure, I believe you should be using an Invoke Node.  An Invoke Node allows your to read an event or write a method with the Control Class in LabVIEW. 
    1. Place down and Invoke Node from the Functions Palette in 'Programming'->'Application Control'
    2. Wire your Image Control reference to it
    3. Click Method, and select 'Get Last Event'
    4. Right click on 'Which Events' and 'Create Constant'.  Make the constant '1' in the array
    5. Read the 'Coordinates' Cluster from the left hand side of the Event Case by right clicking  and 'Create Indicator'
    You will find a piece of example code attached.
    Regards
    George T.
    Applications Engineering Specialist
    National Instruments UK and Ireland
    Attachments:
    UKSupportMouseClick.vi ‏39 KB

  • Getting mouse click coordinates with image button

    I'm using ADF Rich Client components in JDeveloper 11g Technology preview.
    I have to get the mouse click coordinates with an image button. In the page I put something like this:
    <af:commandButton text="commandButton1" icon="ambiente.jpg"
    actionListener="#{prova.listen}" action="#{prova.esegui}" />
    In the listener method of the managed bean I try to get the coordinates with this code:
    public void listen(ActionEvent e)
    FacesContext context = FacesContext.getCurrentInstance();
    String clientId = e.getComponent().getClientId(context);
    Map requestParams =
    context.getExternalContext().getRequestParameterMap();
    int x =
    new Integer((String) requestParams.get(clientId + ".x")).intValue();
    int y =
    new Integer((String) requestParams.get(clientId + ".y")).intValue();
    but it doesn't work. It seems that there aren't in the request the coordinates of the image point clicked. Is it true? How can I do that with ADF ?

    Hi,
    the mouse position is not part of the request parameters send. You will have to use client side JavaScript for this
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document>
    <f:verbatim>
    <![CDATA[
    <script>
    function handleMouseCoordinates(event) {      
    alert("x: "+event.getPageX()+" y: "+event.getPageY());
    </script>
    ]]>
    </f:verbatim>
    <af:form>
    <af:commandButton text="My Click Button" icon="/images/jdev_cup.gif">
    <af:clientListener method="handleMouseCoordinates" type="click"/>
    </af:commandButton>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Frank

  • On right mouse click, there is no "save as" or "copy image" when I want to save a pictureon line. I have to go back to IE to access this option. Is this not available? Many thanks, Joy

    On right mouse click, there is no "save as" or "copy image" when I want to save a picture on line. I have to go back to IE to use this option. Is this not available? Many thanks, Joy
    There are so many occasions on line when I want to save an image that I can't believe I can't do so using Firefox, which I find so good in all other ways. I can Bookmark, save a page or send a link, but not take a simple copy image.

    Hi, Many thanks for replying, it's much appreciated. I started Firefox in safe mode and found I had the full right click menu on a pic on my home page. However, after moving around the web, I've found that the problem still occurs in eBay and it doesn't make any difference in safe mode. still no full menu. After returning to normal mode, I find that this still stands i.e. I do get the full menu on other sites but not in eBay. As I often want to save a pic in Ebay and can do so in IE, I'm baffled as to why this one site is giving problems. As this is where I've mostly been trying to save pics, I didn't realise that it was a "one site" problem and not applicable to everywhere else. If IE didn't work in this respect, I could blame the eBay site, but it does, so that just makes it more puzzling - and very annoying! I have tried accessing Ebay direct, rather than clicking on the toolbar, but this makes no difference. Any further thoughts would be much appreciated. Joy

  • "Image Save As" not aviable because Contect Menu on right mouse click

    Hi,
    I have a web report with a sheet and a graph. I would like to save the graph via right mouse click "Image Save As" but the IE menu is not available because the SAP menu is active on right mouse button. How can I activate the IE context menu?
    Regards, Thomas

    Hi,
    I need more information. At the moment my object looks like this one.
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="CHART_1"/>
             <param name="ITEM_ID" value="TEST"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_2"/>
             <param name="TMP_CHART_DATA_HANDLE" value="IIP_0QWUSH2MVM2IIXXE5MMZ8LVHX"/>
             ITEM:            CHART_1
    </object>
    Regards, Thomas

  • Catch Keyevents inside mouse click

    hi,
    I want to catch diffrent key events(like shift +arrow key) inside mouse click how can i do that?                                                                                                                                                                                                               

    I have tryed it like this but i am getting same value of key. How can i get diffrent value for each key?
    (for example letter J or K should have diffrent key value when pressed)
    public void mouseClicked(MouseEvent me)
    /*me=new MouseEvent(me.getComponent(), int id, long when, ALT_DOWN_MASK, int x, int y,*/
         System.out.println("Key Event"+me.KEY_EVENT_MASK);
    System.out.println("me.getModifiers()"+me.getModifiers() );
         }

Maybe you are looking for

  • I upgraded to 6.0 and now can't get past the Q/A screen to get to my inbox.

    When I click on my Firefox desktop icon I go to a page that congratulates me for upgrading to 6.0. From there I cannot get to my email. I'm a technophobe and it's probably simple, but I don't need that initial page anymore. I want access to my email!

  • Fill_buffer() reports: poll() timed out. What does that error mean?

     

  • I can't  get my program to run correctly

    I made a calculator but i can't get the values to update correctly. If you run my code you'll see what I'm talking about. The value number isn't updating and I can only enter in a double digit number (using the buttons) as the initial number. I think

  • Sort Display in ALV Grid

    Hi Experts, Can we have a solution on ALV Grid Sort (slis_t_sortinfo_alv) with Subtotal(slis_fieldcat_alv-do_sum) that the field that was sorted will be on the header and not as subtotal in the display? Example: Material     |      Plant     |      I

  • Not Uploading...

    My Mac desktop app shows "Liber's Library – Updating". For the last two days no Uploading is taking place from "Uploading originals from ..... MacBook Pro". But my internet is on. Connection is smooth. All other work in internet is possible. My total