Re: Accessing Swing component data
- From: Ian Wilson <scobloke2@xxxxxxxxxxxxx>
- Date: Mon, 19 Feb 2007 10:04:45 +0000
Knute Johnson wrote:
Do methods that don't modify Swing components have to be called from the EDT? Methods such as JTextField.getText(), JCheckBox.isSelected() etc.
Sun seem pretty clear on this.
"The single-thread rule: Swing components can be accessed by only one thread at a time. Generally, this thread is the event-dispatching thread."
Note: "accessed" and how it relates to JTextField.getText().
http://java.sun.com/products/jfc/tsc/articles/threads/threads1.html
.
- Follow-Ups:
- Re: Accessing Swing component data
- From: Knute Johnson
- Re: Accessing Swing component data
- References:
- Accessing Swing component data
- From: Knute Johnson
- Accessing Swing component data
- Prev by Date: Re: JFormattedTextField commit listener?
- Next by Date: Re: Accessing Swing component data
- Previous by thread: Accessing Swing component data
- Next by thread: Re: Accessing Swing component data
- Index(es):