On Wed, Nov 17, 1999 at 08:51:59AM -0400, Larry Gates wrote:
> . . .
> It occurs because you're running your X server with an 8 bit color
> depth AND you've got another application (like netscape) hogging the
> colormap.
Solution #3: Use xwinwrap to run your Java app with its own colormap.
Xwinw
>Date: Wed, 17 Nov 1999 10:56:05 +0200
>From: Vincent Risi <[EMAIL PROTECTED]>
>I have some apps that run on NT using swing. When I run these on Linux
>6.1 with jre1.2v2 I get a warning
>
>Warning: Cannot allocate colormap entry for default background.
>
>and the text does not display for the ap
I have some apps that run on NT using swing. When I run these on Linux
6.1 with jre1.2v2 I get a warning
Warning: Cannot allocate colormap entry for default background.
and the text does not display for the apps. (The text for the title does
however). Is there a Linux setting that I have that is
Hi,
use:
ta = new TextArea(new String(data));
Matthias Pfisterer
R MUTHUSWAMY wrote:
>
> hi all,
> i have a textarea and want to load the text into the area. in this
> i give the filename and the filecontent has to be loaded into that. i have
> tried it and getting the error
That's because there is is no constructor for TextArea(byte[]). To do
what you are doing you need to convert the byte array into a String.
Remember, Java is not C. Characters are unicode and thus 2 bytes long.
Strings are made up of unicode characters, not ASCII.
-
hi all,
i have a textarea and want to load the text into the area. in this
i give the filename and the filecontent has to be loaded into that. i have
tried it and getting the error that
byte [] can't be converted to java.lang.string.
The code is as follows...
import java.awt.*;