Questions tagged [edt]

For questions about edt, a line/screen editor, found on vax/vms systems. The Event Dispatch Thread in Java Swing applications is also abbreviated EDT. The tag [event-dispatch-thread] is used for that.

A line/screen editor, found on vax/vms systems.

The Event Dispatch Thread in Java Swing applications is also abbreviated EDT. The tag is used for that.

52 questions
1
vote
3 answers

Java Swing separate core with GUI

I don't understand how to separate the core of my program with the GUI part of my program. Indeed, all the examples on the web say that any GUI action must be executed with SwingUtilities.invokeLater() method. The problem is I don't understand how…
benlaug
  • 2,691
  • 2
  • 17
  • 15
0
votes
1 answer

Emacs Tpu-edt emulation scrolling margins startup

Can anyone help me get scrolling margins enabled automatically when I start emacs with tpu-edt emulation? Currently, my _emacs file (WinXP) contains the line: (setq term-setup-hook 'tpu-edt-on) I find TPU works great, and I can manually supply…
0
votes
0 answers

Multiple SwingWorker synchronization

I have a program that parses XML from web and then shows information in form of JTable. Information can be updated while the program is running. This update method is called from EDT by a Timer every X seconds or by a user by clicking refresh…
David
  • 45
  • 4
0
votes
2 answers

What does this error mean JXBrowser should only be constructed on the EDT

I have some code and when it executes, it throws a RuntimeException, saying: JXBrowser should only be constructed on the EDT it is stemming from when I'm creating a JXbrowser component browser = (JXBrowser) browserFactory.create(true,…
0
votes
0 answers

Are Swing MouseMoved events dispatched in input order?

I'm developing a small game engine in Java and I use Swing to collect input and display graphics. I'm having a strange bug with MouseMoved events and I'm wondering whether the EDT handles the inputs in a given order or not, to understand if…
grecLon
  • 37
  • 6
0
votes
0 answers

Java Swing paintImmediately() method works on main thread instead of EDT thread

I am writing a program, which is supposed to update and render animation for each frame. I have an AnimationPanel class which extends JPanel and an Animation class, which maintains my animation with an infinity loop. I was invoking paintComponent…
0
votes
1 answer

Is there any difference? SwingWorker#publish vs SwingUtilities#invokeLater

Let's say we have a long/heavy task that must run in background, and publish its progress or whatever to the GUI. I know that this publishing must happen on the event dispatch thread. That's why we use a SwingWorker for the task. So, what we do, is…
George Z.
  • 6,643
  • 4
  • 27
  • 47
0
votes
3 answers

Use Java Full Screen Exclusive Mode with Swing Timer

Good day! I wanted use a standart Swing Timer with Full Screen Exclusive Mode. To this effect I applied a SwingWorker to control the event when graphic mode should be set. All following steps are executed in run method. run() is called from…
ilya8891
  • 127
  • 1
  • 1
  • 12
0
votes
1 answer

Can't update value of JProgressBar from another thread when adding another items

I have a problem with displaying current status(in JProgressBar) while adding another components to JPanel. This operation is heavy and takes at about 2 seconds with 20 iterations (adding 20 items). But it can be 100 items. So I need to achieve…
Shellai
  • 7
  • 1
  • 4
0
votes
1 answer

EDT and SwingWorker Thread - Publish and Process

EDT and SwingWorker concepts are kind of confusing. I have gone over the method definitions a couple of times now and wrote some sample programs as well. Below is the current scenario I have, 1) I have starting a GUI window from the main method…
Dhiren Dash
  • 111
  • 1
  • 10
0
votes
0 answers

Java Most efficient way of creating Button actionListener?

I am working on a project that involves GUI. On the JFrame I have several JButtons that perform specific actions when clicked. Now the problem is, with the code I wrote, every time the buttons are clicked, they generate a new thread. I do this…
Ptolemorphism
  • 101
  • 2
  • 11
0
votes
1 answer

Modify variable in EDT

My loop is not stopping when i set the number[0] = ten, the thread for the while loop can't see the number being changed when the jbutton is pressed, How do i fixed this? I believe the thread is being blocked. public class A{ private…
0
votes
0 answers

should all/most awt.Toolkit methods be run in the EDT?

... specifically, I'm using getSystemClipboard()... and then doing things like getting and setting content. At the start of the API doc (Java 7) it says: Many GUI events may be delivered to user asynchronously, if the opposite is not specified…
mike rodent
  • 14,126
  • 11
  • 103
  • 157
0
votes
1 answer

Trouble getting Swing to refresh JLabel (apparently on event dispatch thread)

I have this action listener: this.newGameButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent a) { MokkiGUI.this.game = newGameQuery(); MokkiGUI.this.AI = new AIPlayer(MokkiGUI.this.game.getBoard()); …
Toiski
  • 1
  • 2
0
votes
2 answers

Good freeware clone of the VMS editor EDT for unix or the pc?

I would like to have the same editor available on all of the platforms I frequent. Emacs and Vi are not desired solutions.
EvilTeach
  • 28,120
  • 21
  • 85
  • 141