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
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,
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
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
> 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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
|
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)
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)
{
24 matches
Mail list logo