Questions tagged [event-dispatching]
105 questions
1
vote
2 answers
JTable Columns not appearing
I am trying to display a simple jtable in frame but It is not displaying the columns of the table, I followed the example from the oracle tutorials but there is something I am not doing right. The program is compiling and running. Here is the…

Doesn't Matter
- 405
- 4
- 12
- 23
1
vote
1 answer
present live data in JTextArea using Swing
Don't know if it's stupid or reasonable question.
I have methods which returns float/int data (x,y,z positions) of the P5 Glove (if you know it).
I also have update method which responds to the glove pulling.
All i'm having trouble with is creating…

Shahar Galukman
- 882
- 3
- 15
- 35
1
vote
4 answers
Java update jtable row from another thread
I have a multi threaded program and I'm trying to use a JTable to view the progress of each thread. Each thread is a row the JTable. I have posted a simplified and relevant code of what I have now. Each time I press start a new thread is started and…

Arya
- 8,473
- 27
- 105
- 175
1
vote
2 answers
How to find an exception in swing
i have a problem with java swing. i sometimes get this NullPointerException at random times(perhaps at some painting methode?):
(the project has over 100 classes, so it makes no sense to post code here, furthermore i am interested on the right…
user1347198
1
vote
2 answers
New JFrame with new thread
I created a JFrame with combo boxes and a button which will create a new thread and continue to do an action. I want a new JFrame to start with every new thread to output logs to the new JFrame. But even if I put the code related to the JFrame in…

Arya
- 8,473
- 27
- 105
- 175
1
vote
1 answer
Dispatching event for specific component only in java
I would like to customize JTableHeader so it would offer serval actions (for example 2 buttons which one of them would sort column and second show properties of this column etc). Unfortunately it is not possible to set CellEditor for JTableHeader so…

user1079475
- 379
- 1
- 5
- 17
1
vote
2 answers
Java JTable data loading
so i have a large cardlayout with one panel as a JTable:
tbm = new DefaultTableModel();
tbm.addColumn("Account Number");
tbm.addColumn("PIN");
tbm.addColumn("Access Level");
tbm.addColumn("Balance");
table = new JTable(tbm);
JScrollPane…

paul62285
- 21
- 5
0
votes
2 answers
how java threads makes UI more responsive?
I have read JAVA SWING UI become more efficient with the help of threads.But i dont know how the java threads makes the UI more perfect in Swing.
Please Enlighten me on this...

Saravanan
- 11,372
- 43
- 143
- 213
0
votes
1 answer
dispatchEvent to fire MouseEvent not working
I am adding the same image (play button) to a movie clip those images later when pressed toggle states and play a video.
What I am trying to accomplish is automatically toggle the default image since that video is playing automatically.
…

Denoteone
- 4,043
- 21
- 96
- 150
0
votes
1 answer
Is it possible to listen the event triggered by another class?
I've got 3 classes:
The class that recognizes the change in URL (using SWFAddress by Asual):
package swfaddress {
import flash.display.MovieClip;
import com.asual.swfaddress.*;
public class SwfAddress extends MovieClip {
private var…

zee
- 359
- 3
- 16
0
votes
0 answers
Create a symfony console command and DI (autowiring) of service in the command
I want to create a symfony console command that list the listeners subscribed to the doctrine event dispatcher. something like symfony console app:debug-doctrine-dispatcher.
For that I need access from my command execute method to the…

Frédéric Hébert
- 21
- 2
0
votes
1 answer
Only shows the lastly added JPanel to JFrame in Event-Dispatch thread
I can only see the JPanel added at last. Previous ones seem to be replaced by the last one. Why is this? Here's my code. Thanks in advance.
...
class GUIController {
BaseFrame bf = new BaseFrame(); //is a JFrame
public void…

coder9
- 1,571
- 1
- 27
- 52
0
votes
2 answers
Adding additional panels to a JFrame which lives in a EventDispath thread, from outside that?
I create a new frame in EventDispatch thread and want to add new Panels to that later on. But all i get is a blank frame, with 0 height. But panels added from inside the inner class are displayed. How to add using showFirstFrame()?
I had to follow…

coder9
- 1,571
- 1
- 27
- 52
0
votes
0 answers
is there any java code for queue based on due date priority dispatching rule (EDD)? and how?
I need EDD priority rules java code
And I want to ask.
Here I have 2 agents namely WeldBolt and SPC PIN which have different process flows. Then the 2 agents go through the grooving process together so that the 2 agents will meet in 1 queue to enter…

Figa Wafi
- 1
- 2
0
votes
1 answer
C++ Event Dispatcher - callback casting problem
I'm venturing into creating an EventDispatcher using C++ 17 in Visual Studio 2022. Basically I store a string (id) to identify the event and a callback (lambda, function or method of a class) in a vector through the RegisterEvent() method.
Then I…

Donavan Carvalho
- 9
- 4