Re: Question about printing in Jdk 1.1

1999-11-12 Thread Jacob Nikom
Hi, Here is some documentation: "The direct color model is a color model which specifies a translation from pixel values to alpha, red, green, and blue components using the actual bits of the pixel value. This color model is similar to an X11 TrueColor visual." "The Abstract Window Toolkit rep

Question about printing in Jdk 1.1

1999-11-12 Thread Eric Chao
I have an image that I wanted to print... This image is constructed using MemoryImageSource using an array of bytes, with each byte representing a pixel. I also have a DirectColorModal to translate the color in each pixel. image = createImage (new MemoryImageSource (d.width,

Frame repaint

1999-11-12 Thread Martin Kavalar
Hello! I am trying to do some painting on a panel used a a canvas with swing. So when a button is pressed, the button is removed from the ContentPane and the Canvas Panel is added. But my frame just wont draw the panel, only remove the button. Only when i resize it the painting appears. I tried ca

Re: blackdown jdk version

1999-11-12 Thread Daniel P. Zepeda
I don't know about your problem, but I *do* know that you have to set THREADS_FLAG=green JAVA_COMPILER=NONE to get jdb to run. Thus spake Raj Patel on Fri, 12 Nov 1999: > Hi, > I am putting this problem here one more time. I have a swing > application using > JNI. Everything was wor

Re: Pass by Reference question.

1999-11-12 Thread Peter Schuller
> I expected the following to work since Objects are supposedly > pass-by-reference. Am I doing something wrong here? Yes: in the method you are chaning the reference, not the obejct. E.g.: Boolean a = Boolean.TRUE; Boolean b = a; b = Boolean.FALSE; at this point, a is still equal to Boolean.

Re: blackdown jdk version

1999-11-12 Thread Raj Patel
Nathan Meyers wrote: > There isn't really a gdb-jdb combination. You can debug under gdb if > you want to debug native code, but you won't get source-level Java > debugging. > > There are some tricks to getting your debugging session started under > gdb, because the breakpoint needs to be set in

Re: blackdown jdk version

1999-11-12 Thread Nathan Meyers
There isn't really a gdb-jdb combination. You can debug under gdb if you want to debug native code, but you won't get source-level Java debugging. There are some tricks to getting your debugging session started under gdb, because the breakpoint needs to be set in a library (your JNI code) that is

Re: blackdown jdk version

1999-11-12 Thread Raj Patel
Nathan Meyers wrote: > I think you didn't get an answer because, in general, people are > successfully using Swing and JNI with the JDK1.2 and nobody recognized > your problem. Thanks for the response. I found the problem. Now i have some trouble in native calls. I have Redhat Linux 6.0 with

Re: blackdown jdk version

1999-11-12 Thread Nathan Meyers
I think you didn't get an answer because, in general, people are successfully using Swing and JNI with the JDK1.2 and nobody recognized your problem. > I am using Linux6.0(glibc2.0) jdk1.2(blackdown). > Is there any known problem with this transition?? Yes, there are known problems with the JDK1

Re: Oracle 8i & JDK 117v3

1999-11-12 Thread Ugo Cei
Aaron Mulder wrote: > Then, dbassist failed to launch from the install routine with the > error "not enough arguments". When we tried to run it, it simply died, > which we traced to the fact that all the tools use java -native which does > nothing if native threads aren't installed (why

blackdown jdk version

1999-11-12 Thread Raj Patel
Hi, I am putting this problem here one more time. I have a swing application using JNI. Everything was working ok under blackdown jdk 1.1.7 with swing-1.1.1 . Now i upgraded jdk to jdk 1.2(blackdown) so i don't have to have swing because it is already built in. But now under jdk1.2 my

Re: Pass by Reference question.

1999-11-12 Thread Nathan Meyers
Your BooleanTest2 is assigning a new reference (i.e., a reference to a different object) to the local variable "b". It's not changing the object whose reference was passed in from main(). If you wanted to change the object passed in from main, you would need to operate on *that* object... somethi

Libraries

1999-11-12 Thread Vida Luz
Hi all I am test JDK1.2 y when run java -version, I have error with with libhpi.so, the error is: /var/opt/jdk1.2/bin/i386/native_threads/javac: error in loading shared libraries libhpi.so: cannot open shared object file: No such file or directory I need to know because this error in shared obj

Re: Where is the mistake ? Bug ?

1999-11-12 Thread Robert Dietrick
Looks like ad is never being constructed. Thus, ad.addElement(a); throws a NullPointerException. -Rob On Fri, 12 Nov 1999, Dirk Waxweiler wrote: > Vector ad = null; > ... > void readwinners(String winners) throws Exception{ > String a = null, b = null; > Fi

Re: Where is the mistake ? Bug ?

1999-11-12 Thread Michael Sinz
On Fri, 12 Nov 1999 16:23:08 +0100, Dirk Waxweiler wrote: >Vector ad = null; >... > void readwinners(String winners) throws Exception{ > String a = null, b = null; > File infile = new File(winners); > BufferedReader br = new BufferedReader(new FileReader(infile)); > d

Re: Pass by Reference question.

1999-11-12 Thread Matthias Pfisterer
Hi Paul, "objects are passed by reference" is only half of the truth. In fact, this is implemented by passing the reference to the object (in C you would call it a pointer) by value. Your parameter Boolean b in changeBoolean() is this reference. By assigning to the reference, this reference will

Re: Pass by Reference question.

1999-11-12 Thread Oliver Koell
Paul Grepps wrote: > > I expected the following to work since Objects are supposedly > pass-by-reference. Am I doing something wrong here? Yes :-) > I'm just trying to change a Boolean value inside of a method and > return as pass-by-reference to the caller. in changeBoolean() you are not ch

Where is the mistake ? Bug ?

1999-11-12 Thread Dirk Waxweiler
Vector ad = null; ... void readwinners(String winners) throws Exception{ String a = null, b = null; File infile = new File(winners); BufferedReader br = new BufferedReader(new FileReader(infile)); do{ a = br.readLine(); System.out.print

Pass by Reference question.

1999-11-12 Thread Paul Grepps
I expected the following to work since Objects are supposedly pass-by-reference.  Am I doing something wrong here? I'm just trying to change a Boolean value inside of a method and return as pass-by-reference to the caller. My environment is: Blackdown JDK1.2 pre2, RedHat 6.1, glibc 2.1.2 The outp

Re: Printing with 1.2

1999-11-12 Thread Pavel Tolkachev
Hi Greg, See this two articles on Sun's site: http://developer.java.sun.com/developer/technicalArticles/Printing/Java2DPrinting/index.html, http://developer.java.sun.com/developer/technicalArticles/Printing/SwingPrinting/index.html You may need to register as Java Developer (it is free) to read

Re: Oracle 8i & JDK 117v3

1999-11-12 Thread Aaron Mulder
On Fri, 12 Nov 1999, Ugo Cei wrote: > I don't think this is off-topic at all. Well, with that encouragement... I've got a fresh install of Red Hat 6.1 on a P2-300 w/ 160MB and JRE (actually we used the JRE for the install, not the JDK) 1.1.7v3. The big box is waiting for us to g

Re: java debuger

1999-11-12 Thread Jo Uthus
Donatas Simkunas wrote: | One simple question which java debuger you can recomend. | I tried jikes debuger but it crashed after several debuging steps. AnyJ | debuger seems to do same things it crashes after some debuging. | BTW i heard that it can be jikes problem cause it generates corrupted |

JNI and fstream

1999-11-12 Thread Pierre Heroux
Hi, I have a java class with a native method implemented in C++. This method uses fstream. I got a Segmentation Fault when the destructor of the fstream is called. Is it a bug in JNI ? Am I missing something ? #include JNIEXPORT jboolean JNICALL Java_MyClass_write(JNIEnv * env, jobject obj)

JNI and fstream

1999-11-12 Thread Pierre Heroux
Hi, I have a java class with a native method implemented in C++. This method uses fstream. I got a Segmentation Fault when the destructor of the fstream is called. Is it a bug in JNI ? Am i missing something ? #include JNIEXPORT jboolean JNICALL Java_MyClass_write(JNIEnv * env, jobject obj) {