Programming :: Java Applets - Mouse Dragging Event
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
ADVERTISEMENT
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
View Related
Jan 24, 2011
i need to have the time of occurence for mouse event in xinput,right now i run
Code:
xinput test <device_id> >log.txt
(for finding device_id using xinput list)
[code]...
View 4 Replies
View Related
Sep 15, 2015
CNEE(1) General Commands Manual says this. RECORD OPTIONS --first-last Print only first and last of multiple successive MotionEvent. So I try this. my test window is Calculator 3.14.1 cnee --record --mouse --keyboard --time 5 --store-mouse-position --first-last --stop-key h -o xnee.xns -e xnee_record.log -v;The result is, xnee.xns lists every mouse movement.But I only need to record the mouse location when there is a mouse button event. it seems --first-last does not work. How can I make it work?I use
hardware HP pavillion 20.
The only avalible resolution is 1600x900.
/etc/debian_version 8.1
GNOME Terminal 3.14.1
xnee 3.19
View 0 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
May 29, 2010
When I click and drag - Both Window Title Bars and text selection- the mouse acts as I have released the button and drops the click and the window/text selection is left in middle of nowhere.
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
Mar 14, 2010
I have a Logitech Media Play mouse with many buttons. I'm using xbindkeys to create some shortcuts to programs e.g. firefox, gnome-terminal--these work wonderful. What I cannot figure out is how to get the buttons to work for the media player(Ubuntu>System>Keyboard Shortcuts>Sound). I set shortcuts using my win key and letters, hoping to use xbindkeys to send out a keystroke. I have tried to use xmacro but to no avail. xdotool was not helpful, I think it may be outdated(desktop/workspace functions did not work).
My preferred option would be to get mouse events to keystrokes working with xbindkeys and program x(x being whatever works); however, just getting my media buttons to interact with the media play is my ultimate goal.
View 1 Replies
View Related
Aug 2, 2010
In Power Manager I set a 5 minutes period of inactivity before turning off the monitor... But in Fedora 11, when I saw movies, the sleep mode didn't come... But in Fedora 13 (programm VLC-player), after 5 minutes, computer come into sleep mode..What do I do to configure Power Manager or another program for watching movies without permanent dragging mouse?))
View 4 Replies
View Related
Feb 18, 2010
The following script will work when I type the path to the file I want to checksum, but not when I drag the file to the terminal because the linux terminal (unlike the Mac) automatically puts quotes around the file path, which causes an error. (Clarification: am referring to gnome-terminal. Thanks, GrapefruiTgirl.) I did not find anything in gconf-editor or anywhere else to alter this behaviour, and my post in Launchpad is unanswered so far. (the script in itself is not very useful, I just stumbled upon this error when experimenting with bash).
So, is there a workaround for stripping the quotes from the input, or can I configure the terminal to not quote the input when I drag a file into it (which I would prefer?)
I am currently logged in from Mac OS, but the question refers to ubuntu karmic with which I dual boot.
View 6 Replies
View Related
Nov 30, 2010
I'm using mq_notify to be notified about events on a message queue. But my registered notifier function is not being called. I'm pasting my code snippet below:
[Code]....
View 4 Replies
View Related
Jul 13, 2010
I am trying to write an app that will perform some actions when a network interface is unplugged. Is there a way to get the OS to signal me when a network interface is unplugged. I have looked at DBus but can't figure it out.
View 1 Replies
View Related
Oct 14, 2010
When i create a new event device (/dev/input/event) it is automatically grabbed by Xorg:
Code:
(II) config/udev: Adding input device Keypad Emulation Driver (/dev/input/event7)
(**) Keypad Emulation Driver: Applying InputClass "evdev keyboard catchall"
[code]....
View 1 Replies
View Related
Nov 17, 2010
I'm working on an application which generates random shapes when clicking on a window. I designed the window using Motif. I want to invoke the ButtonPress Event .
View 1 Replies
View Related
Oct 27, 2010
Is any way to detect a keypress event in a console session? Preferebly without needing the application to be running in the foreground
View 2 Replies
View Related
Feb 18, 2010
How to do so? For starters, I'm not sure there is such an event. Maybe it has something to do with the OS moving through certain run-levels
View 6 Replies
View Related
Feb 6, 2011
I'd like to use a perl script to update a fields in mysql database when pianobar (command line pandora radio player) starts a new song. Pianobar has the ability to run a script based on events, I'd like to take advantage of and use perl toparse the artist,song,album and update the corresponding fields. Then later retrieve them and display them with php/html. I am by no means proficient with perl. I started to use bash, but it looks like perl will be much more efficient and and less time consuming.
Code:
#! /usr/bin/perl -wT
use strict;
[code]...
View 2 Replies
View Related
Feb 6, 2010
I'm seeking workarounds for this problem:When you mouse scroll in website with java content (happens often for with these: [URL], then X crashes and everything goes back to gdm screen. It happens mostly when I'm down in the page and mouse scroll up back into the direction of the java content. I'm running Karmic + FF 3.5.7 + Java Plug-in 1.6.0_15 + NoScript 1.9.9.45.
View 6 Replies
View Related
Nov 8, 2010
When I getch() a key event (UP arrow key), the getch() function return a string of characters that I cannot compare with curses.KEY_UP constant. Here is the code I use :
while True:
w = gb.scrn.getch()
c = chr(w)
otp = 'touche:'+str(w)+' '+str(c)+"
[Code]...
It seems like getch() return three distincts bytes while I would retrieve it with a single ord() instruction in python like describes in curses/python documentation.
View 1 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