Panel-Components can be marked
Hello together! I have a problem: I have Panel and these Panel I have added components: 2 TextFields. These TextFields or contents of these two TextFields can be marked. How can I teach these Panel that only one TextField (contents of this TextField) can be marked? Thanks. Alex. Mit freundlichen Gruessen A.Hordt >> systec Elektronik und Software GmbH << >Automatisierungs- und Antriebstechnik< Nottulner Landweg 90 48161 Muenster - Germany Telefon: 0700-SYSTEC-DE Telefax: 0 25 34-80 01-77 eMail: [EMAIL PROTECTED] Besuchen Sie uns im Internet! << http://www.systec.de >> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: Panel-Components can be marked
What has this got to do with Linux? -- From: Alexander Hordt To: [EMAIL PROTECTED]; KIRKBRIDE Rob ([EMAIL PROTECTED]) Subject: Panel-Components can be marked Date: 10 October 2000 12:36 Hello together! I have a problem: I have Panel and these Panel I have added components: 2 TextFields. These TextFields or contents of these two TextFields can be marked. How can I teach these Panel that only one TextField (contents of this TextField) can be marked? Thanks. Alex. Mit freundlichen Gruessen A.Hordt >> systec Elektronik und Software GmbH << >Automatisierungs- und Antriebstechnik< Nottulner Landweg 90 48161 Muenster - Germany Telefon: 0700-SYSTEC-DE Telefax: 0 25 34-80 01-77 eMail: [EMAIL PROTECTED] Besuchen Sie uns im Internet! << http://www.systec.de >> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] <<< Original Email Header >>> Received: from punt-2.mail.demon.net by mailstore for [EMAIL PROTECTED] id 971177003:20:20878:10; Tue, 10 Oct 2000 11:23:23 GMT Received: from karlasha.2kweb.net ([192.41.21.66]) by punt-2.mail.demon.net id aa2020707; 10 Oct 2000 11:23 GMT Received: (karlasha@localhost) by karlasha.2kweb.net (8.8.5) id EAA01356; Tue, 10 Oct 2000 04:17:59 -0600 (MDT) Resent-Date: Tue, 10 Oct 2000 04:17:59 -0600 (MDT) From: "Alexander Hordt" <[EMAIL PROTECTED]> Organization: SYSTEC Elektronik und Software GmbH To: [EMAIL PROTECTED] Date: Tue, 10 Oct 2000 12:15:08 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Panel-Components can be marked Priority: normal X-mailer: Pegasus Mail for Windows (v2.54DE) Message-ID: <[EMAIL PROTECTED]> Resent-Message-ID: <[EMAIL PROTECTED]> Resent-From: [EMAIL PROTECTED] X-Mailing-List: <[EMAIL PROTECTED]> archive/latest/4535 X-Loop: [EMAIL PROTECTED] Precedence: list Resent-Sender: [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Error on loading jdk1.2.2 libs on SuSE
Cannot load shared libraries .. error messages are coming on SuSE but not on Redhat. The problem occured when installed jdk1.2.2 on SuSE 6.1. The LD_LIBRARY variable is also set properly.. but the error is still there.. with regards Reghunath Get free email and a permanent address at http://www.netaddress.com/?N=1 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
invoking jvm with c
thanx in advance for ur reply , i wanna a programme to run which is there in jdk1.2.2
tutorial from sun , java native interface, invoking jvm .
i have j2sdk1.3 blackdowns java on redhat6.1 ,
i am compiling it with
$ gcc -O -I/usr/local/j2sdk1.3/include
-I/usr/local/j2sdk1.3/include/linux
-L/usr/local/j2sdk1.3/jre/lib/i386 -ljava
-shared invoke.c
$./a.out
when i run o/p SEGMENTATION fault(core dumped)
please help me out
do i need to set any classpath or path, if yes how , bcos i am new to jni on linux
regards
Sreenivas
(c - code )
*
#include
#ifdef _WIN32
#define PATH_SEPARATOR ';'
#else /* UNIX */
#define PATH_SEPARATOR ':'
#endif
#define USER_CLASSPATH "." /* where Prog.class is */
main() {
JNIEnv *env;
JavaVM *jvm;
JDK1_1InitArgs vm_args;
jint res;
jclass cls;
jmethodID mid;
jstring jstr;
jobjectArray args;
char classpath[1024];
/* IMPORTANT: specify vm_args version # if you use JDK1.1.2 and beyond */
vm_args.version = 0x00010001;
JNI_GetDefaultJavaVMInitArgs(&vm_args);
/* Append USER_CLASSPATH to the end of default system class path */
sprintf(classpath, "%s%c%s",
vm_args.classpath, PATH_SEPARATOR, USER_CLASSPATH);
vm_args.classpath = classpath;
/* Create the Java VM */
res = JNI_CreateJavaVM(&jvm,(void **)&env,&vm_args);
if (res < 0) {
fprintf(stderr, "Can't create Java VM\n");
exit(1);
}
cls = (*env)->FindClass(env, "Prog");
if (cls == 0) {
fprintf(stderr, "Can't find Prog class\n");
exit(1);
}
mid = (*env)->GetStaticMethodID(env, cls, "main", "([Ljava/lang/String;)V");
if (mid == 0) {
fprintf(stderr, "Can't find Prog.main\n");
exit(1);
}
jstr = (*env)->NewStringUTF(env, " from C!");
if (jstr == 0) {
fprintf(stderr, "Out of memory\n");
exit(1);
}
args = (*env)->NewObjectArray(env, 1,
(*env)->FindClass(env, "java/lang/String"), jstr);
if (args == 0) {
fprintf(stderr, "Out of memory\n");
exit(1);
}
(*env)->CallStaticVoidMethod(env, cls, mid, args);
(*jvm)->DestroyJavaVM(jvm);
}
(java - code )
***
public class Prog {
public static void main(String[] args) {
System.out.println("Hello World" + args[0]);
}
}
_
Want a new web-based email account ? ---> http://www.firstlinux.net
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: invoking jvm with c
> "Sreenivas" == Sreenivas Gummadidala <[EMAIL PROTECTED]> writes:
Sreenivas> thanx in advance for ur reply , i wanna a programme to
Sreenivas> run which is there in jdk1.2.2 tutorial from sun , java
Sreenivas> native interface, invoking jvm . i have j2sdk1.3
Sreenivas> blackdowns java on redhat6.1 ,
Sreenivas> i am compiling it with
Sreenivas> $ gcc -O -I/usr/local/j2sdk1.3/include
Sreenivas> -I/usr/local/j2sdk1.3/include/linux
Sreenivas> -L/usr/local/j2sdk1.3/jre/lib/i386 -ljava
Sreenivas> -shared invoke.c
Remove the '-shared' option and link with '-ljvm' instead of '-ljava'.
Also add '-lpthread' and '-D_REENTRANT':
Our 1.3 includes j2sdk-config which may help you with this:
% j2sdk-config --cflags
-D_REENTRANT -D_GNU_SOURCE -I/usr/lib/j2sdk1.3/include
-I/usr/lib/j2sdk1.3/include/linux
% j2sdk-config --libs
-L/usr/lib/j2re1.3/lib/i386/client -ljvm -lpthread
Sreenivas> JDK1_1InitArgs vm_args;
For HotSpot you have to use JavaVMInitArgs instead of JDK1_1InitArgs.
You might want to take a look at the Invocation example in our FAQ:
http://www.blackdown.org/java-linux/docs/support/faq-release/examples/invocation-in-C++/
With j2sdk-config the makefile can be somewhat simpler:
#
#
# See http://www.blackdown.org/java-linux/faq/FAQ-java-linux.html
# for more information.
#
# $Id: Makefile,v 1.1 1999/12/31 16:22:54 kreilede Exp $
#
#
J2SDK_CONFIG=j2sdk-config
#J2SDK_CONFIG=j2sdk-config -server
#J2SDK_CONFIG=j2sdk-config -native
JAVA_HOME=$(shell $(J2SDK_CONFIG) --javahome)
# The java tools:
JAVAC=$(JAVA_HOME)/bin/javac
JAVA=$(JAVA_HOME)/bin/java
JAVAH=$(JAVA_HOME)/bin/javah
CXXFLAGS=$(shell $(J2SDK_CONFIG) --cflags)
LIBS=$(shell $(J2SDK_CONFIG) --libs)
# The java source code
JAVA_SRC = example/HelloWorld.java
# The java class files
JAVA_CLASSES = $(JAVA_SRC:%.java=%.class)
all: helloworld $(JAVA_CLASSES) run
helloworld: helloworld.o
$(CXX) -o $@ $? $(LIBS)
helloworld.o: helloworld.cpp
$(CXX) $(CXXFLAGS) -c -o $@ $<
run: helloworld $(JAVA_CLASSES)
LD_LIBRARY_PATH=$(shell $(J2SDK_CONFIG) --ld-library-path) ./helloworld
example/%.class: example/%.java
${JAVA_HOME}/bin/javac $<
clean:
$(RM) example/*.class example/*~ core *.o *.so *~ ./helloworld
Juergen
--
Juergen Kreileder, Blackdown Java-Linux Team
http://www.blackdown.org/java-linux.html
JVM'01: http://www.usenix.org/events/jvm01/
Java/Linux Resources from IBM
A proposal for fixing the Java programming language's threading problems - Allen Holub suggests that the Java programming language's threading model is possibly the weakest part of the language. This article proposes significant changes and additions to the Java language that would address many of these problems. http://www-4.ibm.com/software/developer/library/j-king.html?open&l=258,t=gr,p=j.king Get a Free CD full of Linux/Java e-business solutions from developerWorks - Build open, integrated XML, Java and Linux e-business solutions using this free Developer Toolbox CD Set. Order yours today. Submit CD Request http://www.alphaworks/aw.nsf/html/DevToolsCD?open&l=jlbd,t=gr,p=j.jLog Reassigning object reference of a locked object - Peter Haggar warns us of the unexpected results when we reassign the object reference of a locked object without meaning to. http://www-4.ibm.com/software/developer/library/praxis/pr56.html?open&l=258,t=gr,p=j.locl -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Layouts and Colors
Hi to all. I am having a problem regarding layouts. I have been reading about layouts but I cannot find the way to do this. I mean, is pretty simple. I want something like this: Name:(textbox) Lastname: (textbox) (button) Of course, textbox means that I want a textbox and the button a button. I mean, I want the two text boxes to be in the same amount of space from the left margin and the button in the middle of the labels and text boxes two lines below. Also, I have another doubt, how can I change the font of the labels, textboxs and buttons? Thanks a lot! Nicolas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Java/Linux Resources from IBM
Jeffrey I Condon/Cupertino/IBM wrote: > > A proposal for fixing the Java programming language's threading problems > - > Allen Holub suggests that the Java programming language's threading model > is possibly the weakest part of the language. This article proposes > significant changes and additions to the Java language that would address > many of these problems. > http://www-4.ibm.com/software/developer/library/j-king.html?open&l=258,t=gr,p=j.king > I agree with a lot of those, especially the need for reader/writer locks, but some I don't. I think wait/notify is pretty clear and I don't like his proposed changes. Some of the changes I just didn't get. Can someone explain why we should wrap our threads in other threads? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Java/Linux Resources from IBM
Joseph Shraibman wrote: > Jeffrey I Condon/Cupertino/IBM wrote: > > > > A proposal for fixing the Java programming language's threading problems > > - > > Allen Holub suggests that the Java programming language's threading model > > is possibly the weakest part of the language. This article proposes > > significant changes and additions to the Java language that would address > > many of these problems. > > >http://www-4.ibm.com/software/developer/library/j-king.html?open&l=258,t=gr,p=j.king > > > I agree with a lot of those, especially the need for reader/writer > locks, but some I don't. I think wait/notify is pretty clear and I > don't like his proposed changes. Some of the changes I just didn't get. > Can someone explain why we should wrap our threads in other threads? The MxN threading model (user-space threads within kernel threads) has long been part of Solaris. It would be a pretty nice addition to Linux, given Linux's thread scaling limits. Nathan > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
