From: Roedy Green on
On Tue, 16 Mar 2010 11:14:46 -0400, Sam Takoy <samtakoy(a)yahoo.com>
wrote, quoted or indirectly quoted someone who said :

>In my code (will provide an example if necessary), I have a JLabel that
>doesn't change it's content after label.setText("new-content"). The text
>does change after I resize the parent JInternalFrame. I have never
>encountered this behavior before and I am wondering what this could be
>caused by...

The usual problem is you tie up the EDT thread somehow (perhaps a
sleep). It never gets a chance to handle the repaint event.
--
Roedy Green Canadian Mind Products
http://mindprod.com

Responsible Development is the style of development I aspire to now. It can be summarized by answering the question, �How would I develop if it were my money?� I�m amazed how many theoretical arguments evaporate when faced with this question.
~ Kent Beck (born: 1961 age: 49) , evangelist for extreme programming.
From: Roedy Green on
On Tue, 16 Mar 2010 18:20:07 -0400, Tony Yan <noreply(a)example.net>
wrote, quoted or indirectly quoted someone who said :

>Knute, what is EDT?

Oh dear. You absolutely have to understand the EDT to use Swing.

See http://mindprod.com/jgloss/swing.html
and follow the links about threads.
--
Roedy Green Canadian Mind Products
http://mindprod.com

Responsible Development is the style of development I aspire to now. It can be summarized by answering the question, �How would I develop if it were my money?� I�m amazed how many theoretical arguments evaporate when faced with this question.
~ Kent Beck (born: 1961 age: 49) , evangelist for extreme programming.
From: Tony Yan on
On 3/16/2010 6:42 PM, Arne Vajh�j wrote:
> On 16-03-2010 18:20, Tony Yan wrote:
>> On 3/16/2010 12:08 PM, Knute Johnson wrote:
>>> On 3/16/2010 8:14 AM, Sam Takoy wrote:
>>>> In my code (will provide an example if necessary),
>>>
>>> Always a good idea.
>>>
>>> I have a JLabel that
>>>> doesn't change it's content after label.setText("new-content"). The
>>>> text
>>>> does change after I resize the parent JInternalFrame. I have never
>>>> encountered this behavior before and I am wondering what this could be
>>>> caused by...
>>>
>>> Are you calling setText() from the EDT?
>>>
>>> Are you blocking the EDT?
>>
>> Knute, what is EDT?
>
> http://en.wikipedia.org/wiki/Event_dispatching_thread
>
> And EDT is something you should know about when programming GUI
> in Java.
>
> Arne

Thanks, Arne! I didn't know "Event_dispatching_thread" can be called as EDT.

Tony
From: Tony Yan on
On 3/17/2010 2:02 AM, Roedy Green wrote:
> On Tue, 16 Mar 2010 18:20:07 -0400, Tony Yan<noreply(a)example.net>
> wrote, quoted or indirectly quoted someone who said :
>
>> Knute, what is EDT?
>
> Oh dear. You absolutely have to understand the EDT to use Swing.
>
> See http://mindprod.com/jgloss/swing.html
> and follow the links about threads.

So when do people start using EDT to refer to
"Event_dispatching_thread"? And also SSH for "Spring, Struct, Hibernate"?

Tony
From: Eric Sosman on
On 3/16/2010 6:20 PM, Tony Yan wrote:
>
> Knute, what is EDT?

He probably means one or more of

* Eastern Daylight Time, the civil time standard now in
effect where I live.

* A text/source editor for (Open)VMS.

* Eau de toilette, a range of perfume strengths.

* Ensconce Data Technology, maker of data-destruction products.

* Estelle Development Toolkit, a suite of tools for formal
specification and analysis of communicating systems.

So, choose whichever of these makes the most sense in context.

Oh, and there's a faint chance that he meant the Event
Dispatching Thread on which most Swing activities occur.

It's long been recognized that three-letter acronyms (TLA's)
are in limited supply, and that most of them have already been
used several times. There's a move afoot to increase the
supply of TLA's by making them longer, so you can expect to see
four- and five-letter TLA's any day now.

--
Eric Sosman
esosman(a)ieee-dot-org.invalid