This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes events Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "events" Watch "events" New topic
Author

events

Hiep Nguyen
Ranch Hand

Joined: Oct 26, 2001
Posts: 46
hi all!
i am writing a xml parser, now i want post some my event into system but there are a problem that :
Class SAXEvent extends AWTEvent
CLass StrartEntityEvent axtends SAXEvent
if i post SAXEvent into EventQueue, it's ok;
but if i use StartEntityEvent, it make error :unable to dispatch event
if anyone need source code to debug, i'll send to you
thank you for your advices !
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
I don't think that you've posted enough information for someone to help very much. The class heirarchy you've described doesn't appear to me to be a problem. Can you more completely describe the problem?


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Hiep Nguyen
Ranch Hand

Joined: Oct 26, 2001
Posts: 46
dear sir !
i design ma classes as flow:
class Entity; class Attribute;
class SAXEvent extend AWTEvent;
class StartDocument(Object source) extends SAXEvent;
class StartEntityEvent(Entity source) extend SAXEvent;
// more some class event
and class Parser(){};
Parser.pasre() will push those SAXEvent events into EventQueue eq = Toolkit.getDefaultToolkit().getSystemEventQueue();
like this :
eq.postEvent(new StartDocumentEvent(this));
and
eq.postEvent(new StartEntityEvent(entity));
the first event is ok but the second one throw out error like the last my post.
thank you for your reply !
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
but if i use StartEntityEvent, it make error :unable to dispatch event
What exception is thrown?
[ August 27, 2002: Message edited by: Dirk Schreckmann ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: events
 
Similar Threads
Hibernate Search In Action- Hibernate Search Event listeners ?
Table not mapped.
Redirect, but POST wanted.
How to make Change in text field whenever i choose a date from calender image.
awt events