Questions tagged [event-dispatching]

105 questions
0
votes
2 answers

EventDispatcher between an as and an fla?

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…
0
votes
1 answer

chrome Event is not dispatched

I'm having a little problem. I thought I had understood Event Handling, but now I don't think so anymore. I've created a Chrome Event(): this.onReadLine = new chrome.Event(); this event is dispatched in a…
0
votes
1 answer

Symfony2 redirection with event listener

My application now is coupled with some 3d party API service. And i want it to handle some user action in this way: my application do some own logic, and then if API is availiable, user is redirected to some API resource . Let's say it is an image…
fperet
  • 436
  • 8
  • 21
0
votes
1 answer

Add string value every-time it is called.

When my function buildingBuilt is called, it is dispatching an event like so: dispatchEvent(new Event("Built")); I've got, in my Toolbar.as a listener that triggers a timer when he heard "built". Every 10 second my string "money" is dropping 500.…
user2421975
  • 197
  • 1
  • 13
0
votes
1 answer

Exception occurred during event dispatching:java.lang.ClassCastException in a JRE 1.4 Environment

I've been receiving ClassCastException in my code. Objective initially was to convert Set to List since the refreshDetailVOTable method will only get Set. The problem could have been in converting Set to List. refreshDetailVOTable might took the…
0
votes
3 answers

Java Callable thread swing gui

Im missing something, I've created a calss based on callable and in my gui creating an instance and calling it when a action is performed. the only thing is that the GUI is unresponsive as the process is running on the same thread and has to wait…
ubergam3r
  • 189
  • 1
  • 3
  • 11
0
votes
1 answer

Revalidate and repaint - Java Swing

I have a JPanel that I am adding JLabel's to. I then want to remove all the JLabels and add some new ones. So I do the following: panel.removeAll();panel.repaint(); panel.add(new JLabel("Add something new"); …
M_x_r
  • 596
  • 4
  • 11
  • 26
0
votes
6 answers

Threads and jtable

I have a problem with jtable. I have a number of threads and each of them have to add a row to the jTable, but the table remains empty. I'm working with netbeans, the graphics are totally separate from the logic. Can someone help me, please? this…
mav
  • 121
  • 3
  • 10
0
votes
1 answer

Game class frame event handling lost when combined with initial UI starting frame

i 'm developing a java game for my college project. the game consists of a UI (for selecting Play / How To / Highscores etc) and the Game itself. The UI and the Game run perfectly separately, but i'm having trouble combining them. Although, i've…
0
votes
2 answers

Closing JDialog box from a thread

I have a JDialg for showing the progress of a certain task. To display and hide the dialog box I have following methods, public class ProgressDisplayer extends javax.swing.JDialog { ...... public void s_show() { …
Harsha
  • 3,548
  • 20
  • 52
  • 75
0
votes
2 answers

Getting resolved types inside a Ninject module

Problem: in my domain layer assembly I store two interfaces: public interface IDomainEvent { } and public interface IHandle where T: IDomainEvent, new() EventDispatcher class is defined there also: public static class EventDispatcher { …
lexeme
  • 2,915
  • 10
  • 60
  • 125
0
votes
1 answer

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…
Thomas Owens
  • 114,398
  • 98
  • 311
  • 431
0
votes
1 answer

Fix an unresponsive GUI due to JTextArea?

I am designing a program that has a JEditorPane where users can enter and compile Java code. They can then run their program in a new process, and then their output will be displayed in a JTextArea. I accomplish this by extending JTextArea and…
euclio
  • 1,318
  • 3
  • 15
  • 18
0
votes
1 answer

I want to use Symfony EventDispatcher in Zend Framework 1.11

I want(need) to use Symfony EventDispatcher inside Zend Framework 1.11 I have the EventDispatcher being loaded in the Bootstrap of zf... public function run() { require APPLICATION_PATH . …
Fernando André
  • 1,213
  • 3
  • 19
  • 32
-1
votes
1 answer

When should I switch from Symfony EventDispatcher to RabbitMQ (any *MQ library)?

What I am currently thinking about is that on our platform, number of events generated by users encreases every day (call started, call ended, call record ready, user blocked etc), so when should be the right time to switch from Symfony…
1 2 3 4 5 6
7