How do I raise a new event?

someone can i help me, I am designing a hardware
and I want to make a package avaible for use it.
I was reviewing the java code but I do not know
how begin it.
The hardware uses the serial port, and i would like
something like this:
class HandleMyHardware implements MyHardwareListener
         public void myHardwareButtonTopPressed(MyHardwareEvent event)
                   //add code when this happen
}I need to know, How do I begin, or How can I add my code for receive the data of my hardware

I am a program guy and not a hardware guy.
http://java.sun.com/products/javacomm/reference/docs/API_users_guide_3.html
http://java.sun.com/developer/releases/javacomm/SimpleRead.java
http://java.sun.com/developer/releases/javacomm/SimpleWrite.java
http://www.syngress.com/book_catalog/177_lego_JAVA/sample.htm
http://search.yahoo.com/search?p=%2Bjava+%2Bdetect+%2Bserial+%2Bport&toggle=1&ei=UTF-8&fr=FP-tab-web-t342&b=11

Similar Messages

  • How do I raise a Business Event from a OAF page?

    Hello,
    I am developing a custom system using the OAF and need to raise a custom Business Event, which in turn will have a subscription to launch a workflow process.
    How do I raise a Business Event from a OAF page ?
    Can I use the classes in oracle.apps.fnd.wf.bes.* ?
    Any help would be highly appreciated.
    Best Regards,
    Andries Hanekom

    Hi,
    When I try to compile just the basic part of my class I receive the following error:
    Error(21,36): cannot access class javax.jms.TextMessage; file javax\jms\TextMessage.class not found
    Class Code:
    import oracle.apps.fnd.wf.bes.BusinessEvent;
    public class VscmsEvents
    public VscmsEvents()
    public static void main(String[] args)
    VscmsEvents vscmsEvents = new VscmsEvents();
    //Initialize BusinessEvent, Payload objects
    public void initEvent(String eventName, String eventKey, String eventData)
    //Create BusinessEvent Object
    BusinessEvent mEvent = new BusinessEvent(eventName, eventKey);
    Furthermore, when using the BusinessEvent object to raise the event I will need to provide the raise method with a java.sql.Connection parameter. In the context of a OAF page how will I perform this?
    Thanks for the help.
    Best Regards,
    Andries Hanekom

  • ICal Lion is infuriating. How can I add a new event in a chosen calendar without having to create it in my default then edit it?

    iCal Lion is infuriating. How can I add a new event in a chosen calendar without having to create it in my default then edit it?

    We are all entitled to our own opinions. So I respect you there brother
    But then again, Apple has its own basis. iOS is what's selling like pancakes not Macs, so if the gazillions out there are using iOS device and have gotten used to the calendar in their iOS devices. Wouldn't you think it made sense if Lion has the same calendar look and feel?
    Everything was considered and weighthed when they developed Lion. They even mentioned it in the press, They were blown away with the success of iOS so they are extending it to OSX.
    Quite frankly, I like the old iCal but yeah I don't expect anything in SL to stay in Lion otherwise it'll be another Cat name related to Leopard
    People should start looking at this perspective and not get STUCK in the old OS.

  • How do i create a new Event in the new Photos?

    I have imported some photos into my new Photos library but unlike before they don't show up as an Event. How do i create a new Event and move them into this Event?

    You don't.  Moments in Photos are the new Events, i.e. groupings of photos sorted by date taken.
    When the iPhoto Library was first migrated to Photos there was a folder created in the sidebar titled iPhoto Events and all migrated iPhoto Events (which are now Moments) are represented by an album in that folder. To open the sidebar if it's not already open use the Option+Command+S key combination.
    There's a way to simulate events in Photos.
    When new photos are imported into the Photos library go to the Last Import smart album, select all the photos and use the File ➙ New Album menu option or use the key combination Command+N.  Name it as desired.  It will appear just above the iPhoto Events folder where you can drag it into the iPhoto Events folder
    When you click on the iPhoto Events folder you'll get a simulated iPhoto Events window.
    The downside to the simulation is that the Albums/Events can only be sorted automatically by Title. But they can also be sorted manually, either in the sidebar or in the folder's window at the right.
    Ask Apple for more sorting options in Photos via https://www.apple.com/feedback/photos.html.

  • How to i make a new event for a new folder?

    In imovie i made a new movie and every clip is going into all one event from my first movie ever made. i want to make a new event for each video but im not sure how please help

    iMovie 10 :  see: http://help.apple.com/imovie/mac/10.0/#mov1d890f00b
    iMovie 9:  see: http://help.apple.com/imovie/#mova719f959
    Geoff.

  • How do I create a new event entry for a specific calendar?

    In my iMac Calendar app, I have created a few calendars for different functions.    But every time I try to create a new event entry for a specific calendar, the app seems to prefer a different calendar instead by default.   I cannot enter events in other calendars.   Is there a way to do this?   In previous versions, I would highlight the particular calendar I wanted to work with and the entry would go into that calendar.   Thanks!

    You don't.  Moments in Photos are the new Events, i.e. groupings of photos sorted by date taken.
    When the iPhoto Library was first migrated to Photos there was a folder created in the sidebar titled iPhoto Events and all migrated iPhoto Events (which are now Moments) are represented by an album in that folder. To open the sidebar if it's not already open use the Option+Command+S key combination.
    There's a way to simulate events in Photos.
    When new photos are imported into the Photos library go to the Last Import smart album, select all the photos and use the File ➙ New Album menu option or use the key combination Command+N.  Name it as desired.  It will appear just above the iPhoto Events folder where you can drag it into the iPhoto Events folder
    When you click on the iPhoto Events folder you'll get a simulated iPhoto Events window.
    The downside to the simulation is that the Albums/Events can only be sorted automatically by Title. But they can also be sorted manually, either in the sidebar or in the folder's window at the right.
    Ask Apple for more sorting options in Photos via https://www.apple.com/feedback/photos.html.

  • How can I create a new event without it automatically being an all-day event?

    When I create a new event in iCal, it automatically creates an all-day event.  (By create, i mean double-clicking in the month view.)  Is there any way to change it back to hourly when you create an event, like in Snow Leopard?  Although this is easy to get around, it's just annoying as I rarely create all day events.

    I was really frustrated by this change in Lion as I prefer to use the month view and I hate the way it defaults to an all day event.  So I was very pleased to find this solution in the Mac OS X Hints.  Simply type "Dinner at 6 pm" and it enters "Dinner" at 6 pm for one hour.  If you want anything other than an hour, put "6 - 8 pm" (or whatever period you want.  Brilliant.  Just wish Apple figured out a way to tell me that without having to search the communities here for an answer.
    Thanks Ferd II.

  • How can i add a new event in my calendar for the new IOS 5?

    I cant seem to add a new event on my iPhone 4 with the new iOS 5. I read the you are suppose to tap and hold the day you want to add an event, but that doesnt seem to work for me.

    It works for me when I tap and hold my finger over the day seeing the month or week, when the phone is turned sideways. Maybe you should keep the finger a little longer on the screen to hold.

  • How can I have a new event on my calendar without an automatically alert?

    Even when my alert is set to None, I still get an automatically 30 minutes alert to every new event on my gmail calendar. Is there a way to not have an automatically alert to every new event?
    Thank you

    Open the existing event, tap Edit (upper right). Make the needed changes. Tap Done. Tap Save for Future Events.

  • How do i create a new event in a different time zone in iCal ios7?

    New update seems to have made this disappear in iphone.
    I'm also looking for same solution on MacBook Pro
    THanks
    j

    Several settings in Settings > Mail, Contacts, Calendars affect Calendar and your calendar accounts. These include:
    Syncing of past events (future events are always synced)
    Alert tone played for new meeting invitations
    Default calendar for new events
    Default time for alerts
    Calendar time zone support, to show dates and times using a different time zone
    Which day starts the week

  • How do I create a new event from a section of a long video clip

    When I try to select a section of a long clip and drag it to a new event in the iMovie event library, the whole clip moves into the new event.  Isn't there a way to just select and move a section to the new event?

    This does work, but the process is crushingly difficult for my mother. (Try to explain to a 60 year old that you need to reveal the clip in finder. Trim it, save it, trim it, save it, etc for each part of the video. Then re-import those clips into iMovie and delete the original large file from your events). This could have been accomplished with one keyboard shortcut or menu command.
    I'm opposed to creating projects to organize events because it doesn't make sense when creating a Christmas montage to open a project and look for a clip then find it in the events when you could otherwise just look through Christmas 1984 and pull the clip you want. It creates a dual paradigm.
    More than anything I want to attract Apple to this glaring flaw in their product. I can't see the downside of in-app splitting of events which was a feature of iMovie v9. Why remove it entirely? I know it's a rarely used feature, it could have been suitably hidden to avoid accidents. It wouldn't frustrate the average user, but it has confused the ever-living **** out of my mother.

  • How to send edits into new event?

    Hello there,
         I imported several videos into a new event. What I am trying to do is to edit specific sections of the videos and then rearrange them to make a single movie.
    I started making edits to one of the video, but realised that If I continued I would have hundreds of little clips to move around. What I would like to do is send all my edits as separate clips into a new event to make it easier and less messy. Is there a way to do it quickly instead of exporting them one by one to re-importing them into imovie?
    Sorry if this question was already asked, I searched but found nothing.
    Thank you in advance.
    OSX 10.9.5
    iMovie 10.0.3

    No.  Events are to import original media into. in this case your input videos.  What you could do is to split the videos into pieces using Quicktime Player and afterwards import those into an event.
    I'm afraid I'm not really clear why you want to put the edited pieces into a new event?  You must have created them in a project timeline so why not rearrange them there, delete the bits you don't want and complete and share the movie.   If you want to re-use the same pieces in another movie, keep the project and when you want to use them again copy the bits you want to re-use into the new project.
    Geoff.

  • How Can I create a new event in Iphone and add invitees

    I have created events in iCal and add invitees, I could not found the way to do the same in Mobileme nor my Iphone,Is there a way to invite someone to a meeting in the Iphone?

    I was really frustrated by this change in Lion as I prefer to use the month view and I hate the way it defaults to an all day event.  So I was very pleased to find this solution in the Mac OS X Hints.  Simply type "Dinner at 6 pm" and it enters "Dinner" at 6 pm for one hour.  If you want anything other than an hour, put "6 - 8 pm" (or whatever period you want.  Brilliant.  Just wish Apple figured out a way to tell me that without having to search the communities here for an answer.
    Thanks Ferd II.

  • In ICal-How do I get the new event to span across multiple days.

    If say, I have an event from Jan 1-3, I'd like to see it span across all days, like in Outlook.  Not just the 1st day and the other 2 days blank.  when I set the start date and the end date, in this case Jan 1-3 the event only shows up on Jan 1.  I'd lke to be reminded that the event has 2 more days to it at a glance and not have to open the event.  Any sugesstions other than to enter the event in 2 more times?
    Thanks, Joe

    Set the pref <b>browser.tabs.insertRelatedAfterCurrent</b> to false on the about:config page.
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    You can use the Filter bar at to top of the about:config page to locate a pref more easily.

  • Deleting New Event in iCal on iPad

    Unwittingly, I have "entered" a "New Event" in iCal on my iPad 2.  I would like to delete it but haven't been able to do so.
    Does anyone know how I can delete the "New Event"?
    I would appreciate your help and suggestions.
    Thanks.
    Vernon

    1. Click on an event.
    2. A bar with a dot on then let side, the name of the evet, and a hardly visible small edit button on the right side will appear.
    3. Click the edit button: the edit window will open.
    4. Scroll down to the large red Delete Event button.
    5. Click the Delete button.
    New iPad, latest IOS. I do not see the Trash icon mentioned in the other post. Maybe an earlier IOS.

Maybe you are looking for