Programming :: Java Applets - Timed - Repeating Activities
Jan 14, 2010
So, when I program my Java applet I am expected to use an event based model, where I run functions in response to mouse clicks and so forth, and I am supposed to return quickly so that the applet can continue looping. But what if I want certain functions to run by themselves on a regular schedule (like every 200 ms or so) without blocking mouse events, repaints, and so forth?
I looked at the source code of one Java applet I found, and it accomplished this by creating extra threads. I was wondering if creating extra threads was the only way to accomplish that, or if there was some more proper way to do it built into the Applet somehow.
View 1 Replies
ADVERTISEMENT
Jan 4, 2010
I know how to deal with a mouse click event like so:
Code:
But was happens when I am dealing with mouse dragging? Will my implementation of mouseDragged() get called for every pixel moved? So I just getX() and getY() like with a mouse click?
Also, in order to know when mouse dragging stops and starts, do I also have to put code in mousePressed and mouseReleased?
View 1 Replies
View Related
Mar 6, 2010
I am using Ubuntu 8.10. All the java programs run perfectly fine in Geany. But when I try to run java applets in web browsers it did not run. I have tried running it in Opera and FireFox. I have written a simple program which display "hello world" in browsers. When I refresh the page it displays the text for about 2 or 3 seconds and after that it disappears.
Are there any other ways to run java applets?
View 2 Replies
View Related
Nov 17, 2010
I always have trouble with java applets in Firefox, any time I open one the whole browser just seems to lock up. Any pointers for making them run properly? I'm running Ubuntu 10.04 and I have the IcedTea plugin.
View 1 Replies
View Related
Mar 6, 2010
i am running Oracle EBS R12.1.1 on Linux RHEL 5.3 ,I am not able to run java applets on the same . I installed latest rpm of jre-1.6.0_18 , and it is there in /usr/java/jre1.6.0_18 but when i am searching by command its showing
[Code]....
View 3 Replies
View Related
Feb 27, 2011
Why are applets not working on Squeeze? They were working in Lenny and work in Windows 7.
apt-cache policy openjdk-6-jdk icedtea6-plugin
openjdk-6-jdk:
Installed: 6b18-1.8.3-2
[code]...
View 10 Replies
View Related
May 1, 2010
yesterday when 10.04 got released i decided i'd install it and try it out, when i tried to run a java applet on it (runescape for example) the CPU usage got really high (around 100%), is that normal?
Info about my processor if you need:AMD Athlon(tm) 64 X2 Dual Core Processor 5000+ 2,61 GHz.This is my first time ever using ubuntu.
View 9 Replies
View Related
Oct 8, 2010
When I look at my content plugins in Firefox and the list of IcedTea plugins is 29 items long. Is this my problem or do Java Applets just not work in Lynx?
View 3 Replies
View Related
Jan 10, 2010
I have gnome, iceweasel, and java installed. Java works fine from the command line, but not on sites like the one below.
[URL]
I have java enabled. I'm running squeeze. The 'add-ons' dialog in iceweasel lists the following:
Code:
Java(TM) Plug-in 1.6.0_16
this is the output from the Java console when trying to load the applet:
Code:
load: class AppletGui not found.
java.lang.ClassNotFoundException: AppletGui
at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:152)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[code]....
I think the problem may have to do with where it says "Caused by: java.net.ConnectException: Network is unreachable" but I'm not sure what that means.
View 4 Replies
View Related
Jun 24, 2011
Code:
Tells me to go to the plugins folder under firefox. I look in /usr/lib/firefox-3.6 and I dont have a folder named plugins. But firefox does display a list of plugins from Tools>Addons>Plugins. The list displayed by the browser does not include java.
oracle tells me to make a link from this non existent folder to the jre and make a link to lib/i386/libnpjp2.so
I've done a find / and nowhere on the system is there a libnpjp2.so
There are a bunch of files similar to this in
Code:
View 2 Replies
View Related
Jul 12, 2010
All day today, my laptop has been absurdly hot.The core temperatures were exceeding 70.0C even though it was on a cooling pad and I had disabled wireless, lowered the screen brightness, and put the CPU on Powersave. (For comparison, the temp usually stays at 45.0C if I do all this)
Finally, I decided to check htop, and I found IcedTea Plugin at the top with 99% CPU usage. This is used to run embedded Java applets (Java, not Javascript). Curiously, no Java applets were running at that time.Now skip ahead an hour to when I finally discover that the IcedTea Plugin was left over from earlier because it didn't stop running when it was supposed to. Looking online, I see several complaints about Java being very taxing on the CPU in Ubuntu, but I don't see anything about Java applets continuing to run after they're gone.
Can anyone who has Java installed confirm that this happens on their system?
1. Open htop. Search for "icedtea" to make sure it isn't already running. Then click on "CPU%" to sort the list.
2. Open this page in Firefox: www.java.com/en/download/help/testvm.xml
3. Check htop. Is IcedTea climbing to the top? (if you have Java, it likely will, because this is a common issue)
4. Navigate off of the Java.com page by closing the tab or clicking Back.
5. Here's what I want to know. Check htop again. Is IcedTea still there?
6. Restart Firefox to get rid of IcedTea.
View 8 Replies
View Related
Mar 19, 2010
I'm using Iceweasel on Debian, and my java applets won't work. They used to work fine so I don't understand what happened to them. I installed the latest java jre from Sun and it made no difference. Java plugin seems to work (at least the javascript part) but it can't seem to download applet's. I tried running one locally (ran on of the example applet that came with the Sun jdk, but they won't work on the web) the java console pops up with these errors.
Quote:
View 1 Replies
View Related
Jul 16, 2010
My sound is otherwise working fine, but for some reason i'm not getting any sound when running java applets. This issue is very important to me, i would -really- like to get the sound back on this applet.it's a java runtime environment applet, running in embedded in firefox. Somehow, the systems isn't detecting it as a application outputting sound.
i tried uninstalling the sound manager application via synaptic, selected the 'completely remove' option, and wound up uninstalling essentially the entire OS last weekend. i'd like to not repeat that mishap, as i lost all my data.
View 3 Replies
View Related
Oct 25, 2010
Firefox is crashing whenever I go to a page with a java applet such as this one [URL]... I get the following output in the command line:
GCJ PLUGIN: thread 0xb5e191f0: NP_Initialize
GCJ PLUGIN: thread 0xb5e191f0: NP_Initialize: using /usr/lib/classpath/gappletviewer.
GCJ PLUGIN: thread 0xb5e191f0: NP_Initialize return
GCJ PLUGIN: thread 0xb5e191f0: GCJ_New
GCJ PLUGIN: thread 0xb5e191f0: plugin_data_new
[Code]...
View 3 Replies
View Related
May 18, 2011
i could find is crunch2.9 password generator but at the moment it does not suport the function that i am looking for. My aim is to generate : 10-character combinations of the following characters (lowercase) 23456789abcdef with no more then 3 same letters repeates no metter side by side or within one line (sequence) so lets say
abcdef1234 accept
fabcde1234 accept
ffabcd1234 accept
which is probably permutation with repetable string ( where abc is not equeal to cba etc .so ti speak position does metter)
fffabc1234 not acceptable -----(3 same characters)
ffabcf1234 not acceptable -----( 3 same characters event thought not side by side)
so generally we dont want 3 same characters apper in same line.
View 3 Replies
View Related
Apr 5, 2011
i have spotted that script (something similar that i am looking for)
[URL]
and i just dont know how to use it.I am not a programmer myself and probably no need for learning that just to create one script! modify "wje_lq" script and run it. thing like : "Just redirect standard output to a file in the normal manner" ? and all this
I.Comment out the first definition of *character-set*, by adding a semicon at the beginning of the line.
II.Uncomment the second definition, which just uses "ABC", by removing the semicolon from the beginning of the line.
III.Comment out the first definition of *word-length*.
IV.Uncomment the second definition, which uses a word length of four.
i would like to generate :
10-character combinations of the following characters (lowercase) 23456789abcdef with no more then 3 same letters repeates no metter side by side or within one line (sequence) so lets say
abcdef1234 accept
fabcde1234 accept
ffabcd1234 accept
which is probably permutation with repetable string ( where abc is not equeal to cba etc .so ti speak position does metter)
fffabc1234 not acceptable -----(3 same characters)
ffabcf1234 not acceptable -----( 3 same characters event thought not side by side)
we dont want 3 same characters apper in same line.
View 2 Replies
View Related
Jan 12, 2011
automate daily routines in a website. The things what I should do is to:
- log in
- click on HTML objects (I think I have to trigger the JavaScript onclick event)
Code:
<a href="http://www.xtremetop100.com/in.php?site=11111111" target="_blank" class="account_links">
<img src="/resource/bla/bla/vote/xtop100.gif" border="0"/>
</a>
(This is an image what I have to click on, after it I will receive a reward, then I have to wait 12 hours to benefit from it again.) My first idea was that to code it in C++, and I have searched the internet for the appropriate C++ headers, but I did not find any. So as you can see its not a concrete programming question, my main question is that, in what way could I do the above mentioned things.
View 4 Replies
View Related
Mar 7, 2010
Groovy is an object-oriented programming language for the Java platform. I do not have experience in Java, only perl and shell scripts. Recently I have been asked to maintain a software written in groovy (also to make enhancements). So can I learn groovy without knowing java language. or isit I have to learn java before venturing into groovy.
View 1 Replies
View Related
May 13, 2010
I'm running Fedora Core 12 x86_64. I started out using the default bash shell (and customized the .bashrc, etc. as necessary) but had to switch to csh for this one scientific package that requires that shell.
The issue is that my $PATH has unwanted redundancy and I can't figure out how to fix it:
Code:
The csh shell was completely new to me so I'm sure I made a mistake somewhere.
Below are the files that might be relevant for diagnosing this problem. I don't think I touched /etc/csh.login or /etc/csh.cshrc but I might have accidentally done so.
Code:
Code:
View 8 Replies
View Related
Oct 13, 2010
I have seen command like $rm aa dd cc bb ee then something like $ >> zz // it removes zz also Where aa dd cc bb ee zz are the files in my directory. Do not know exactly.
View 6 Replies
View Related
Jul 22, 2010
I want to create some files of a specific size containing a repeating pattern. I did some research and found that I can create a file and fill it with (fairly) random data by using dd like so: dd if=/dev/urandom of=myfile.dat bs=$(( 1024 * 1024 )) count=100 (Creates a 100 MB file.) I found that here: Quickly creating large files.
Rather than fill a file with random data, I'd like to use these patterns: 0xaa, 0x55, 0xff, and 0x00 (one per file). Is there a simple way to accomplish this?
View 8 Replies
View Related
Apr 30, 2010
I have a weird font problem that occur from time to time on fedora 12,I suspect gdm-user-switch-applet to be the culprit,but I can't say for sure.notice the weird 'r' letter.
View 1 Replies
View Related
Jun 20, 2010
Bought computer 11 months ago, immediately there were problems. What would happen is, when I logged in after a long period of shut down, the system would BSOD. Then I would restart and everything would be fine, until the next time I shut down for a long time (8ish hours) and got back on. I sent the laptop in (a couple times) and they eventually replaced the RAM and the BSODs went away. This is all on Windows 7 (well started on Vista, switched to Windows 7).
I recently set up a dual boot with Windows 7 and Ubuntu 10.04. I'm experiencing crashes on Ubuntu (the whole system just freezes, can't operate mouse, keyboard, or anything) and the behavior is similar. When I log on after a long period of shut down, the system will crash, but if I restart (actually I have to wait 10 minutes before I restart, if I restart immediately it will crash again) then it is fine, until the next period of long shutdown.
So I'm thinking it's bad RAM, so I downloaded Memtest and am testing each of my sticks (they are each 2GB) individually in the same connector thing (don't know what it is called, whatever the sticks attach to). The test for the first one passed with flying colors. However, the second one is having problems. On test #2, the memtest repeats itself, continuously looping through 0-32767 errors on the right side.
My laptop is an Asus G50VT
The 2 most interesting lines...
Highest Error Address: 000fffffffc - 4095.9 MB // does this make sense? 4095.9 MB on a 2GB stick?
Test 2: 32767 // the 32767 loops back around to 0 and repeats
View 1 Replies
View Related
Mar 28, 2010
I have a kernel error that repeats itself every few seconds that Ubuntu is up. After a couple of hours my /var/log file is up to 625M. It doesn't seem to hurt anything, but I would like to know what's going on.
Here it is in my kernel log:
Code:
Here is its first appearance in dmseg. It repeats mixed in with other stuff untill the end of the log.
Code:
View 3 Replies
View Related
Aug 24, 2010
I have an MSI U100 Winbook with Ubuntu Workstation 10.04 LTS newly installed (about 4 days ago).
The update manager displayed about 15 or so updates for my 10.04 installation which I installed. Upon reboot, I can not successfully login to the desktop. It will take my username/password, the screen will go black for a couple of seconds, then the error sound, and back to the login dialogue.
A tail on /var/log/messages displays:
atkbd.c: Unknown key released (translated set 2, code 0xf7 on isa0060/serio0)
atkbd.c: Use 'setkeycodes e077 <keycode>; to make it known.
composit sync not supported
These messages keep repeating. I am able to login at the console just fine. I have enabled root login but get the same issues logging in as root. I have googled and found several articles and postings involving these messages but they are all in reference to upgrading from 9.x to 10.04. I did not upgrade and did not experience the freezing of applications as noted in those posts.
View 1 Replies
View Related
May 28, 2010
I have 13.0 installed, everthing works OKI installed 13.1 on a separate partition, and dualbootWhen I use 13.1, there is a problem with sound.It's like in the old days when yu played an LP with a scratch, the track keeps repeating.When I move the mouse, sound will continue OK for a few seconds, then same problem.There is no difference, if I use KDE, XFCE, or just boot in runlevel 3 and use the command lineOnly thing I can find in the logs:Quote: May 28 06:37:10 cannabis kernel: hda-intel: IRQ timing workaround is activated for card #0. Suggest a bigger bdl_pos_adj.In 13.0, there is not such a line in the logs.Some info:Quote:
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
Subsystem: Fujitsu Technology Solutions Device 1107
Flags: bus master, fast devsel, latency 0, IRQ 22
[code]....
View 14 Replies
View Related
Jan 6, 2011
how to implement this.
View 3 Replies
View Related
May 27, 2010
Mainboard: ASUS A8N-SLI. X window manager:GNOME. When in wine application,such as starcraft or "Plants vs zombies",Sound is on for several seconds then mute several seconds then repeats......
Audio Controller info from Device Manager:
ALSA Capture
NVidia CK804 with ALC850
/dev/snd/pcmC0D0c
NVidia CK804 with ALC850
/dev/snd/pcmC0D1c
[Code].....
View 1 Replies
View Related
Jul 12, 2010
I'm trying to find a script that will return me the largest number of repeating characters. Say, I have the following line in a text file: 12345AAAAA6789AAA
I want it to return 5, because "A" is repeated 5 times in this line (more than 3 at the end).
View 6 Replies
View Related
Mar 12, 2010
I would like to run java program on fedora10 but I am facing some problems. When I use which java command it show usr/bin/java directory. I was trying to set the java_home path in bash_profile,but there is no affect.
View 2 Replies
View Related