In java,how to trigger an event in one class from an event in another class

i need sloution to thisbecause, when the swing components are colloborating each other,i need to control the components with respect to others events.

eventListeners are the way to go.
-Js

Similar Messages

  • How to trigger the Process Chains in BI from ECC

    HI Friends,
    Can let me know  How to trigger the Process Chains in BI from ECC. Please let me know.........

    Hi,
    1) Define a Custom ABAP Program (eg : Z_EVENT_RAISE)..........call the FM : BP_EVENT_RAISE or RSSM_EVENT_RAISE..........and trigger an event towards BW .........specify BW as RFC destination...........
    2) Create a R/3 Job in SM36>> use the Program Z_EVENT_RAISE ......
    3) In BW schedule the PC..........and in the Start variant use this Event..........
    http://sapbiwtutorials.blogspot.com/2009/03/how-to-trigger-process-chains-in-bw.html
    It can be help full
    Regards,
    Edited by: subba2010 on Aug 19, 2010 6:51 AM

  • How to copy an array element in one class to an array in another class?

    Hi,
    I have a ClassRoom class that stores a list of Student objects in an array. How would I copy a Student object from the Student[] array in the ClassRoom class to an array in another class?
    Is it something like this:
    System.arraycopy(Students, 2, AnotherClass.Array, 0, 2);In an array do the items get copied over existing array elements or can the be added to the end? If so, how would I specify add copied object reference to the end of the array in the other class?

    drew22299 wrote:
    Hi,
    I have a ClassRoom class that stores a list of Student objects in an array. How would I copy a Student object from the Student[] array in the ClassRoom class to an array in another class?
    Is it something like this:
    System.arraycopy(Students, 2, AnotherClass.Array, 0, 2);In an array do the items get copied over existing array elements or can the be added to the end? If so, how would I specify add copied object reference to the end of the array in the other class?System.arrayCopy will overwrite whatever is already in the array. It is your job to make sure it copies into the proper array location.
    That being said, you're only moving a single student. This is not something you would use arrayCopy for, as you can just do that with simple assignment. Also, you should consider giving Class a method to add a student to its student list, as the class should know how many students it has and can easily "append" to the array.
    Note: I hope you noticed the quotes around append. Java's arrays are fixed size. Once allocated, their size cannot change. You may want to consider using one of the List implementations (ArrayList, for example) instead.

  • How can I select more than one song from the search results?

    I want to create playlists based on certain words in the song title. For example, I may want to create a playlist of all my songs with LOVE in the title.
    Doing the search is easy, but I can't select more than one song at a time. Is there any way in iTunes 12 for Windows to do this? I found an answer in iTunes for Mac, and it basically says to "un-check "Search Entire Library." " but I don't see that option in iTunes for Windows.
    Here is the link to that question: how can i select more than one song from drop down search bar
    I hope some Windows user can help me out.

    Found the "Search Entire Library" option - click on the small (VERY small for my eyesight) down arrow next to the magnifying glass. Also need to select "Filter by: Songs", and then the songs in the main window show the results.
    I'm going to leave this up on the board because 1) in case someone else has this question, and 2) I don't know how to delete it anyway.

  • How can i take photoshop off one computer and put it on another

    How can I take photoshop off one couputer and put it on another?

    Hi Beth, welcome to the discussions!
    Might be a good idea to also post over in the iPhoto forum if you haven't tried this yet as this is a common topic on their boards.
    You may be able to get your iPhoto library back by rebuilding it. I've done it, but's it's been a long time, so don't want to mislead you on anything. The guys over in the iPhoto forum are real experts and should have some fixes for you.

  • How to transfer game app including its data from an ipad to another?

    how to transfer game app including its data from an ipad to another?

    Do both iPads use the same Apple ID?
    How to Transfer Everything from an Old iPad to New iPad
    http://osxdaily.com/2012/03/16/transfer-old-ipad-to-new-ipad/
    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device
    http://support.apple.com/kb/HT2109
    Moving Content to a New iPad
    http://tinyurl.com/qzk2a26
    How to Transfer App Data and Game Saves from One iOS Device to Another
    http://lifehacker.com/5891964/can-i-transfer-app-data-and-game-saves-from-my-iph one-to-a-new-ipad
    How to transfer data from your old iPad to your new iPad
    http://www.imore.com/how-transfer-data-your-old-ipad-your-new-ipad-air-or-retina -ipad-mini
    Transferring your prepaid cellular data account depends on your carrier. AT&T lets you move it yourself when you go to Cellular Data in Settings and log into your account with your previous AT&T user name and password. For iPads with Sprint service, you can set up an account on the new iPad and contact Sprint Customer Care (888-211-4727 and go through the menus) to deactivate the old plan and get credit for unused service. For Verizon, call the company’s customer service number for mobile broadband support (800-786-8419) and ask to have your account transferred.
     Cheers, Tom

  • How can i transfer more than one file from server to client

    Hi,
    our requirement is transfer more than one files from server to client using the
    webutil_file_transfer.as_to_client_with_progress.One file transfer is already working in our system.If anybody know the solution please inform
    regards
    mat

    just an idea ...
    for this purpose let us put aside security concerns and other potential problems....
    -- Get the content of a server directory with Filter and create zip file
    1) create a class that implements java.io.FilenameFilter ...
    2) define accept() method ...
    3) call File.list() with the filter as a parameter. The returned array of strings will have all the names that passed through the accept() filter
    4) use java.util.Zip to create ZIP file on the server side
    -- I think it is better to create this functionality as a separate Java class, put it in required folder and after it
    -- use Forms->Program->"Import Java class" to create pl/sql wrappers, than to create wrappers for all classes and code in pl/sql
    5) use webutil to transfer file on the client
    6) use Java on client side to unzip transferred file
    if you think this is not too complicated, you should try ...
    Regards,
    Vladimir

  • How can i sync more than one folder from My Pictures to my iphone 4?, how can i sync more than one folder from My Pictures to my iphone 4?

    Hi,
    how can I sync more than one folder of pics from My Pictures on my computer to my iphone?

    http://support.apple.com/kb/HT4236

  • How to subtract ith position of one array from the ith position of another

    Hi, everyone,
    In my program, I subract one array from another. It should be like X(i) - Y(i)
    Can someone explain to me how I can make sure that I'm subracting ith value of array 2 from the ith value of array one?  Not , for example, X(i)- Y(i+1)?
    Thank you
    Solved!
    Go to Solution.

    Hopefully, you are not doing anything more complicated than this:
    This does X(i) - Y(i).
    Message Edited by Dennis Knutson on 12-21-2009 10:59 AM
    Attachments:
    Subtract.PNG ‏2 KB

  • How do I manage more than one Ipod from the same computer?

    I just bought my boyfriend an Ipod and I want to set it up for him before I give it to him. We only have one computer and I'm not sure what to do. Can we both work from one itunes or can I install it twice?

    Just plug it in.
    You do not need to install iTunes twice.
    See this -> How to use multiple iPods on one computer

  • Iphoto 09 losing whole events and taking pics from other events

    I have just encountered a very very annoying problem with iphoto09.
    i added a ton of new pics yesterday and put them in to 2 events.
    i then made a few smart albums so that i could sync them to my iphone.
    after doing this. one event dissapeared completely and on my iphone put random pics from other events in its place and the other only kept one pic and also put random pics in.
    i managed to locate one of the events which says it has 72 pics in but actually only has 1. i did a batch change of date and the event reappeared but with only the 1 pic plus 71 random pics from other events, which have now dissapeared.
    This is really annoying. does anyone have any idea what happened?

    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    Regards
    TD

  • How to prevent executing more than one client from a machine?

    Hi all,
    Currently I am doing a client server project in java. The client is java swing. There is a requirement to prevent executing more than one client from a machine.
    Now I am relying on socket for this. I listen to a port, say 15000 and when the second session is started it would give an exception at the socket. I know that this a trivial method. Can anybody please suggest a better method. Also is it possible to bring focus to already executing client, if the user tries to execute the client program again in the same machine?
    An early answer to this question is highly appreaciated.
    Thanks in advance
    SSM

    Thanks for the suggestion, but I dont think we can use socket for this. And again if we use file for the same as you described, I think it would sometime create a some serious side effects. Suppose after one client session is invoked, the power goes off. In this case the client shut down is not in the normal sequence and hence we cannot remove the file programaticaly. This creates big problem when the user tries to run client again.
    I am really interested to know, is there any standard way in java which can be used to achieve this. Also is it possible to give focus to already executing client program if the user tries to invoke the client again.
    Thanks
    SSM

  • How to keep layer effects on one layer from affecting an other layer?

    Hello:
    I am quite new to Ps and though I am reading as much as possible I could still use a bit more help.
    I have found that when I use the Layer Styles on one layer and then make a new layer or select a shape that creates a new layer that when I go to add Styles to the new layer/new shape the previous layer is affected by how I set the Bevel & Emboss, Direction, Altitude, Drop Shadow etc etc.
    For instance, let's say I have a ...
    BG > New Layer > draw an ellipse and then add a Bevel with an  > Angle of 89 and an Altitude of 30 and then I add a New Layer > open the Styles and go to change the Angle to say +89 or whatever and the Altitude to say 45 ... the first Layer/Shape Effects change.
    Can someone tell me how I can keep one Layer from being affected by an other Layers Effects'?
    I have found that if I Rasterize a Layer Effect that I can add a "double" effect on the same layer but I haven't tried the to do this with separate layers. However, for most of the work I am doing I cannot use the Raster because everything needs to be true vectors.
    I would certainly and greatly appreciate any ideas/advice that anyone may have. If you need more info from me or a better explanation I will try to better explain.
    I have a Dell Laptop/Windows 7 Home Premium that's a 64 bit
    Thank you in advance for your time
    Kara

    Thank You Trevor
    Sorry for forgetting to click the correct button before now
    Hope all is well with you.

  • How to trigger navigation to a portal iView from server side event handler

    Hi,
    I am modifying the workset map application. I have created custom URL links under each iView which should navigate to different iViews depending on some business logic. So I had to provide a custom event handler for these iVIew links and the path to the next iview is dynamically created by the code in the event handler. Once the new PCD path is generated, the event handler should trigger a navigation to that PCD object. Which APIs can I use to trigger this navigation from the server side event handler? I have done this before in webdynpro where we used WDPortalNavigation (.absoluteNavigation or .relativeNavigation). Is there something similar that i can use in this case (i.e. when developing a simple Portal Application from an AbstractPortalComponent)?

    Hi,
    On my understanding of your requirement.
    the best solution what i think is use Object Based Navigation(OBN).
    Is much suitable to your requirement.
    Moreover you can use
    1.Relative navigation
    2.Absolute navigation.
    In the same way how you used in web dynpro.
    Same thing can be done in abstract portal component also.
    Try using that.
    Thanks & Regards,
    Lokesh
    Edited by: lokesh kamana on Aug 11, 2008 7:23 AM

  • How to trigger automatically an IDOC and RFC from SAP R/3 system?

    Hi ,
    lets say if we are implementing IDOC to FILE &RFC to FILE scenario ,how can we trigger  on timely basis(schedules)
    1)standard IDOCs and BAPIs?
    2)customized Idocs and Customized Bapis?
    3)Master Idocs and transactiona Idocs?I think we need to use change pointers for master Idocs and donno about Transactional Idocs.
    please explain ,
    thank you very much for your help.
    regards,
    Babu

    sorryfor the late reply, I was busy with my work.thank you for your posts.
    so all of you say just run the RSEOUT00 no matter what interface we use in XI like Master ,transactional Idocs,standard or customized BAPIs?
    And I think we use RSNASTED if we have on recieving side right?
    <b>then when we would use a report of format below to trigger an RFC,is this format for Asunc RFC ?</b>
    REPORT Z_SEND_DATA_TO_XI.
    parameters: dest like rfcdes-rfcdest default '(RFC Destination you defined in SM59)'.
    <<your other variable declaration and ABAP Code here>>
    call function 'ZXI_SEND_DATA'
    in background task
    destination dest
    exporting
    Name = John
    City = Smith. (The values to pass to XI)
    commit work.
    <<Any Write statements or sy-subrc statements here>>
    6) Save and Activate your ABAP program.
    6) After all these steps, execute your ABAP Program to send the data to file via XI.

