answersLogoWhite

0

invokeLater should be used when your code is performing a GUI change in the Swing UI library, and you cannot guarantee that the change is being made in the Event Dispatching Thread (which can cause data problems, as Swing is not "thread-safe"). So, invokeLater should be used if (1) you are using Swing, and (2) you are using Thread, and (3) the thread from 2 needs to update a GUI element that is part of Swing.

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Engineering

How do you calculate the quantity of steel by method of Percentage?

You should see the catalog company from out of steel alloys used in steel.


What is the Eyeball Method?

With the Eyeball Method, the dieter's hand is used to judge portion sizes. For low fat proteins (chicken and fish), the portion should be approximately the size and thickness of the dieter's palm.


How do you design distillation column?

Assuming you have binary components the McCabe Thiele Method should be used. Otherwise a process simulator such as Aspen, Pro/II, and/or KGTower should be used.


Should a main method be compulsorily declared in all java classes?

No, a main method is not required in all Java classes. The main method serves as the entry point for standalone applications, but many classes are used for different purposes, such as utility classes or part of a larger application framework, where a main method is unnecessary. Classes can function without a main method, especially when they are intended to be used as part of a library or invoked by another class.


What is the difference between paint and repaint methods of java?

The paint method is where actual painting occurs. If you want to change the way a Component is drawn, you should override this method. The repaint method typically just tells your Component that it should call its paint method as soon as it can. This is the method you should call to force a Component to update itself. The Java API warns not to ever directly call the paint method, mostly for efficiency reasons.

Related Questions

Should you say - used method or method used?

Both "used method" and "method used" can be correct, but they serve different purposes. "Used method" often acts as an adjective phrase to describe a method that has been utilized, while "method used" emphasizes the method itself, highlighting its application. Depending on the context of your sentence, you can choose either. Generally, "method used" is more common in formal writing.


How should data be collected and displayed in the scientific method?

The scientific method does not detail how you do an experiment, only the method used in general terms.


When should electronic commerce be used as a method of solictation?

True


What cooking method should be used for this dish, ensuring that it is prepared without the use of a broiler?

For this dish, you should use the baking method to prepare it without using a broiler.


Which method should be used to separate these brown pieces from the Green liquid?

Condensing


Why should the scientific method be used to answer a question?

It provides a way to test a hypothesis.


The first method used to control external bleeding should be?

pressure point


What is the method that should be used to prove a thesis involving time?

Judicial Proof


Why should the scientific method be used to answer questions?

It provides a way to test a hypothesis.


Why should scientific method be used to answer a question?

It provides a way to test a hypothesis.


Why should the scientific method used to answer a question?

It provides a way to test a hypothesis.


What method for cooling foods should not be used to prevent bacterial growth and ensure food safety?

The method of cooling foods that should not be used to prevent bacterial growth and ensure food safety is leaving them at room temperature.