473,385 Members | 1,461 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to print Thread Object?

Hello All,

In my project, I need to show the timer clock. I am using :

Thread timerThread;

My timer is working properly, but I am not able to print it on the applet. Can anyone please tell me how to print it on the applet?

Thanks in advance.

-KiranJyothi
Aug 18 '08 #1
2 1114
JosAH
11,448 Expert 8TB
I assume that your timer thread produces something. Store that something in
your Applet class, make it repaint itself and in the overridden paintComponent()
method you paint that something. Is this what you had in mind?

kind regards,

Jos
Aug 18 '08 #2
BigDaddyLH
1,216 Expert 1GB
Applet? Swing? There's no need to roll your own: use a javax.swing.Timer:

http://java.sun.com/docs/books/tutor...isc/timer.html

And in fact, there are some challenges combining Swing with threads:

http://java.sun.com/docs/books/tutor...ncy/index.html
Aug 18 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: vincent delft | last post by:
What will be the result if I have several threads that print to different buffers ? I have several threads, each one execute different python code. Just before the "exec" of this small python...
23
by: stewart.midwinter | last post by:
No doubt I've overlooked something obvious, but here goes: Let's say I assign a value to a var, e.g.: myPlace = 'right here' myTime = 'right now' Now let's say I want to print out the two...
5
by: vegetax | last post by:
How can i use cgi'like print statement in a multitreaded web framework? each thread has its own Servlet instance with request/response objects, sys.stdout = self.response(which is a file like...
3
by: SpamProof | last post by:
I'd like to be able to print multiple documents are once using vb.net. What is the best way to do this with out having to print each document one at a time via a loop . Can't I send them all to...
0
by: mrnicelife | last post by:
Hi, When using WebBrowser object to print an html page, the ExecWB call has a nice argument that allows an application to wait for the completion of the print job. When an app call ExecWB with...
4
by: yom | last post by:
Hi all. I have to write a Windows Application presenting a textbox to the user. Each time the user press a button on the main form I need to print the text of the textbox. I try using the...
13
by: Michael D Murphy | last post by:
Any information on the best way to print a prn file from within a VB.Net Web Application would be appreciated. Thanks, Michael Murphy 954-452-1047 mdmurphy@scs-techresources.com
3
by: mygroup | last post by:
Hello Folks, I have an asp.net application which requires to fill a form. Once the form is completed, it should print the final page on server side (not the client side). I tried to use...
18
by: =?Utf-8?B?SGVyYg==?= | last post by:
I'm using a ReportViewer in ASP.NET. From the development environment it works fine. When published and I try to open the page with the ReportViewer I get the error: An internal error occurred...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.