How to adjust mouse event with scaled DesktopPane

Hi
I am manjunatha, i am developing Data warehouse product, in this, i am showing inter-related Transforms in desktop pane, i given option to view the content of desktop pane with different scaled factor (ex 100%,50%,25%), when i will scale the content of desktop pane using Graphics class, only content will be scaled, but the events on the Internal frames will be referring 100% view only,(ie mouse event will not effected by scaled factor, so it will be point to 100% view points only, ex at first an Internal Frame will have bounds(10,10,200,200), after i will scale this to 10%, it will be drawn with (1,1,20,20) on the desktop pane, but internally its bounds will be (10,10,200,200) and mouse event will detect Internal Frame at (10,10,200,200) location , instead of scaled (1,1,20,20) location.
My question is how can i scale the Internal Frames and adjust relevant events to it?
(You can see screen shot of this page with (Mapplet View as screen name)
At www.MyDataWarehousing.com)

Did you ever find a solution to this? How did you scale all the components on resize?

Similar Messages

  • How to call mouse event on particular treecell

    how to call a mouseevent on a particular Treecell of a Treeview
    I have tried with setcellfactory but the effect is applied to the whole TreeView. How can i apply it to a particular TreeCell

    How can it be? It seems not.
    Please allow me to clarify my problem-
    I have jcomponents on a layer of jlayeredpane.
    Now I can use MouseListener on the layeredpane.
    Like to get coordinates of the mouse and showing in a textfield -
    private void jLayeredPane1MouseDragged(java.awt.event.MouseEvent evt) {
             projectNameID.setText("Mouse dragged");      
        private void jLayeredPane1MouseEntered(java.awt.event.MouseEvent evt) {
            projectNameID.setText("Mouse entered");
        private void jLayeredPane1MouseExited(java.awt.event.MouseEvent evt) {
            projectNameID.setText("Mouse exited");       
        private void jLayeredPane1MouseMoved(java.awt.event.MouseEvent evt) {
            projectNameID.setText("Mouse moved");       
        private void jLayeredPane1MousePressed(java.awt.event.MouseEvent evt) {
            projectNameID.setText("Mouse pressed");
            currentPoint.setText("("+evt.getX()+" , "+evt.getY()+")");
        }                                          But when my mouse moves on the jcomponent created on a layer then the mouse events don't work.
    That means I need to add mouse event for that component.
    Now how can I do that?
    Edited by: fireball003 on Feb 28, 2008 1:12 PM

  • How to limited mouse event in JPanel?

    I have a Jpanel with implements mouseListenert(mouseExited), how to limited the mouse event?
    this how to work:
    1. when my mouse exit ( move out) the jpanel, jpanel will disapprear and it's work
    2. in jpanel i add Jtextfield ( jpanel.add(Jtextfield) ). This is the problem, when my mouse over the jtextfield ( where jtextfield is in the jpanel ) my jpanel disapprear. It mean that when my mouse over jtextfield, my mouse exit from jpanel too.
    So how to limited mouse listener or what must i do?

    i don't know how to do that can you modify this sample code, that the child component do nothing when my mouse over it
    JTextField tf = new JTextField();
    JPanel panel = new JPanel();
    panel.addMouseListener(new MouseAdapter() {
             public void mouseExited(MouseEvent e) {
              panel.setInvisible(false);
    panel.add(tf);thx..

  • How to create contextual event with custom payload?

    I use the following code to invoke contextual event from my region via the "action-listener" of a command-link:
    <af:commandLink text="#{row[def.name]}" id="cl1"
    styleClass="tableLinkActive"
    actionListener="#{backingBeanScope.PanelToConveroFormManager.handleSelectedRow}">
    The following "action-listener" is designed to pass the current selected record key to the "consumer" of the contextual event:
    public void handleSelectedRow(ActionEvent actionEvent) {
    String currentRecordKey = getCurrentRecordKey();
    JUEventBinding eventBinding = (JUEventBinding)BeanUtils.getBindings().get("RefreshParentEvent");
    if (eventBinding != null) {
    ActionListener actionListener = (ActionListener)eventBinding.getListener();
    actionListener.processAction(actionEvent);
    How do I pass the "currentRecordKey" value as a custom "payload" via the event-binding "RefreshParentEvent" in the above code?
    Is there any code example on using contextual event with custom payload?

    Hi,
    the custom payload is referenced when you set up the event itself. You use EL in the custom payload definition to point to a managed bean method that when called accesses the current rowKey. The Java code you show just passes the ActionEvent of the ADF Faces command button and invokes the event. It does not manipulate the event definition.
    <eventBinding id="eventBinding"
                      Listener="javax.faces.event.ActionListener">
          <events xmlns="http://xmlns.oracle.com/adfm/contextualEvent">
            <event name="testEvent"
                   customPayLoad="#{mymanagedBean.rowKey}"/>
          </events>
        </eventBinding>Frank

  • How to bind mouse event in 3D

    I want to bind mouse click event of a simple button with z>0,
    but the area can cause the event of the button is wrong. Much small than the shape I can see in player.
    I don't know what should be noticed when bind mouse event in 3d?
    looking forward your answer, thanks a lot.
    in document class, i wrote:
    this.x = 0;
    this.y = 0;
    this.z = 10;
    this.btnPrev.addEventListener(MouseEvent.CLICK, this.onPrevClickH);
    //btnPrev is added by flash IDE

    this.x = 0;
    this.y = 0;
    this.z = 10;
    this.btnPrev.addEventListener(MouseEvent.CLICK, this.onPrevClickH);
    //btnPrev is added by flash IDE
    You are changing the z position of the Main Timeline object... I think you want the button to change z pos, not the whole timeline. If you just change the z of the button the hit area will work as expected. So, the code above would be:
    btnPrev.x = 0;
    btnPrev.y = 0;
    btnPrev.z = 10;
    btnPrev.addEventListener(MouseEvent.CLICK, onPrevClickH);
    //btnPrev is added by flash IDE

  • How can differ mouse event?

    In an mouse event, how can i find out whether right_button is clicked or not left_button?

    Try the following:
    if (e.getModifiers() == MouseEvent.BUTTON1_MASK) {
        System.out.println("Left mouse button was pressed");
    } else if (e.getButtonMask == MouseEvent.BUTTON3_MASK) {
        System.out.println("Right mouse button was pressed");
    }cheers,
    Greg

  • How to create a screen with scaling units to open & edit EPS files

    Hi all,
    I need some help in designing a screen where I can open EPS(Encapsulated PostScript) files and AI files(Adobe Illustrator) and edit them. I need the screen with scaling units along X and Y axes. Can any body please help me creating such a screen or please tell me are there any classes in Java Swing or other packages, or any APIs which are useful.
    Please guide me.
    Thank you all,
    Kalyan

    Hi try67,
    Thanks for your advise. You've saved me a lot of time. I'was looking through the JavaScripting guide but didn't take a look into API refference for some reason.
    For those, who're interested in the correct code is:
    var myRoot = this.bookmarkRoot;
    myRoot.createChild("Index");
    var Index = myRoot.children[0];
    Index.setAction("app.openDoc('index file name',this);
    This works only if your file is placed into the same directory.

  • How to adjust mouse or trackpad parameters for the user selection screen?

    This is not critical, but annoying.  I can change the mouse or trackpad parameters by user, so anyone can use their own mouse or trackpad adjustment.  However I can not locate how to change this parameters for the welcome or user selection screen.  In my case I have two users, both of us use the trackpad with the one touch for click function, so no one press physically the trackpad for a click.  However, as the default parameter is the touch function deactivated we have to actually click the trackpad in that exclusive screen.
    Another example with mouse, normally we use the mouse with almost double of the default acceleration, but when in the user selection screen the mouse assumes default configuration and feels super SLOWWWWWWW.
    Again, this is not critical, but would be very nice to be able to modify this parameters in the welcome screen.
    Tyrone Carrion

    For the login screen, you are not associated with a normal user, but the system defaults...try logging in to the Admn account and change the behavior there...those settings should then apply to the login screen.

  • How to process mouse event in the Label control?

    I am now tring a MorphFx program which would like implements a Squeak-Like-Morph operation for JavaFX nodes( include shapes, controls and others). currently it is only a prototype on [http://code.google.com/p/wangzaixiang/wiki/MorphFx]
    and there is webstart demo: [http://wangzaixiang.googlecode.com/svn/trunk/LearnJFX/dist/LearnJFX.jnlp]
    and a applet demo: [http://wangzaixiang.googlecode.com/svn/trunk/LearnJFX/dist/LearnJFX.html]
    There is a problem for new created Label control, which dont fire the "onMousePressed" or other "onMouseXXXX" event, and i have not found any way to do that.
    Can somebody tell me how can i add a onMousePressed event to a label and make it works?
    Very thanks.

    I can confirm the same behaviour when you try to capture eg the mouse clicking events on a progress indicator (also MouseMove). These kind of things are a bit useless most of the time in apps, but nevertheless in fact their event listeners should be correctly implemented or otherwise well documented if not. And in my opinion the javaFx API as well as the language specification/documentation can be far more written in details as it is now. So actually I don't know if SUN wanted that kind of behaviour for controls like that or not.
    Somebody from the javaFx SUN team can answer perhaps ?
    PS
    Of course a workaround with shadow node behind works well if the events will propagate through the label. I didn't test it but think this will work.
    -G
    Edited by: guyvo on Jan 19, 2010 1:50 PM
    Edited by: guyvo on Jan 19, 2010 1:55 PM

  • How to queue custom events with out using af:calientListener.- onKeyUp.

    Hi,
    I have a custom component ( extending richinput text).
    defined a new attribute called "onkeyup" and added necessary logic in Renderer. Some thing like
    write.writeAttribute("onkeyup" , "handleEvent()");
    I rendered the java script code too ..... in my custom renderer. ( I neigther want to write java script in metaContainer of document tag nor wants to use resource tag..)
    and the handleEvent code is something like this.
    function handleEvent()
    In this method i want to write the code which pushes my custom event to the queue.
    some thing like this..
    component = event.getSource();
    AdfCustomEvent.queue(component, "customEvent",{payload:component.getSubmittedValue()}, true);
    event.cancel();
    Usually if use a clientListener then it will call the method {  handleEvent(event)  } passing event parameter so that we can get the source of that event.
    But as i dont want to use the clientEventListener.... as of now... i can't get the component because i don have the event object with my method.
    So could any one please letme know , how can i queue my custom event in to my customcomponent... with out using ClientListeners.
    Edited by: mchepuri on Nov 9, 2009 10:04 AM

    Hi,
    AFAIK, you cannot queue an event to the serverListener without a clientListener.
    -Arun

  • How to make different events with different colors on calendar, on my new iPad

    how to make events on calendar with different colors ?

    Sergio,
    The color of an event is dictated by the color assinged to the calendar it's on.
    Tap Calendars then tap Edit to either changed the color of an existing calendar or to add a new one.
    Matt

  • Mouse event with Javascript API

    Hi,
    Is it possible to register for mouseclick with the javascript API as with the normal API reference ?
    What I have done in javascript is :
    Add button and menu item to draw circle annotations.
    When you click on a button or a menu item its draws a circle annot on the current page of the doc, but the coordinates are hard coded.
    What I want to do, is click a button to say I want to draw my annot(kind of activate an event listener), then click in the doc where I want the annot to be drawn. So I need to capture the mouse position : I found mouseX and mouseY properties for the doc.
    Thanks

    No, you can only register for mouseclicks from a plugin.
    Leonard

  • How to get mouse events inside the components of a JTable

    Hi!
    I have question, I think this is related to very basics of swing, however I couldn't find a solution/answer on the web.
    I have a JMyTable(a descendant of JTable), and one value on a row/column is a special class, ie. MyClass. for this class I registered a cell renderer, MyRenderer. and this renderer returns a JMyComponent, which is actually a descendant of JComponent.
    Now, if I call enableEvents(AWTEvent.MOUSE_EVENT_MASK) in the constructor of JMyTable I get events posted on processMouseEvent method. However, the same doesn't work for JMyComponent. I mean, I call enableEvents, however processMouseEvent method is not triggered.
    Could someone explain/help me with this issue?
    Thanks,
    Ozgur

    Your cell renderer components are just that: renderers. They're not added to the table and do not appear in the component hierarchy. This is because tables may be very large and adding components in would be very resource hungry.
    See here for details
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
    If you want to detect events you will need to listen to events on the JTable itself, and use the rowAtPoint()/columnAtPoint() methods to determine the cell. So for instance where you might want mouseEntered() on your cell component you would have to use mouseMoved() on the table and detect when the cursor moves to a new cell.

  • How to process all events with a status of "No Match Found"

    Hello Everyone,
    I have a requirement of processing records reconciled from the target on the basis of their status as 'No Match Found'. Now I am considering only OIM as a authentic source of Provisioning, so all these records with 'No Match Found' status should get disabled at the target as and when OIM gets an event associated for it.
    Can anyone suggest me an idea.

    I don't believe an entity adapter will work because you cant do a pre-insert, and the event might not have completed yet on the post-insert.
    There are no APIs so you will need to create an instance of the OIM database and run the SQL queries and process the information within them and then you can use APIs. If you create a scheduled task, you need to use the following code which should provide you enough information to perform the query:
    tcDataSet dsList = new tcDataSet();
    String query = "select USR_KEY from USR";
    log.debug(query);
    try {
    dsList.setQuery(getDataBase(), query);
    dsList.executeQuery();
    if (!dsList.isEmpty()){
    log.debug("Total Rows Found:" + dsList.getTotalRowCount());
    result = true;
    for (int i = 0; i &lt; dsList.getTotalRowCount(); i++) {
    dsList.goToRow(i);
    System.out.println(dsList.getLong("USR_KEY"));
    users.add(dsList.getLong("USR_KEY"));
    log.debug("User Key: " + dsList.getLong("USR_KEY"));
    }else{
    log.debug("No Users Found");
    result = false;
    } catch (tcDataSetException e) {
    e.printStackTrace();
    result = false;
    -Kevin

  • IOS Mouse events with buttons in Flash Professional

    I have 2 images that I have conversted to buttons and exported to actionscript.
    I have placed one object on the screen.
    When I "roll_over", I want it to change to the other image so people know they are on the button.
    When released, I have a "MOUSE_UP" event to trigger a function.
    The problem is if I just use the regular Flash Proffessional "Up, Over, Down & Hit" that I get when I double click on a button, it does not change if I touch the screen and then move over to the object while still touching the screen.
    I can do it in code and trap the evens, but I do not know how to change the pictures.
    Does anyone have any ideas?
    Here is my test file.
    Thanks, Patrick

    There is no Mouse_OVER events for Touch devices.

Maybe you are looking for

  • Unable to load database connector

    Hi. I am trying to get a report running through the JRC in Crystal Reports XI. Whenever I try to run the report, it pulls up the viewer, but then gets the following message: "Unable to load database Connector" 'com.crystaldecisions.reports.queryengin

  • How do I get my music playlists back after the new update?

    After the new iTunes Update this week, the update deleted my personalized music playlists, went back to the default playlists, and all the albums I deleted doubles of songs are all back since the new update!  Is there a way to fix this or am I going

  • Strange problem running J2SE 1.4.2_05 SDK

    Hi! I am Finnish computer teacher in highschool. Last summer we had new computers in our class and SDK doesn' t run any class files anymore. For example following code: public class Moi{ public static void main(String[ ] arguments){ System.out.printl

  • Partner for clearing customs

    We ship from the US to the European Union using Fedex SPOC (single point of clearance) which mean all goods are imported into France prior to shipping to the end destination country.  We need a partner which indicates our Company entity in France is

  • App wont download from App store

    Hi, I am currently based in South Africa, but I download most of my free apps from the US apple store. When i decided to buy an app ($5.99) from my Ipad mini, it asked me to fill in my billing details, and so i did using my father banking details. it