How do I link a bytton to a mouse event on a canvas?

Hi,
I'm trying to write a simple drawing program that allows a user to click a button at the bottom of a frame, and then click the mouse on the canvas and produce a shape. eg: a button called 'square' allows a user to click their mouse on the canvas and produce a square etc.
The problem is, I know how to create the shape on the canvas with a mouse click, and also how to create the buttons, but I currently can't seem to find out how to link them together so the button tells the mouse what to produce on the canvas.
I'm a bit lost with Java at the moment and would appreciate any help.
Many thanks

Hi all,
There's a similar discussion here http://forums.adobe.com/thread/1266090. Check this out.
Thanks,
Preran

Similar Messages

  • Can/ how do I link two or more "projects" - not events or clips - "projects" together in final cut pro 10?

    Can/ how do I link two or more "projects" - not events or clips - "projects" together in final cut pro 10?

    Thanks Tom -
    I created two "sequences". They are currently listed individually in the "project library". Now I want to take sequence "B" and attatch it in it's entirety to the end of sequence "A" - forming one long sequence.
    I have tried to drag sequence "B" and drop it into "A's" timeline. I have tried to creat a compound clip. I'm either missing something - or - you can create a compound "clip" or a compound "event" - but perhaps you cannot link to "projects" together.
    Does this help descibe my problem?
    Thanks again.

  • How do I link a Contact to a Calendar event?

    When I set up a new Event in Calendar, I would like to be able to "link/sync" it to an existing Contact, simply to have info about the contact available without having to type in the Contact info again into the Event.
    I do not want to send the Contact an email- in fact I may not even have the Contact's email.
    I just want to be able to "link/sync" the Event with a Contact.
    This seems to me to be a fairly basic and common thing to do - but I can not figure out how to do it.
    Thank you.

    I was looking to have it input the physical address information not the contact name & email address.
    This way it would input the physical address in the Location field.
    When I use my calendar app on my phone it is done this way, so I thought Thunderbird would be capable of the same function.

  • How to make response to double click of mouse event

    could anyone give me some hints? I wanna a component to respond to a double click.But it triggers by single click,how to solve this problem?

    Hello,
    Let's say that 'c' is your component, you should have a code such as this one :
    c.addMouseListener(new MouseAdapter() {
       public void mouseClicked(MouseEvent e) {
          if (e.getClickCount() == 2) {
             // you have a double click on c
    });

  • How to update link and import data of relocated incx file into inca file?

    Subject : <br />how to update link and import data of relocated incx file into inca file.?<br />The incx file was originally part of the inca file and it has been relocated.<br />-------------------<br /><br />Hello All,<br /><br />I am working on InDesignCS2 and InCopyCS2.<br />From indesign I am creating an assignment file as well as incopy files.(.inca and .incx file created through exporing).<br />Now indesign hardcodes the path of the incx files in inca file.So if I put the incx files in different folder then after opening the inca file in InCopy , I am getting the alert stating that " The document doesn't consists of any incopy story" and all the linked story will flag a red question mark icon.<br />So I tried to recreate and update the links.<br />Below is my code for that<br /><br />//code start*****************************<br />//creating kDataLinkHelperBoss<br />InterfacePtr<IDataLinkHelper> dataLinkHelper(static_cast<IDataLinkHelper*><br />(CreateObject2<IDataLinkHelper>(kDataLinkHelperBoss)));<br /><br />/**<br />The newFileToBeLinkedPath is the path of the incx file which is relocated.<br />And it was previously part of the inca file.<br />eg. earlier it was c:\\test.incx now it is d:\\test.incx<br />*/<br />IDFile newIDFileToBeLinked(newFileToBeLinkedPath);<br /><br />//create the datelink<br />IDataLink * dlk = dataLinkHelper->CreateDataLink(newIDFileToBeLinked);<br /><br />NameInfo name;<br />PMString type;<br />uint32 fileType;<br /><br />dlk->GetNameInfo(&name,&type,&fileType);<br /><br />//relink the story     <br />InterfacePtr<ICommand> relinkCmd(CmdUtils::CreateCommand(kRestoreLinkCmdBoss)); <br /><br />InterfacePtr<IRestoreLinkCmdData> relinkCmdData(relinkCmd, IID_IRESTORELINKCMDDATA);<br /><br />relinkCmdData->Set(database, dataLinkUID, &name, &type, fileType, IDataLink::kLinkNormal); <br /><br />ErrorCode err = CmdUtils::ProcessCommand(relinkCmd); <br /><br />//Update the link now                         <br />InterfacePtr<IUpdateLink> updateLink(dataLinkHelper, UseDefaultIID()); <br />UID newLinkUID; <br />err = updateLink->DoUpdateLink(dl, &newLinkUID, kFullUI); <br />//code end*********************<br /><br />I am able to create the proper link.But the data which is there in the incx file is not getting imported in the linked story.But if I modify the newlinked story from the inca file,the incx file will be getting update.(all its previous content will be deleted.)<br />I tried using <br />Utils<IInCopyWorkflow>()->ImportStory()<br /> ,But its import the incx file in xml format.<br /><br />What is the solution of this then?<br />Kindly help me as I am terribly stuck since last few days.<br /><br />Thanks and Regards,<br />Yopangjo

    >
    I can say that anybody with
    no experience could easily do an export/import in
    MSSQLServer 2000.
    Anybody with no experience should not mess up my Oracle Databases !

  • How do i link a flash file to a web site in dreamweaver 8

    This is a multi-part message in MIME format.
    ------=_NextPart_000_0059_01C7A541.7942B2A0
    Content-Type: text/plain;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    Hi
    How do i link a flash file to a web site in dreamweaver 8
    Thanks
    ------=_NextPart_000_0059_01C7A541.7942B2A0
    Content-Type: text/html;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=3DContent-Type content=3D"text/html; =
    charset=3Diso-8859-1">
    <META content=3D"MSHTML 6.00.6000.16448"
    name=3DGENERATOR>
    <STYLE></STYLE>
    </HEAD>
    <BODY bgColor=3D#ffffff>
    <DIV><FONT face=3DArial
    size=3D2>Hi</FONT><FONT face=3DArial =
    size=3D2></FONT></DIV>
    <DIV><FONT size=3D1>
    <P><FONT size=3D3>How do i link a flash file to a
    web site in =
    dreamweaver=20
    8</FONT></P>
    <P> </P>
    <P><FONT face=3DArial =
    size=3D2>Thanks</FONT></P></FONT></DIV></BODY></HTML>
    ------=_NextPart_000_0059_01C7A541.7942B2A0--

    In Flash. There is no way to apply an HTML link to a swf
    file.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Dave" <[email protected]> wrote in message
    news:f3s8f0$cla$[email protected]..
    Hi
    How do i link a flash file to a web site in dreamweaver 8
    Thanks

  • How can I link from one flash document to another with buttons?

    Hi,
    From the question above, you can tell that I'm very new to flash, especially with scripting. Total noob.
    I watched my instructor's videos and I'm still stumped. He didn't explain it very well.
    For starters, I am using Flash CS6, but I clicked on AS1.0 and AS2.0 from the drop down mention in the actionscript window for the script below, since that is what my instructor used.
    What I have now are various pages I've already created in flash that are different pages in my website, including a splash page with an enter button.
    For example, I want the enter button to link to another .swf or .html file when it is clicked. This file will be the main page.
    I tried using this script that my instructor mentioned in the video on the button layer:
    on (release); {
        getURL("page1.swf");
    the "page1.swf" file is already in the same folder in my computer as my splash page and I even imported it to the library of my splash page.
    From my instructor's video demo, that should be apparently all that is needed.
    But I cannot get this to work.
    I tested the file and this is what flash comes up with:
    In the output tab:
    ReferenceError: Error #1065: Variable TCMText is not defined.
    In the compiler errors tab:
    Scene 1, Layer 'Layer 28', Frame 1, Line 1
    1180: Call to a possibly undefined method on.
    Scene 1, Layer 'Layer 28', Frame 1, Line 1
    1120: Access of undefined property release.
    Scene 1, Layer 'Layer 28', Frame 1, Line 2
    1180: Call to a possibly undefined method getURL.
    Any thoughts? My instructor also recommended that I embed the .swf into an .html, but he obviously didn't tell us how to do that!
    Also, why doesn't script assist work with AS3?
    Thank you so much!

    Okay so I changed it to AS1/AS2.
    Now it says this:
    Scene=Scene 1, layer=Layer 28, frame=1, Line 1
    Mouse events are permitted only for button instances
    Scene=Scene 1, layer=Layer 28, frame=1, Line 4
    Syntax error.
    I am very confused.
    Also, since all my other pages are in AS3, is there some way I can use another script in AS3 that accomplishes the same task?
    Can someone please provide me with the correct script to use?
    Thank you so much! I feel that people here are much more responsive than my instructor is! Thank God for this forum!

  • How can I link two frames via a button on one of the frame?help Plz

    Ok,here is the problem. I got two fully working java frames,each has different funcion. On one of the frames(my home Frame" Frame 1" ) i got a button called "Add User", when i press it i should then get my other frame(Frame2) to popup/run. in Frame1 i got this code as action for the add user button.Note: each Frame have thier own Main class.
    public void actionPerformed (ActionEvent e)
    if (e.getSource()==jbtnAddUser)
    // new Frame2(this,"hshsh",jb);
    ////////////// The commented line is where i am not sure what to put in there, Frame1 is the name of my Frame 2 class......
    Please could anyone tell me how do i link Frame 2 to Frame 1....i appreciate it....Max

    You can create both together on pgm startup (instaniation of the class).
    Next for frame1 - I'll call it - you can setBounds(int, int, int, int) and setVisible(true); When you press the button on frame1 to get frame2, you can then do frame1.hide(), followed by frame2 setBounds and setVisible. Finally, when you are done with frame2 you can do frame2.dispose() and frame1.show(). try that.

  • HT5622 When trying to log on to I-Cloud with my Apple Id, I keep getting the message that this is a valid Apple Id but not an I-cloud account???How do I link my I-Tunes Apple Id with I-Cloud?

    When trying to log on to I-Cloud with my Apple Id, I keep getting the message that this is a valid Apple Id but not an I-cloud account???How do I link my I-Tunes Apple Id with I-Cloud?

    You are logging in iCloud for the first time. In this case, first you need to log in iCloud on an iPhone, iPad, iPod touch or Mac. See > http://www.apple.com/icloud/setup
    If you have not got a device to set iCloud up, you cannot use it. You can only use iCloud on your PC if you have got an Apple device

  • How do I link one button to two slices?

    Hello,
    I need some help please. How do I link one button to two
    slices? or combine two slices to make one slice, or make a true
    polygon shape out of the slices, it will make the polygon shape but
    it leaves the the red guide lines and I cant work under that
    slice... if you understand. Will someone please help. Thank you so
    much.

    heathrowe wrote:
    > Did you Hide Slices?
    >
    > Select the Pointer Tool and click your Object? It should
    get selected.
    >
    > What happens when you mouse over the 'star' object? Do
    you get the 'object
    > selection' bounding area appear? Bounding area should
    appear red when you mouse
    > over it? Yes/No!
    >
    > Also, go to your Layer Panel and make sure that your
    object/Layer is not
    > 'locked'. Look for little 'padlock' icons next to the
    Layers. If you see it,
    > click it, to toggle it to 'off'.
    >
    > h
    >
    Also make sure you are not in PREVIEW mode in the document
    window.
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    http://www.communityMX.com/
    CommunityMX - Free Resources:
    http://www.communitymx.com/free.cfm
    .:Adobe Community Expert for Fireworks:.
    Adobe Community Expert
    http://tinyurl.com/2a7dyp
    See my work on Flickr
    http://www.flickr.com/photos/jim_babbage/

  • How can i link my E-mail with my iPad in a way that i can delete my messages from my email inbox server not from my iPad inbox only?

    How can i link my E-mail with my iPad in a way that i can delete my messages from my email inbox server also not from my iPad inbox only?
    Because when i delete emails from my iPad inbox, it will be deleted on my iPad only but when i check my email inbox server from the browser its not deleted!
    So how can i set up this link so when i delete any email from my iPad it will be deleted from my email inbox server also?

    Hi Pierrot10,
    Insert your backup disc (or plug your external hd), then open Mail.
    In the File menu, click *Import Mailboxes* and follow the steps for a *Mail for Mac OS X* transfer.
    Navigate to your CD/DVD's or external HD's backup and hit "OK".
    This should create a new "Imported" folder in Mail with all your old messages in it, that you can then rearrange as you wish, creating new mailboxes etc.
    Axel

  • Hi my name Abukar I had an old apple ID and I had problem with signing it so I decided to make a new apple ID with a new email address, so how can I link with two apple IDs and how can I get back all my previous apps that I purchased before, I cloud stuff

    Hi my name Abukar I had an old apple ID and I had problem with signing it so I decided to make a new apple ID with a new email address, so how can I link with two apple IDs and how can I get back all my previous apps that I purchased before, I cloud stuff

    It is not possible to do that.
    Allan

  • Hello - downloading app problems - this phone can only be usedto download apps in uk or something - think i am linking to the us apps  - how do i link to the uk apps?

    hello - downloading app problems - this phone can only be usedto download apps in uk or something - think i am linking to the us apps  - how do i link to the uk apps?
    ta

    You're welocme
    Depending on the size of the app or the connection speed when using Wi-Fi it could take a little longer to download. You can also try to download it onto your computer, might be faster, and sync it to the phone after that.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • How display attachment links in a list view in SharePoint 2013?

    Hi all,
    I'm looking for a way to display attachment links in a list in SharePoint 2013. There are few resources online to achieve this in SP2010 and SP07. Your help is much appreciated.
    Thank you.

    Hi Ram Sampath:
    You can use Event Receiver and create another list(ListA) to record your attachment link.
    Maybe your process is:
    Users add list items and attachments
    List event will be fired
    Use Event Receiver to get attachment url and then Write into ListA
    You also can refer to the following web site:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/b693eb84-b846-4f0f-93c1-276cf931c746/how-to-get-attachment-in-itemadded-event-receiver
    http://stackoverflow.com/questions/19077770/how-to-retrieve-list-item-attachments-with-sharepoint-2013-event-receiver-in-cor

  • How can I link contacts (e.g.. Facebook and Exchange) in Mountain Lions Contact App

    After I installed ML and setted everthing up, everthing is fine. On my iPhone and iPad as well as on the Mac the contacts are there. Alle contacts with same Name / Email are linked. But some, where name is not 100% matching are not. On iPhone and iPad i can link them manually but this linking is not synced between the devices. Well anyway, this is not a problem. Then i tried to link the respective contacts in Contact App on the Mac. There seems to be no option to do that. How can I link contacts on the Mac?
    Thx
    Jan

    Do you think it's acceptable if I simply put the contact email address without a link so users can just look at it and then copy and paste into their own web client/browser?
    You have to be a masochist to consciously publish an email address on a site anymore.   In a matter of weeks or months, you will get hit with so much spam mail, you won't want to open your inbox.
    Use a form-to-email-processing script in PHP, ASP or whatever programming language your server supports.  Find one that hides your email address and has good spam prevention built-in.  It may take you an entire day to set-up your first contact form but it's worth it.  Otherwise, use a service. See links below:
    Form-mailer.php script from DB Masters
    http://dbmasters.net/index.php?id=4
    Forms to Go from Bebosoft (script generating software)
    http://www.bebosoft.com/products/formstogo/overview/
    Wufoo.com (on-line form service)
    http://wufoo.com/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web-design.blogspot.com/

Maybe you are looking for

  • How to change graph based on the input date given by the user

    Hi all, I am using jdevloper 11.1.2.1.0,In my case i need to draw a graph depending on the date range given by the user.Whenever the user changes the date the graph should change according to that.So can anyone help regarding this. Thanks in advance

  • Recover Database without backup

    Hi Joel, I have read most of your postings regarding database recovery, but still encounter problems. The background is: Our NT server was crashed last weekend, due to harddisk failure. We are able to retrieve back all the datafile, control file, eve

  • How to determine which column is currently sorted on?

    When my application closes down I grab all important state information from the various views in my application and persist the state information to a db. On application startup I retrieve the state information and reload all my views with their prev

  • How to correct start failover after loosing disk0 on one of ASA

    Hello, guys. I have some problems with correct answer. One CF in one of ASA had died from active/standby failover cluster few days ago. So all works perfectly. But now I have: asa-5520/act# sh fail Failover On Failover unit Secondary Failover LAN Int

  • How to install .jar/.jad Files without MS Windows?

    Hello, it would have been nice if Nokia would also think of non-MS-Windows users.... I have downloaded a software package from nokia.com, it consists of two files: a *.jar file and a *.jad file, How can i install them on my phone without Nokia Suite?