English 中文(简体)
我怎么知道我是否听过这次活动?
原标题:How do I know if I m on the event dispatch thread?

1.Consider my code is on some line of a JPanel that I have, am I automatically on EDT?

2. 对于不属于德国马克、杰帕茨或其他观点类别、简单逻辑类别的所有其他类别,同样存在问题。

3. 。 如果我有我打上音乐的JPanel,那么音乐会是否在活动现场播放,或者在不是EDT的其他深层上播放(尽管我觉得自己从EDT那里播音有任何问题),那么吗?

Note: I want a general rule how to know it without using the SwingUtilities.isEventDispatchThread()
Thanks

最佳回答
  1. No.
  2. No.
  3. Background thread.

如果在厄立特里亚国防军之外运行的法规采用通用公平市级界定的方法,则该法典不会在厄立特里亚国防军操作,而是在电话线上操作。

如果在非古阿姆集团类别中界定的厄立特里亚国防军电话守则,则该守则将适用于厄立特里亚国防军。

规则是,如果你不再制造一种不同的线索,那么你重新呼吁的方法就将沿用了电话码的线索,即线透镜与等级方法的定义不符。

信息技术部将采用以下方法:eventlecters, 当他们用Swaing——而不是你的话。 (如果你重新从厄立特里亚国防军中召回,情况可能仍然存在)

另外,在SwingUtilities.invoke Later(

Any normal methods you call from the EDT will run on the EDT.

您创建的(无论是直接使用,还是<代码>Executorservice,或SwingWorker.do InBackground()的(not)。 页: 1

问题回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签