event-dispatching

What would cause this IllegalArgumentException during event dispatching?

This is the stack trace that is generated: Exception occurred during event dispatching: java.lang.IllegalArgumentException: Cannot format given Object as a Number at java.text.DecimalFormat.format(Unknown Source) at java.text.Format.format(Unknown Source) at javax.swing.JTable$DoubleRenderer.setValue(Unknown Source) at j...

Java Swing : changing JTree selection while editingstopCellEditing() : how to get stopCellEditing() called before TreeListeners:valueChanged?

Hi, regarding to earlier question How to stop editing with DefaultCellEditor when a separate JBtton is pressed and Sun Bug 4724980: JTable: Add API to control what happens to edits when table loses focus.: With jtable.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE); i get my CellEditor to stop editing when table loses ...

Attaching a property to an event in Flex/AS3

I have a parameter that needs to be passed along with an event. After unsuccessful attempts to place it on the type by extending the class, I've been advised in another SO question to write a custom event. I tried this before but I couldn't figure out how to send it, because I just want to send another parameter with a normal Event.COM...

Swing Worker Modal Dialog Won't Close

I have a SwingWorker thread that launches a modal dialog box (from a property change listener that listens to the StateValue of started) and the swing worker proceeds to do its work. However, it looks like the done method is not called because that is called on the EDT but the swing worker's modal dialog is blocking the EDT. So, I can't ...

How to dispatch events in C#

I wish to create own events and dispatch them. I never done this before in C#, only in Flex.. I guess there must be a lot of differencies. Can anyone provide me a good example? ...

EventDispatcher between an as and an fla?

Hi everyone. I am making a fighting game in Flash and while I have everything running, I am missing something: a victory/loss screen. Logically, I know how to do it: if character.hp < 0 { character.dead = true; dispatchevent("death", event) } My problem is that I have no idea as to how to code it. I know I will use two classes...