|
TorstenH. wrote: mix up mess
What do you not understand? My computer has an operating system: Windows 7 64bit (it has more than 4 GB RAM, hence I won't use 32bit Win7). The program loads 32 bit ThirdParty libraries, hence I must create a 32bit application. And guess what the real users will do...
|
|
|
|
|
That has nothing to do with either your original question or Torsten's response. You are asking about accessing text boxes in a Java application from a C# program, which sounds like a recipe for a major disaster. What exactly are you trying to achieve here?
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Simple: speech recognition into Java swing text components. Of course, not the simple approach of emulating a keyboard, but advanced things like changing one word in a sentence.
Of course, I know that it is prone to disaster. It is not my decision to try that.
|
|
|
|
|
So the speech recognition is done by a C# program, the GUI is made in Java?
I'm still not clear how you get the connection between these 2 parts.
I would use a local RMI connection, which gives a smoother connection between these 2 worlds.
Note: for Java it is not relevant if your code is running on 64bit or 32 bit. the JAR is always the same and so should be all third party libs. Only some Runtime related JARs might be different and be added during your deployment build.
|
|
|
|
|
More complicated:
- Speech recognition is done by a ThirdParty OutProc COM server.
- Our application is in C#.
- Another application (not developed by us) is written in Java.
The end user wants to take our application as an "assistive technology".
The JavaAccessBridge (a product of Sun/Oracle: http://docs.oracle.com/javase/accessbridge/2.0.2/title.htm[^]) is a terrific product. When you do the DllImport, you have to differentiate whether you are running on a 32 bit OS, or a 32bit application on a 64 bit OS or a 64bit application on a 64bit OS - yes, three cases! While "AccessibleContext" is an IntPtr on 32 bit OS, it is an Int64 on 64bit OS regardless of a 32bit or 64bit application. Yeah, also that's a mess. We will need to versions - one for 64bit OS and one for 32bit OS - despite the fact that our program will always be a 32bit program.
|
|
|
|
|
Bernhard Hiller wrote: - Speech recognition is done by a ThirdParty OutProc COM server. - Our
application is in C#. - Another application (not developed by us) is written
in Java.
Three specific items.
Now explain in DETAIL the relationship between the three.
For EXAMPLE...
The C# program uses interop to talk to the COM server. And now the Java app must call the COM server too. And the C# and Java apps do not communicate/interact at all.
|
|
|
|
|
i want to make a transparent frame......an i know how to do....but the containt(buttons,textfield) also got transparent....i only wish to do ony frame transparent not the containt in it.......
plz help me......
and share your views with me....
thanks in advance....
|
|
|
|
|
The manual[^] read you must.
Panic, Chaos, Destruction. My work here is done.
Drink. Get drunk. Fall over - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer
Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett
|
|
|
|
|
I want to use API function in Java, how to load DLL of api function. please help me.
my email: rahmat_7088@yahoo.com
|
|
|
|
|
you do not now anything about JAVA do you?
JAVA uses jar-files. no DLL.
Which API is it that you want to use?
|
|
|
|
|
I want to use Setactivewindow function's API. please help me.
how to use JNI , Native Function , . . . . in java.
|
|
|
|
|
rahmat_20 wrote: how to use JNI
Did you look at the link I gave you? It contains all the information you need to use JNI.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
rahmat_20 wrote: I want to use Setactivewindow
Presumably NOT because you think this is necessarily going to work with a java component.
So your FIRST steps.
1. Learn C/C++
2. Learn how to create a windows window
3. Write C/C++ code to call SetActiveWindow()
4. Test it.
NONE of the above has anything to do with java.
DO NOT write java until you have the above working.
|
|
|
|
|
Torsten may be quite correct in his comments, but it may also be that you are thinking of the Java Native Interface[^].
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
|
import java.util.Scanner;
public class ScannerTester{
public static void main (String args[]){
Scanner aScanner_input = new Scanner(System.in);
String aScanner;
aScanner= aScanner_input.nextLine();
if (aScanner == "s"){
System.out.println("A Scanner is s!");
}
if (aScanner == "Y"){
System.out.println("A scanner is Y!");
}
}
}
Hey, the code is above. I wager this is some kind of cast or data type problem. I tried aScanner_input.next() and aScanner_input.nextLine(). With both it doesnt' recognize Y as Y and s as s!?!! i.e. none of the if-blocks can get accessed regardless of input.
I can get scanner to work with other data types like int (and nextInt()).
Appreciate if anyone knows what's going on. Cheers. Thanks. (*I love this forum. Very helpful. And as said before, I go to this forum and I don't use stackoverflow). Thanks!
|
|
|
|
|
if (aScanner == "s"){
should be
if (aScanner.equals("s")){
See also here[^] for more information on Java String s.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
OMG I realized this is the exact same problem I had before when posting on my first post. I need to use a String.equals() comparison for strings in the if-conditional. I will try that. (thanks...to my recollection of solving that problem the first time! lol xD).
Marvelous. got it. Sweet. solved. nice code symmetry (start code and end fixed code, too)!
import java.util.Scanner;
public class ScannerTester{
public static void main (String args[]){
Scanner aScanner_input = new Scanner(System.in);
String aScanner;
aScanner= aScanner_input.next();
if (aScanner.equals("s")){
System.out.println("aScanner is s!");
}
if (aScanner.equals("Y")){
System.out.println("aScanner is Y!");
}
}
}
|
|
|
|
|
You can say:
import java.util.Scanner;
public class ScannerTester
{
public static void main ( String[] args )
{
Scanner aScanner_input = new Scanner( System.in );
String aScanner;
aScanner = aScanner_input.next();
if ( sScanner == "s" )
{
System.out.println("aScanner is s!");
}
if ( aScanner == "Y" )
{
System.out.println("aScanner is Y!");
}
}
}
|
|
|
|
|
Hello,
anyone can help me?
how to make a resistor color code with java?
please,source code about this project?
thank,
|
|
|
|
|
|
Just remember "Bad beer rots our young guts but vodka goes well – get some now"
Panic, Chaos, Destruction. My work here is done.
Drink. Get drunk. Fall over - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer
Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett
|
|
|
|
|
I do not want to disturb anybody with my arrogance anymore, but I could not leave without compensating for that downvote. Whoever did that, he sure did not get the meaning of that sentence.
And now I'm going to log out and disappear again.
I'm invincible, I can't be vinced
|
|
|
|
|
Come and disturb us, it's always welcome.
Panic, Chaos, Destruction. My work here is done.
Drink. Get drunk. Fall over - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer
Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett
|
|
|
|
|
i have any problem about in java source code.
how to make the application resistor color code in java?
I ask for its support ......
|
|
|
|