Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #19441 > unrolled thread

Text delay

Started byK <kalezwe@gmail.com>
First post2012-10-19 10:15 -0700
Last post2012-10-20 19:37 -0700
Articles 7 — 7 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  Text delay K <kalezwe@gmail.com> - 2012-10-19 10:15 -0700
    Re: Text delay Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-10-19 13:49 -0400
      Re: Text delay bob smith <bob@coolfone.comze.com> - 2012-10-19 14:56 -0700
        Re: Text delay Lew <lewbloch@gmail.com> - 2012-10-19 18:18 -0700
    Re: Text delay Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2012-10-19 22:58 +0200
    Re: Text delay Rajiv Gupta <rajiv@invalid.com> - 2012-10-20 14:49 +1100
    Re: Text delay Roedy Green <see_website@mindprod.com.invalid> - 2012-10-20 19:37 -0700

#19441 — Text delay

FromK <kalezwe@gmail.com>
Date2012-10-19 10:15 -0700
SubjectText delay
Message-ID<4e43e1e2-4f9c-479f-b5a6-ab66cdbf5d53@googlegroups.com>
Does anyone know how to make certain text in a java application delay and display after the previous text 

[toc] | [next] | [standalone]


#19442

FromEric Sosman <esosman@comcast-dot-net.invalid>
Date2012-10-19 13:49 -0400
Message-ID<k5s3rc$o73$1@dont-email.me>
In reply to#19441
On 10/19/2012 1:15 PM, K wrote:
> Does anyone know how to make certain text in a java application delay and display after the previous text

	System.out.println("the previous text");
	try {
	    Thread.sleep(desired_delay_in_milliseconds);
	} catch (InterruptedException ex) {
	    System.out.println("This may be premature, but:");
	}
	System.out.println("certain text");

     In other words, you'll get no better answer today than you did
three days ago unless you explain your situation more clearly.

-- 
Eric Sosman
esosman@comcast-dot-net.invalid

[toc] | [prev] | [next] | [standalone]


#19444

Frombob smith <bob@coolfone.comze.com>
Date2012-10-19 14:56 -0700
Message-ID<da6bc319-9343-4794-94b8-09e056052e3e@googlegroups.com>
In reply to#19442
On Friday, October 19, 2012 12:49:32 PM UTC-5, Eric Sosman wrote:
> On 10/19/2012 1:15 PM, K wrote:
> 
> > Does anyone know how to make certain text in a java application delay and display after the previous text
> 
> 
> 
> 	System.out.println("the previous text");
> 
> 	try {
> 
> 	    Thread.sleep(desired_delay_in_milliseconds);
> 
> 	} catch (InterruptedException ex) {
> 
> 	    System.out.println("This may be premature, but:");
> 
> 	}
> 
> 	System.out.println("certain text");
> 
> 
> 
>      In other words, you'll get no better answer today than you did
> 
> three days ago unless you explain your situation more clearly.
> 
> 
> 
> -- 
> 
> Eric Sosman
> 
> esosman@comcast-dot-net.invalid

I think he wants to do what's called a Toast.

http://en.wikipedia.org/wiki/Toast_(computing)

[toc] | [prev] | [next] | [standalone]


#19446

FromLew <lewbloch@gmail.com>
Date2012-10-19 18:18 -0700
Message-ID<8208b4da-b4ca-4f6b-8593-04a63d9e598d@googlegroups.com>
In reply to#19444
bob smith wrote:
>Eric Sosman wrote:
>> K wrote:
>>> Does anyone know how to make certain text in a java application delay and display after the previous text
> 
>> 	System.out.println("the previous text");
>> 	try {
>> 	    Thread.sleep(desired_delay_in_milliseconds);
>> 	} catch (InterruptedException ex) {
>> 	    System.out.println("This may be premature, but:");
>> 	}
>> 	System.out.println("certain text");
> 
>>      In other words, you'll get no better answer today than you did
>> three days ago unless you explain your situation more clearly.
>
> I think he wants to do what's called a Toast.
> 
> http://en.wikipedia.org/wiki/Toast_(computing)

Maybe, but he insisted that he's talking about lines of text, so probably not.

It's not clear, and given that he already asked this question and got advice, and 
opened up a new thread and provided no further clarification or elaboration, 
one wonders if it's even worth the bother to address the question.

-- 
Lew

[toc] | [prev] | [next] | [standalone]


#19443

FromDaniele Futtorovic <da.futt.news@laposte-dot-net.invalid>
Date2012-10-19 22:58 +0200
Message-ID<k5seve$t02$1@dont-email.me>
In reply to#19441
On 19/10/2012 19:15, K allegedly wrote:
> Does anyone know how to make certain text in a java application delay
> and display after the previous text

Yes.

-- 
DF.

[toc] | [prev] | [next] | [standalone]


#19447

FromRajiv Gupta <rajiv@invalid.com>
Date2012-10-20 14:49 +1100
Message-ID<k5t704$14k$1@speranza.aioe.org>
In reply to#19441
On 2012-10-20 04:15:27 +1100, K said:

> Does anyone know how to make certain text in a java application delay 
> and display after the previous text

There is always a delay after displaying text. This delay is provided 
free of charge to you by the inherent latency in the JVM and the 
operating system.

[toc] | [prev] | [next] | [standalone]


#19452

FromRoedy Green <see_website@mindprod.com.invalid>
Date2012-10-20 19:37 -0700
Message-ID<ftn68850so33a820r1slcuauvbflasr4s3@4ax.com>
In reply to#19441
On Fri, 19 Oct 2012 10:15:27 -0700 (PDT), K <kalezwe@gmail.com> wrote,
quoted or indirectly quoted someone who said :

>Does anyone know how to make certain text in a java application delay and display after the previous text 

you would create a timer that did a setText with different text on
each trigger.

See the code for SetClock. It updates the time periodically.

See http://mindprod.com/webstart/setclock.html
-- 
Roedy Green Canadian Mind Products http://mindprod.com
There are four possible ways to poke a card into a slot.
Nearly always, only one way works. To me that betrays a 
Fascist mentality, demanding customers conform to some 
arbitrary rule, and hassling them to discover the magic 
orientation. The polite way to do it is to design the reader 
slot so that all four ways work, or so that all the customer 
has to do is put the card in the vicinity of the reader. 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web