event-dispatch-thread Questions
2
Solved
Here is runnable piece of code explaining the problem -
I can remove s1 and s2 but not s3.
This does not seem MigLayout related (I happen to be using it) as I see the same behavior with default l...
Horace asked 7/2, 2012 at 0:20
1
Solved
May be this is trivial, I am struggling to understand a simple documentation on SwingWorker.
Here is the copy pasted content
Workflow
There are three threads involved in the life cycle of a SwingWo...
Fledge asked 24/1, 2012 at 7:47
2
Solved
I have a message label and a submit button. The submit button will be pressed multiple times, and the action for the each press can take up to a minute.
When the button is pressed, I want to set t...
Rood asked 18/1, 2012 at 20:10
4
I read somewhere that for any thread that affects the visuals of the gui it should be ran in the EDT using SwingUtilities.invokeAndWait/invokeLater
For a basic gui, is it necessary to put somethin...
Cacka asked 31/12, 2011 at 10:34
3
Solved
I have a JComboBox whose values are retrieved across the net.
I'm looking for a way to indicate that fact to the user, when the user wants to see the list, expands the drop down, and only then the...
Discomfortable asked 26/12, 2011 at 15:8
2
Solved
Can someone explain to me why I lost the selection (set by setSelected()) for JCheckBox when I put the JOptionPane into the ItemListener?
Is this a bug ?
It is curious, that if this process is del...
Newsy asked 26/11, 2011 at 23:41
4
Solved
I learned about how swing isn't thread-safe. Delving deeper, I discovered that every modification to a swing component must be done on the Event Dispatch Thread in order to prevent various issues a...
Attainable asked 25/10, 2011 at 22:37
1
Solved
As I discussed with Inerdia on the earlier post,
something is still strange When I'm in some JPanel (EDT for sure-I checked with the method check) and then I call some animation thread(the thread e...
Annals asked 23/10, 2011 at 17:48
2
Solved
1.Consider my code is on some line of a JPanel that I have, am I automatically on EDT?
2.Same question for all other classes which are not belong to GUI, JPanels or other view classes, simple log...
Applicative asked 22/10, 2011 at 23:16
3
Solved
I developed a Java application for creating and extracting an archive - like WinRAR. You can create several archives at the same time with multithreading. And recently, I wanted to add an informati...
Punishment asked 21/9, 2011 at 11:2
2
Solved
I am new to Java Swing and my question is related to Event Queues and Dispatch threads.
I read that it is possible to have multiple event queues , each per AppContext instance. Similarly does it m...
Revamp asked 6/9, 2011 at 16:42
2
Solved
I've recently started learning and exploring the basics of GUI programming in Java.
Having been programming for a while I have only done backend work or work and as a result the closest I've gotte...
Gerkman asked 27/8, 2011 at 20:1
5
Solved
My question is related to SwingUtilities.invokeLater. When should I use it? Do I have to use each time I need to update the GUI components? What does it exactly do? Is there an alternative to it si...
Phallus asked 25/8, 2011 at 20:38
4
Solved
I have a GUI which is quite heavy to build/initialize on the platform on which it runs.. Therefore I want to update progress while it initializes..
I have a small undecorated JDialog containing a ...
Kaolinite asked 16/8, 2011 at 13:14
2
Solved
in the book that i'm reading, every example of GUI with multithreading has something like that:
public static void main(String[] args) throws Exception
{
EventQueue.invokeLater(new Runnable()
{
...
Congruence asked 25/4, 2011 at 17:14
3
Solved
(the example code below is self-contained and runnable, you can try it, it won't crash your system :)
Tom Hawtin commented on the question here: Why do people run Java GUI's on the Event Queue...
Kornher asked 11/6, 2010 at 6:56
6
I use SwingUtilities.invokeLater() frequently. Doing so, however, makes it difficult to debug in certain cases: you can't see a stack trace of the code that called SwingUtilities.invokeLater(), bec...
Arneson asked 4/1, 2011 at 15:29
2
Solved
I would like to measure the "busyness" of my Event Dispatching Thread. One possible idea is to set up a background thread that does something like:
while(true) {
final long[] end = new long[1]; /...
Nona asked 17/12, 2010 at 18:12
3
Solved
I help maintain and build on a fairly large Swing GUI, with a lot of complex interaction. Often I find myself fixing bugs that are the result of things getting into odd states due to some race cond...
Tbilisi asked 28/6, 2010 at 2:58
2
Solved
I am looking into using Buffer Strategy and the following technique described on the Javadoc:
// Main loop
while (!done) {
// Prepare for rendering the next frame
// ...
// Render single frame...
Tye asked 27/12, 2009 at 18:54
8
Solved
I'm developing a real time strategy game clone on the Java platform and I have some conceptional questions about where to put and how to manage the game state. The game uses Swing/Java2D as renderi...
Essence asked 11/6, 2009 at 15:46
5
Solved
I have a swing application which stores a list of objects. When the users clicks a button,
I want to perform two operations on each object in the list, and then once that is complete, graph the r...
Maureenmaureene asked 2/6, 2009 at 17:43
4
Solved
My GUI locks up because I need to update it through the EDT, however, I need to also pass a variable that is being updates with the GUI:
while ((message = this.in.readLine()).startsWith("NUMPLAYER...
Parsifal asked 15/4, 2009 at 21:53
© 2022 - 2024 — McMap. All rights reserved.