Maybe you are looking for

  • Deserialization Problem with JDOM Document

    HI, I am using weblogic7.0 and i have created my own class which implements serializable. I set the object of this class in the ObjectMessage and send it across. Sometime i have to send some vector,sometimes string and sometime a XML document. So i c

  • PC to PC Connectivity

    I am running a home LAN with a WRT54G wireless router. I have one PC directly connected to the router and another PC connect wireless via a WUSB54GC. Both PC can access the internet with no problems. I have DHCP enables so IP addresses are assigned a

  • FlasCC clang++ crash while compiling boost/asio/ssl.hpp

    Hi all, I guess the title's quite descriptive. I have Crossbridge_1.1.0.devbuild.fdb5425, and boost_1_54_0, and I'm trying to compile an otherwise empty c++ file that just has an #include <boost/asio/ssl.hpp> at the top. I invoke clang++ as follows o

  • Apps don't start anymore...

    I have an iPad1 which I use for over a year already without any issue. However today I have an issue starting Appss I have installed on my iPad. They start and immediatly stop...  Safari, Mail, Photos, Agenda etc...does still work.... Any idea what t

  • Moving "On My Mac" Mail folders to another account not working

    Hi, I recently bought a new iMac (2 weeks ago). I originally setup 3 mail accounts on the main user ID (created by the migration assistant software from my old laptop. I imported the mail folders manually from the old Thunderbird and all was good. I