473,326 Members | 2,048 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,326 software developers and data experts.

problem with java applet

sir,
i have an applet .in that some signals are there which are represented by ovals.if any signal fails that oval has to flash(toggle betwwen red and black colors like that).
problem is along with that oval, some part of the applet is flickering(minorly)lightly from top to bottom for some time and steady for some time though i wrote the repaint coordinates properly.i want that remaining applet doesnt flicker lightly also.
why this is happening.i didnt get solution from 4days.i am trying.where is the problem i didnt get.
please help me
Jun 16 '07 #1
3 1297
JosAH
11,448 Expert 8TB
sir,
i have an applet .in that some signals are there which are represented by ovals.if any signal fails that oval has to flash(toggle betwwen red and black colors like that).
problem is along with that oval, some part of the applet is flickering(minorly)lightly from top to bottom for some time and steady for some time though i wrote the repaint coordinates properly.i want that remaining applet doesnt flicker lightly also.
why this is happening.i didnt get solution from 4days.i am trying.where is the problem i didnt get.
please help me
Are those signals 'real' signals, i.e.from the physical world? How fast do you
sample those signals? If you sample them very frequently and you change
colours very frequently when that sample 'fails' you might not even see your
oval blinking, i.e. it's blinking too fast to be seen by the human eye.

kind regards,

Jos
Jun 16 '07 #2
those are real signals(railway signals).
with signsls no problem.along with signals, remaining applet also flickering lightly for some time and some time steady.
in my code flash is thread.
try{
flash.sleep(500);
}
Jun 17 '07 #3
JosAH
11,448 Expert 8TB
those are real signals(railway signals).
with signsls no problem.along with signals, remaining applet also flickering lightly for some time and some time steady.
in my code flash is thread.
try{
flash.sleep(500);
}
From the information you supplied it *could* work, I can't tell. I would do it this
way: your 'Flash; object sleeps an amount of time, creates a certain Oval when
it wakes up, with a certain colour, position and size and delivers the Oval
object at a JComponent which collects it in a list. The Flash object invokes the
repaint method on the JComponent and repeats its sleeping cycle.

When the JComponents drawComponent method is invoked it simply draws all
the ovals in the list and removes them. Something along that line ...

kind regards,

Jos
Jun 17 '07 #4

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

Similar topics

0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
5
by: Rowland | last post by:
Hi, I know this question has prob. been asked a million times, but I couldn't find it in the FAQ, so here goes : I'm trying to write a Java applet to call a dll that resides on the web server...
2
by: Christian Galbavy | last post by:
Hy! My next problem is to make an applet from my program. I have just add the "extend applet" to my class and removed the main-method by the start-method of the applet. I was thinking that this...
1
by: polilop | last post by:
i have an java applet, and when i start it it shows a gray win with x. the console shows java.lang.NoClassDefFoundError: GeomApplet (wrong name: vj3/GeomApplet) at...
2
by: david | last post by:
Hello all, let's me explains my long problem: I'm doing an intranet with a media part. So im must be able to upload files on a ftp server AND have a record of informations about this file and...
3
by: Larry Martin | last post by:
I am trying to run a Java Applet on my ascx page and am getting an IO exception when IE6 tries to load the applet. It seems a lot of others are getting the same problem but a search of the web did...
4
by: google | last post by:
Dear newsgroup, I give up, I must be overseeing something terribly trivial, but I can't get a simple (Java) applet to react to incoming (python) SocketServer messages. Without boring you with...
3
by: Jimbo | last post by:
I have a website & applet produced under Windows-XP. It works fine. I took it to a machine running Windows 98 & an earlier version of Java to test what happens when I open the web page using IE6 &...
2
by: Andrew Neiderer | last post by:
This is simple HTML, Java but I am really confused. I include the code since it is so small - ---------------------------------------------------------------------------- -- test.html -- ...
0
by: suraneng | last post by:
I develop web-based application that use java applet to connect scanner by Twain, when applet popup windows for select Twain source (call Twain from java applet) then it scan a picture correctly, but...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...

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.