Questions tagged [eventqueue]
77 questions
0
votes
0 answers
How t find eventqueue opertion elapsed time and How to find which UI operation causes lags
In Java Swing application, How to find which event queue operation makes delay and freezes Ui and the cause. Since may invokeLater() are called to perform Ui Operation.
Is there any way to get the elapsed time too. ( by tracing eventQueue ex: like…

rathinamsm
- 1
- 2
0
votes
0 answers
Unable to update JTextArea from another thread
I'm not sure what I was wrong in the code below. It doesn't let me update JTextArea from the extraThread. I can see the status value updated in console windows but it doesn't work for the JTextArea.
Errors
java.lang.NullPointerException
at…

Louis Tran
- 1,154
- 1
- 26
- 46
0
votes
1 answer
Cannot set model for Listbox from EventQueue.subscribe method after refreshing page
Cannot set model from EventQueue.subscribe method after refreshing page.
I have two pages - my main .zul and included .zul files.There are separate controllers for each zul. I publish event from included page's controller when a user clicks on the…

Andreh
- 1
- 1
0
votes
1 answer
What does the Java class Eventqueue exactly do?
After reading the information about the Java class java.awt.EventQueue on Oracle it is still not clear where this class is used for and what you can do with it. Can someone explain this for me please.

John Doe
- 259
- 1
- 6
- 18
0
votes
2 answers
"Not applicable for the arguments (void)" error when using EventQueue.push() method in Java
I have a game that uses EventQueue.invokeLater() . I'm adding code that I want to push a new EventQueue when the game is over effectivly restarting the game but I'm getting an error in Eclipse which reads "The method push(EventQueue) in the type…

Algebra is Awesome
- 273
- 1
- 2
- 9
0
votes
2 answers
Update data from other frame
We have pageA which has a Jtable and World_info_object "info" . that table shows data from people (people are in world info). I want to edit "info" so each person has an edit button and also this page has a " +NEW " button . These buttons have…

amir
- 85
- 8
0
votes
1 answer
Qt5 emit syntax accepts slot name. Is slot handled through event queue
I discovered quite by accident that instead of the normal style of emitting a signal previously connected to a slot, another way to trigger the slot is:
emit(slotname());
I like that I can skip the step of creating a signal and connecting, but does…

TSG
- 4,242
- 9
- 61
- 121
0
votes
3 answers
Java: how to use JTableModel in eventQueue
I have a class extending AbstractTableModel and it pools Data from a Database, Since its a Swing Component I initialize it in EventQueue, the Problem is most of the operation such as getting Connection and Querying DB all runs in eventqueue hence it…

Alfa
- 599
- 6
- 22
0
votes
0 answers
Does JavaScript setTimeout executed in event queue in different browsers?
As we know, setTimeout handlers will be put into event queue. So my question is that do the setTimeout handlers are executed by order which put it in?
Example:
setTimeout(hander1, 1);
setTimeout(hander2, 1);
Does handler1 will always be executed…

Ian Jiang
- 413
- 7
- 7
0
votes
2 answers
Consuming from queues based upon external event (event queues)
I am running into a use case where I would like to have control over how and when celery workers dequeue a task for processing from rabbitmq. Dequeuing will be synchronized with an external event that happens out of celery context, but my concern is…

Abhinav Singh
- 2,643
- 1
- 19
- 29
0
votes
2 answers
processing the next event in Node.js
For an application where each request may take a second or two, is it possible to only process a piece of operative code on each iteration of the event loop?
For example:
function foo()
{
...operative code...
...start processing the next…

alf
- 681
- 1
- 8
- 19
0
votes
1 answer
Simplified MIPS CPU using high level programming languages
I'm trying to design of an analyzer/simulator for a simplified MIPS CPU using a high level programming language preferably Java. The considered MIPS CPU adopts the CDC 6600 scoreboard scheme to dynamically schedule instruction scheduling and using…

Sina
- 1,632
- 3
- 15
- 21
0
votes
0 answers
event dispatch thread
what is difference between event dispatch thread and any normal thread like main thread in creation swing compoments and handling events , what is features of event dispatch thread over main thread
by coding , what is difference between these two…

user1841718
- 187
- 1
- 4
- 15
0
votes
1 answer
EDT on Swing (for Dummies)
So, I'm just working on a little game, which works quite fine, except for the GUI. Basically, I need to modify the GUI when clicking a button. I realize that I have to run my code on the EDT to do so, using this code:
EventQueue.invokeLater(new…

azrael
- 100
- 1
- 11
0
votes
4 answers
AWTEvent and EventQueue
I have an external device that is sending me data 1 character at a time. I'm writing this to a StyledDocument on a JTextPane. This data is sent to me on a thread that is not the AWT thread so I need to create AWTEvents and push them to the…

merjr
- 149
- 1
- 13