Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


How to post a custom event in J2ME

Posted on 2006-06-06
Medium Priority
Last Modified: 2009-07-29


I am developing an application in J2ME using CDC / Personal Profile 1.0 (for pocket pc)

I need to post a custom event to the event queue.

Please tell me how to do this in J2ME. ( I know how to do it in Java 1.5)

Question by:prashant_it
  • 3
  • 2
LVL 14

Expert Comment

ID: 16851155
throughout the j2me documentation, I couldn't find anything related to posting events
I think its not the way that j2me handles events.
LVL 14

Expert Comment

ID: 16853173
Mikal613 what is the correlation of your link with j2me ?
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

LVL 30

Expert Comment

by:Mayank S
ID: 16853204
It uses javax.swing.EventListenerList which is not present in J2ME.
LVL 30

Accepted Solution

Mayank S earned 200 total points
ID: 16871119
I think the only way to do it is to write one's own event-queue and one's own event-handling thread to poll for events from that queue and dispatch to the listeners.
LVL 30

Expert Comment

by:Mayank S
ID: 17036869
I think my response (last comment) was correct.

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month10 days, 10 hours left to enroll

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question