|
Hi,
http://www.cafeaulait.org/course/week5/16.html
http://web-design.lovetoknow.com/Javascript_Applet_Communication
http://bytes.com/topic/javascript/answers/89259-novice-question-regarding-passing-parameters-javascript-applet
|
|
|
|
|
No! I need to pass data from applet to a webpage (to html control) and not from page to applet. Or I need to make any change in webpage from applet that can be detected with a script.
So what I need is to make the webpage know when the applet finishes its function operations/work.
|
|
|
|
|
If the applet is signed I believe you can execute a javascript function from within the applet using the showDocument and provide it a link like:
showDocument(new URL("javascript:myCallback()");
|
|
|
|
|
Hi,
http://download.oracle.com/javase/tutorial/deployment/applet/invokingAppletMethodsFromJavaScript.html
|
|
|
|
|
#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d9ac0c6, pid=1972, tid=932
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b23 mixed mode, sharing windows-x86)
# Problematic frame:
# V [jvm.dll+0x13c0c6]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
--------------- T H R E A D ---------------
Current thread (0x02aac800): VMThread [stack: 0x02b90000,0x02be0000] [id=932]
......................and it goes on to give a lot of other data.
How do I interpret it?
|
|
|
|
|
kartikdasani wrote: # If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
That seems a fairly clear piece of advice. Unless you have the source code of the JVM I would suspect there is not much in the dump that will make a lot of sense.
The best things in life are not things.
|
|
|
|
|
Your runtime crashed. That's bad - really bad, not to say ugly.
Is it happening in a project you're working on? That's a really bad thing if this happens - you need to find the failure.
Somebody / something throws a RuntimeException[^].
You need to find the fail.
EDIT: Crosspost -> getTopWindows() causes runtime crash[^]
regards Torsten
I never finish anyth...
|
|
|
|
|
You are using the 32 bit VM.
The MOST likely cause of that problem is JNI code or a third party library that uses JNI code.
Probably 95% of all occurences is due to that.
Other than the next most likely cause is your environment. Something 'odd'. Such as some unusual firewall, patches, etc.
|
|
|
|
|
Exercise 12.4: A predicate is a boolean-valued function with one parameter. Some languages use predicates in generic programming. Java doesn't, but this exercise looks at how predicates might work in Java.
In Java, we could use "predicate objects" by defining an interface:
public interface Predicate {
public boolean test(Object obj);
}
The idea is that an object that implements this interface knows how to "test" objects in some way. Define a class Predicates that contains the following generic methods for working with predicate objects:
public static void remove(Collection coll, Predicate pred)
// Remove every object, obj, from coll for which
// pred.test(obj) is true.
public static void retain(Collection coll, Predicate pred)
// Remove every object, obj, from coll for which
// pred.test(obj) is false. (That is, retain the
// objects for which the predicate is true.)
public static List collect(Collection coll, Predicate pred)
// Return a List that contains all the objects, obj,
// from the collection, coll, such that pred.test(obj)
// is true.
public static int find(ArrayList list, Predicate pred)
// Return the index of the first item in list
// for which the predicate is true, if any.
// If there is no such item, return -1.
to See The Solution ---> http://www.java2s.clanteam.com/c12/ex-12-4-answer.html
(In C++, methods similar to these are included as a standard part of the generic programming framework.)
|
|
|
|
|
I want to make an applet to make a desktop short cut to a website. I was thinking have java execute a batch file that does the actual creation. I have no idea how to call the batch file. Any guidance would be appreciated!
|
|
|
|
|
I don't think you are allowed to do this from within an applet as it would breach the security rules for web browsers.
The best things in life are not things.
|
|
|
|
|
You can override that using a signed applet, so I think that is ok but I need to figure out how to execute the code
|
|
|
|
|
Sorry I can't offer much in the way of suggestions but you could look at the Runtime[^] class.
The best things in life are not things.
|
|
|
|
|
Since you already mentioned signing the applet.
1. Figure out a command line tool that does this for you. This has nothing to do with java.
2. Use Runtime.exec or ProcessBuilder to run the command line.
3. Sign your applet.
|
|
|
|
|
hey all..
i'm made..i'm from indonesia..
I have the task of the campus to make a TV remote through the mobile which has infrared ..
is there anything that can help me to tell how the infrared from mobile can change TV channels?
I am using j2me and my mobile nokia E71 ..
I am confused how to make the code on the television code j2me if it is hex number?
please help ..
or,,can inform me to my email
madeurie@yahoo.com
|
|
|
|
|
|
Please remove your emailID from your question.
|
|
|
|
|
|
|
i am tryin to install netbeans 7 but i keep getting the error
"You cannot install NetBeans 7.0 on this volume. This software can be installed and work only with Java 6."
i am using mac OS 10.5.7.i urgently need help... thank you
|
|
|
|
|
|
|
GetWindowText() will return the title of a window, unless that window specifically returns other information on receipt of a WM_GETTEXt message. You cannot get the text at a particular mouse position unless the window itself has some mechanism for providing it. The characters displayed on the screen are merely coloured pixels and have no direct relationship to the actual characters; that information is held within the program that owns the window.
The best things in life are not things.
|
|
|
|
|
hi Richard MacCutchan
Thanks for quick respone, follow up your message "The characters displayed on the screen are merely coloured pixels and have no direct relationship to the actual characters; " that we only can get the word at the mouse cursor by OCR. have you got any ideas for get the rectangle bounds the text under the mouse.
Thanks and Regards,
|
|
|
|
|
sharkbc wrote: we only can get the word at the mouse cursor by OCR. have you got any ideas for get the rectangle bounds the text under the mouse.
Unfortunately no, you would have to have some code to detect the boundaries of characters within the window and somehow figure out what they are. This is certainly not something that can be done easily, as you have no real points of reference, since the start and end points of each line of text may not necessarily even be shown on the screen, if the view has been scrolled in any direction.
It may be that you need to reconsider exactly what you are trying to do here.
The best things in life are not things.
|
|
|
|