Graphics.drawString)() bug ?

1998-05-27 Thread Rob Nugent

Hi,

I am finding that I am getting exceptions when I have multiple threads
using the drawString() method
in the Graphics class. This is using RedHat Linux 5.0 and JDK 1.1.5v7
(libc5).

Take the following short testcase which creates 5 threads each of which
creates an off-screen image
and does drawString() calls.
--snip-
import java.awt.*;

public class Draw implements Runnable
{
private static Frame f;

public static void main(String[] argv)
{
 f = new Frame("Test Frame");

 f.setSize(300,30);
 f.setVisible(true);

 for (int i = 0; i < 4; i++)
 {
 Draw d = new Draw();
 Thread t = new Thread(d);
 t.setDaemon(true);
 t.start();
 }

}

public void run()
{
 System.out.println("Starting");

 Image i = f.createImage(200,20);
 Graphics g = i.getGraphics();

 while (true)
 {
 g.drawString("0123456789",10,10);
 }

}
}
--snip-
After a little while of running, I get exceptions as follows:

java.lang.ArrayIndexOutOfBoundsException: 10
 at
 at sun.awt.motif.X11Graphics.drawMFChars(X11Graphics.java:249)
 at sun.awt.motif.X11Graphics.drawChars(X11Graphics.java:217)
 at sun.awt.motif.X11Graphics.drawString(X11Graphics.java:210)
 at Draw.run(Draw.java:33)
 at java.lang.Thread.run(Thread.java)

Note that it has walked off the end of the 10 char String.
It looks to me like something in sun.awt.motif isn't thread safe.

Does anyone have any comments ?
Might this be because libc5 isn't thread safe ? (I can't get the glibc
version to run properly, but the
errors do not occur on JDK1.1.6 on NT.
Can anyone confirm if this occurs or not on Solaris ?

Thanks !
Rob




--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363





Re: problem using appletviewer jdk1.1.5

1998-06-01 Thread Rob Nugent

Matt,

I noticed that you are in ther U.K. same as me.

The JavaSoft guys f***ed up the BST adjustment in JDK 1.1.4

see

http://developer.javasoft.com/developer/bugParade/bugs/4124203.html

for details. This claims to be fixed in JDK 1.2b4 (!)

Great huh ?

Rob

Matt Zagni wrote:

> Great it now works 100% in win95 but does a funny in linux..
>
> The Clock2.class produces a time -1hr when run under appletviewer
> in linux but when viewed via netscape the time is correct.
>
> Intersting ?
>
> My orginal problem was solved by removing the following code from
> my .html file..
>
> codebase "1.1.6"
>
> Then it worked great.
>
> Many thanks to all and most of all Pat for his helpfull assistance.
>
> Matt



--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363





Re: AWT-Bug in JDK1.1.6v2

1998-08-05 Thread Rob Nugent

All,

I am 99% certain that this is the same bug that I reported as bug number 5 on the
Java-Linux bug parade.
In particular see my most recent comments towards the end re: Swing. It occurs for
me when using
mwm or dtwn on a remote (AIX) machine.

I too saw this appear when JDK116 came out, I think because of the performance
improvements that
came with 116, and this is timing related.


The bug is anumber 5 at http://www.blackdown.org/cgi-bin/jdk

Rob

Eu Hin Chua wrote:

> On Tue, 4 Aug 1998, Kurt Huwig wrote:
>
> > The bug with Swing-Applications and Menu is still there; Menues overwrite the
> > Menutitle until I move the whole window. This does not happen with 1.1.3, but
> > happens with both kwm and twm.
>
> Hi,
>
> Just to confirm this, I can duplicate this bug when using kwm 1.0 and
> WindowMaker when using jdk 1.1.6v2 glibc (Byrne). However, there is no
> problem whatsover when I switched to jdk 1.1.5v7 glibc (Byrne). I have
> tried this with Swing 1.02, 1.03 and 1.1-beta.
>
> regards,
>
> Eu Hin
>
> --
> "...bottom line, Dilbert teaches you that your computer is your
> friend while Quake teaches you not to use your grenade launcher
> in a small room." - www.bluesnews.com
>
> iiNet Technologies



--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363




Re: Wrong time in Clock demo (fwd)

1998-08-14 Thread Rob Nugent

You might like to look at my bug

http://developer.javasoft.com/developer/bugParade/bugs/4124203.html

and the one it was closed as a duplicate of. In the U.K, the clocks were fine until
JDK 114 shipped, and they
had "fixed" the fact that the GMT time zone went on to daylight savings time. My
clocks have been out an
hour ever since, on both Linux and WinNT.

Of course, "fixed in JDK 1.2" doesn't help very much.

Rob

Mats Petersson wrote:

> On Thu, 13 Aug 1998, Steve Byrne wrote:
>
> > Mats Petersson writes:
> >  >
> >  > Hello!
> >  >
> >  > I just downloaded JDK v1.1.6 v2, and I have tried some of the demos
> >  > included. Most of them work fine, except for the "Clock" demo,
> >  > which shows completely wrong time when running it with appletviewer.
> >  > In Netscape it works as it should, though.
> >  > I guess there has to be something with appletviewer, since it
> >  > works ok in NS.
> >
> > In what way is the time wrong?  Is it just the timezone, or does it show 2:43
> > when it's really 8:19?
> >
> > Steve
> >
> >
> >
>
> I got an answer from another person here on the list about this, he said
> it's a Sun bug. What happens is that java doesn't seem to recognize the
> "MET" timezone designator, which is what I use currently (Sweden...)
> He suggested that I change the timezone to "ECT" instead, thought it
> was supposed to be CET, whatever, haven't heard of ECT before but it
> works at least =|:-)
> According to the person I talked to, Sun will fix this in 1.2b4.
> So I guess I'll just stick to "ECT" until they fix this...
>
> Best Regards,
> Mats Petersson



--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363




Re: Versioning -- Linux JDK needs your HELP!

1998-09-25 Thread Rob Nugent

My System: RedHat 5.1

1) libc  => /lib/lib.so.6which is symlink to libc-2.0.7.so
2) libdl => /lib/libdl.so.2  which is symlink to libdl-2.0.7.so
3) No - I didn't have to delete anything. Java worked out of the box.

Rob
--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363




Re: getResourceAsStream on Class-Files

1998-09-28 Thread Rob Nugent

Java Soft broke this function in JDK 1.1 (some time after JDK113, I
think, if memory serves me correctly). I think it is fixed in JDK 1.2,
as I raised this a JavaSoft bug 4138221, which I CAN'T LOOK AT, since it
somehow got logged as a 'security' bug.

Rob

Bernd Wengenroth wrote:

> Hello,
>
> I want to load class-files with the
> ClassLoader.getResourceAsStream( String )-methode.
>
> i.e. xxx.getResourceAsStream( "package/myClass.class" );
>
> It's works fine on files without a ".class"-postfix.
> But files with this prefix are not opened
> (the methode reports null).
> If i copy the same file to the same directory, but
> without the postfix, the stream is returned as expected.
>
> Any hints ?
>
> Bernd Wengenroth
>
> --
> 
>  Bernd Wengenroth
>  IoS Gesellschaft für innovative Softwareentwicklung mbH
>
>  Donatusstraße 127-129 WWW: http://www.IoS-online.de
>  50259 Pulheim email: [EMAIL PROTECTED]
>  Tel: 02234 / 986434   Fax: 02234 / 986433



--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363




Re: 1.1.7

1998-09-29 Thread Rob Nugent

It looks like the getResource() problems I was having with JPEGS in large
JAR files may have been resolved by 1.1.7 on NT at least, since some of my
code just sprang into life when I upgraded.

Rob

--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363




Re: Write Once Run Anywhere?

1998-10-01 Thread Rob Nugent



Steve Cohen wrote:

> No, that's not it.  The classpath is right.  With the same classpath, under
> Win95, the copied CLASS files fail, but compiled source files work.

You might want to check that you didn't intrduce any problems when transferring
the files to Win95 e.g. by a) accidentally coercing the file name to the wrong
case or b) if you ftp'd them make sure they were ftp'd in binary mode.

We have a project here with over 400 class files that work just fine on
WinNT/Win95/Linux, AIX etc


--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363




Re: Write Once Run Anywhere?

1998-10-02 Thread Rob Nugent

Are you on JDK 1.1 on your Win95 Box ?

Try doing a "java -version" on both platforms. If you are trying to run JDK1.1
compiled code on JDK 1.0 that might cause problems.

Rob

--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363




Bug tracking

1998-06-10 Thread Rob Nugent

I have tried out the bug tracking tool and I think it is rather
splendid.

Thanks for setting this up.

A couple of questions:

1) What happens to my bug reports next ? (They seem to have been
"incoming"
for a couple of days now)

2) How do I add a note to a bug ? I have some extra info, but when I
tried the
obvious things, I didn't have appropriate priviledges as the 'guest'
user.

Thanks!
Rob

[EMAIL PROTECTED]




JDK 1.2 Announcement at LWN

1998-10-26 Thread Rob Nugent

Hi,

I just saw Steve Byrne's announcement at:

http://www.lwn.net/daily/java.html

This is good news indeed. Continuing thanks to the Java-Linux team for
their efforts in this area.

Is anyone able to comment as to whether this agreement will cover
HotSpot when it arrives ?

Rob


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363




Accepting sockets ?

1998-11-16 Thread Rob Nugent

Hi,

I am trying to write a server program that accepts a large number of
socket connection. However, when the number of sockets goes over about
250, the accept call either blocks, or throws an
InvalidArgumentException.

I did wonder if this is related to the maximum number of open file
descriptors allowed ? However, the problem occurs on NT and AIX as well
as Linux.

My server code can be summarized as follows:

import java.util.*;
import java.net.*;
import java.io.*;

public class Serv
{
ServerSocket ss;

public void go() throws IOException
{
  ss = new ServerSocket(9876);
  int i =0;
  Vector v = new Vector();
  while (true)
  {
   System.out.println(">");
   Socket cs = ss.accept();
   System.out.println("<");
   v.addElement(cs);
   System.out.println("Accepted " + (i++));
  }
}

public static void main(String[] args) throws IOException
{
   Serv s = new Serv();
   s.go();
}
}

Can anyone suggest what I need to do to address this ? Thanks.

Rob



Re: Time slicing or tricks to simulate it?

1998-12-02 Thread Rob Nugent

You might want to check that you are not doing your compute intensive
task
on the event thread, as this is the thread that does the painting of
components.

I spin off a thread for my (very) compute intensive task, set its
priority low
and it works just fine on green threads.

Rob

Barnet Wagman wrote:

> It appear that the the linux implementation of java does not do
> time-slicing (I'm running jdk 1.1.7v1a, using the tya jit). Is that
> correct?
> If so, does anyone have any suggestions for simulating time-slicing
> (other than throwing in a lot of yields())?
> My curent problem involves writing a gui that monitors a rather
> lengthly process.  I'd like to have the compute intensive method
> update a gui monitor as it proceeds.  However, the compute intensive
> method seems to consume all the time - the gui doesn't even get
> repainted until the compute intensive method finishes. Raising the
> priority of the gui (and putting in a few yields()) doesn't make any
> differences.
> Any suggestions would be appreciated.
> ---
> Barnet Wagman
> [EMAIL PROTECTED]
> --



--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363




Re: JFrame

1998-12-04 Thread Rob Nugent

Try a Window instead of a Frame.

Anguel Anguelov wrote:

> Hi
>
> how kan i show one Frame without border?



--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363




backtab

1999-01-06 Thread Rob Nugent

I just noticed on jdk117_v1a that I no longer appear to be getting a
keyPressed
KeyEvent for backtab i.e. shift+tab. I get the event for the shift key
on its
own going down, but then subsequently nothing when the tab key is then
pressed.

Has anyone else seen this or can comment before I put in the effort to
create a
standalone test case ?

This is all on RH52

Thanks
Rob
Rob Nugent
Development Manager
UniKix Technologies Europe




Re: timezone

1999-01-25 Thread Rob Nugent

This may well be the JavaSoft defect

http://developer.javasoft.com/developer/bugParade/bugs/4124203.html

or one of the related ones.

Basically, they stuffed up daylight savings time in a number of European
countries
including Britain. The correct solution is only implemented in JDK 1.2, so
you
may have to wait until then.

Rob

Jeroen Siffels wrote:

> Dear Reader,
>
> It is not clear to me who is reading this message. But I hope you can
> help me with my question or give me a reference where I can find help.
>
> I'm running on a Pentium based system Linux 2.0.36 with JDK 1.1.6. My
> problem is that when I use the data command om the commandline
> (/bin/date) the date I see is corrent, but when I use in Java 'Data d =
> new Date()'. The reported time is one hour late. In Linux the CET is
> reported (I live in the Netherlands) as wanted but Java reports the UTC.
> How can I make my Java software report the localtime without making my
> code timezone depended (addind one hour is not a wanted solution) ?
>
> Thanx in advance,
>
> Jeroen



--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363




font.properties.ja

1999-01-27 Thread Rob Nugent

Hi,

I have a Java app which uses the Japanese Hiragana unicode characters
that start at 0x3040.

On AIX, I can get these displayed by ensuring that I am using the
font properties file 'font.properties.ja' which is shipped in the JDK
lib directory.

On AIX I can make this be picked up by simply doing

'export LANG=ja_JP'

before running my Java program.

Can anyone tell me if there is an equivalent mechanism for Java/Linux
1.1.7 please ?

If I replace the default 'font.properties' with 'font.properties.ja' it
all works
fine and I see all my lovely Hiragana and Katakana squiggles: its just I
would
like to be able to do this on a per-shell basis. I was astonished that
the characters
displayed correctly, so massive congratulations again to the Java-Linux
porting team.

(I am also trying to achieve the same thing on WinNT 4.0, but with an
order of magnitude
less success. My current theory is that that I need to install the
*Japanese* version
of WinNT ??)

Thanks for any help
Rob

--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363




Re: Weird math calculations.

1999-02-04 Thread Rob Nugent

Errr,

I think this is a little off topic, but doesn't the first line in your 'cross' method 
have a
'-' that should be a '*' ?

Rob

Karthik Vishwanath wrote:

> Hi all,
> The attached file just tries to define a simple "cross product"
> between two vectors. the results are incorrect and i don't know why.
> I run jdk1.1.7 on glibc, RedHat 5.1 on a 200Mhz Pc.
>
> Thanks in advance,
> -Karthik.
>
> +-+
> | Karthik Vishwanath, Junior Research Fellow, |
> | National Centre for Biological Sciences, TIFR Bangalore, India. |
> | Ph[Off]: (080)8561657/58/59/71/72; 8462895, Ext. 3231   |
> | mail to:  [EMAIL PROTECTED]   |
> | Alt mail: [EMAIL PROTECTED]   |
> +-+
> Microsoft isn't the answer.
> Microsoft is the question and the answer is NO.
>
>   
>---
>
>   Name: aVectorUtil.java
>aVectorUtil.java   Type: Plain Text (TEXT/PLAIN)
>   Encoding: BASE64

--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
http://www.unikix.com
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363




JDK 1.2 Success

1999-03-09 Thread Rob Nugent

Folks,

Just a note to say I have JDK1.2 running under RedHat 5.2 successfully, after putting 
in the
recommended symlink for libstdc++-libc6.0-1.so.2.

All my Java2D code works fine, AffineTransforms, Stroke, Image manipulation etc.
Next I have to try to get JavaComm working.

I am seeing an occasional segv, but nothing I can get a reproduce on to raise a bug 
report.

Thanks to the porting team for all the significant hard work - it is appreciated.

Rob

--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
http://www.unikix.com
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



jdk116v3a feedback

1998-08-19 Thread Rob Nugent

Stephen,

I hope it isn't too late to give you this feedback, but I just got a
chance to try out jdk116v3a-glibc on RedHat 5.1 (Intel). Here is what I
found:

1) Swing menus now seem to appear in the correct place below the menu
bar rather than in front of it.

2) I *think* that my bug #5 in the bug tracking system might now be
fixed. The problem seems to have gone away. I suspected that this was
related to 1) so hopefully that fixed it.

3) My thread safety problem  with Graphics.drawString() still occurs.
This can be seen by running the testcase in my bug number 4. I am a
little puzzled by this, since the jdk116v3 readme seems to imply that
this is fixed, but I still get the problem of "array index out of bounds

exception".

In any case, I don't see any obvious regressions, and the fix to 1) is a

godsend, since I was getting very tired of moving every Swing window
before I could use a menu on it.

Thanks for the continuing efforts, and apologies that this feedback was
a while coming.

Rob

Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]





Re: I have a big problem with Sun

1999-04-06 Thread Rob Nugent

Mike,

In my experience the Sun bug reporting system does not work well. I stopped using it
since I was just burning cycles and getting annoyed.

I even had a generic defect returned as 'user error' which the Blackdown folks
has already diagnosed and fixed and supplied the defect line number for me to
put into the JavaSoft bug report.

Rob

Michael Emmel wrote:

> It seems that Sun will not support bug reports that occur in the
> platform independent
> parts of Java since I'm using Linux.  If you report a bug and say your
> on Linux
> they say its not a supported platform.  Even though I've been reporting
> bugs in the Swing.
>
> I can't believe Sun forces me to use NT !
>
> Anyway just though I'd warn everybody on the list that if you report a
> bug don't let them know your on linux
> they will drop it.
>
> Pissed off.
>
> Mike
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
http://www.unikix.com
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Java Linux and Signal Handlers

1999-04-12 Thread Rob Nugent

Hi,

I have a requirement to use Java Linux to implement a number of sub-routines in an 
environment
in which other languages such as 'C' will also be executing.

A question has arisen as to whether the Java VM has a requirement to install any 
signal handlers
which might displace my pre-existing signal handlers for C.

Can anyone comment ? I would much prefer that the VM did NOT install handlers so that 
I can
remain in control.

Thanks
Rob

--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
http://www.unikix.com
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Java Linux and Signal Handlers

1999-04-13 Thread Rob Nugent

Juergen,

Many thanks for the info. It is not my desire to mix java and native code in the
way you describe, but the following:

I am working in a C environment, and I need to be able to call subroutines in
a number of (pluggable) languages, of which one is Java. Some of those languages
run-times (such as Java) like to install signal handlers, and thus I have the 
additional
problem of ensuring that there are no conflicts.

If there were some way for me to disable Java signal handlers and simply install
my own, and then invokes Java's handling routines from my signal handler, that
would be one solution.

Rob

Juergen Kreileder wrote:

> >>>>> Rob Nugent writes:
>
> Rob> Hi, I have a requirement to use Java Linux to implement a
> Rob> number of sub-routines in an environment in which other
> Rob> languages such as 'C' will also be executing.
>
> Rob> A question has arisen as to whether the Java VM has a
> Rob> requirement to install any signal handlers which might
> Rob> displace my pre-existing signal handlers for C.
>
> Rob> Can anyone comment ? I would much prefer that the VM did NOT
> Rob> install handlers so that I can remain in control.
>
> IMO mixing java with native code that uses signals is not good idea.
>
> Here's a (maybe incomplete) list of signals we use:
> SIGUSR1, SIGUSR2, SIGUNUSED, SIGSTKFLT, SIGQUIT, SIGCHLD,
> SIGIO, SIGALRM, SIGPIPE
>
> Juergen

--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
http://www.unikix.com
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: You're gonna love this...

1999-04-27 Thread Rob Nugent

My download of RH 6.0 is running at present

I'll post as and when I have any news (unless anyone else answers first!)

Rob

Christine Eckstein wrote:

> Has anyone got a JDK working on RedHat 6.0 yet? Heehee!
>
> (personally I haven't tried it yet myself. I'm just curious to know how many 
>'peddle-to-the-metal' people are out there. *grin*)
>
> -== Sent via Deja News, The Discussion Network ==-
> http://www.dejanews.com/  Easy access to 50,000+ discussion forums
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
http://www.unikix.com
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: javax.swing.preview not found

1999-04-28 Thread Rob Nugent

I think you'll find that the JFileChooser stuff is no longer in a 'preview'
package but is now javax.swing.JFileChooser.

i.e. the source code of the example is out of date and needs changing.

Rob

Robert Williams wrote:

> Trying to compile FileChooserExample.java from
> 
>http://java.sun.com/products/jfc/tsc/archive/tech_topics_arch/file_chooser/file_chooser.html
>
> import javax.swing.preview.*;
>
> returns a "not found in import" message.
> Is this something new that hasn't found it's way
> into the blackdown release?
>
> --
> Bob Williams, http://bob.usuhs.mil/
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
http://www.unikix.com
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: BDK 1.0

1999-05-14 Thread Rob Nugent

It's at the bottom of this page:

http://www.javasoft.com/beans/software/bdk_download.html

Richard Hall wrote:

> Does anyone know where I can download BDK 1.0?  Sun seems to have
> completely migrated their site to 1.1, which only works with JDK 1.2.  I
> need a version that works with JDK 1.1.  Thanks.
>
> Richard Hall
> Network Services
> University of Tennessee
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
http://www.unikix.com
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Fonts have large ascents/decents

1999-05-20 Thread Rob Nugent

I have been assuming that this is a bug in the Linux JDK1.2 prerelease.

If I run the following on Linux/Java1.2:

import java.awt.*;

public class FT
{
public static void main(String[] args)
{
Font f = new Font("Monospaced",Font.PLAIN,14);
FontMetrics fm = Toolkit.getDefaultToolkit().getFontMetrics(f);

System.out.println("Height is " + fm.getHeight());
System.out.println("Leading is " + fm.getLeading());
System.out.println("Ascent is " + fm.getAscent());
System.out.println("Descent is " + fm.getDescent());
}
}

I get:

Height is 28
Leading is 0
Ascent is 17
Descent is 11

Whereas on WinNT JDK12, I get

Height is 20
Leading is 0
Ascent is 15
Descent is 5

This is all despite the fact that the TTF font files shipped in both
distributions have the same size
and checksums.

Rob

corey wrote:

> Hi gang,
>
> I'm having some trouble with the default fonts in
> the JDK1.2. Seems like the ascents and decents for
> TimesRoman fonts (possibly others) are very large
> and it makes my textareas appear to have large gaps
> between the lines.
>
> Any help would be greatly appreciated.
>
> --Corey
>
> /* Corey Brown  (WB0RXQ): 20m, 15m, 2m(146.82) 70cm(443.65)   */
> /* AT&T NCS  |  [EMAIL PROTECTED] */
> /* Alpharetta, Ga 30005  |  [EMAIL PROTECTED]   */
> /* (770)750-8071 |  New rays from an ancient sun (JS) */
>
> --
> 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]



Java3D and 'main()'

1999-07-07 Thread Rob Nugent

I am sure that the following is a User Error on my part, but if anyone can explain 
what I am doing wrong
I'd appreciate it:

I have a Java3D program that runs just fine on WinNT. All my geometry/behaviours etc 
are created
in a function called init() which is called from the 'main' of my first class.

Now on WinNT, the renderer runs fine for ever, however under Linux, the program 
terminates when
main() exits. I have put a sleep() into the end of the init function to prove this, 
and with the sleep at 10
seconds, my window evaporates after 10 seconds, but on Linux only, not on NT.

If anyone can help or explain, I'd appreciate it.

Rob

Start class code follows:

snip
package rob.ref;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Toolkit;

import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;

import javax.media.j3d.BranchGroup;
import javax.media.j3d.TransformGroup;
import javax.media.j3d.VirtualUniverse;
import javax.media.j3d.Locale;

import javax.swing.JPanel;
import javax.swing.JFrame;



public class Start implements WindowListener
{
private VirtualUniverse  u;
private Locale   l;
private Camera   cam;
private static boolean  fullScreen = false;

private JPanel   pan;
private JFrame   win;

public void init()
{
 u  = new VirtualUniverse();
 l = new Locale(u);
 cam = new Camera();

 pan = new JPanel()
 {
 public Dimension getPreferredSize()
 {
  if (fullScreen)
  {
  return Toolkit.getDefaultToolkit().getScreenSize();
  }

  return new Dimension(640,400);
 }
 };

 win = new JFrame()
{
 public void update(Graphics g)
 {
  paint(g);
 }
};
 pan.setLayout(new BorderLayout(0,0));
 pan.add(BorderLayout.CENTER,cam.getCanvas3D());
 win.getContentPane().setLayout(new BorderLayout(0,0));
 win.getContentPane().add(BorderLayout.CENTER,pan);
 win.pack();
 win.setVisible(true);
 win.pack();
 win.setLocation(0,0);

 MaterialManager.init();
 TextureManager.init(win);
 AppearanceManager.init();

 l.addBranchGraph(cam.getBranchGroup());

 Snake s = new Snake();
 l.addBranchGraph(s.getBranchGroup());

 BackgroundLight bl = new BackgroundLight();
 l.addBranchGraph(bl.getBranchGroup());

 PositionalLamp pl = new PositionalLamp();
 l.addBranchGraph(pl.getBranchGroup());

 win.addWindowListener(this);

 for (int i = 0; i < 1; i++)
 {
 try
 {
  Thread.sleep(1);
 }
 catch(InterruptedException e)
 {
 }
 }

}

public static void main(String[] args)
{
if ((args.length > 0) && (args[0].equals("-f")))
{
System.out.println("Full Screen");
fullScreen = true;
}

 Start s = new Start();
 s.init();
}

public void windowActivated(WindowEvent e)
{
}
public void windowDeactivated(WindowEvent e)
{
}
public void windowOpened(WindowEvent e)
{
}
public void windowClosed(WindowEvent e)
{
}
public void windowClosing(WindowEvent e)
{
}
public void windowIconified(WindowEvent e)
{
}
public void windowDeiconified(WindowEvent e)
{
}
}
snip



--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
http://www.unikix.com
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Java3D and 'main()'

1999-07-08 Thread Rob Nugent

Many thanks to everyone who answered me on this issue. Nathan managed to put me on the
right track:

The window was indeed visible until main() exited (I think I neglected to say this in 
my original post).

I was running with jdk1.2pre1 with green threads. Moving to native threads solved the 
problem, although
I can' explain why. This is a good enough solution for me until I can move to 
RedHat60/glibc2.1/jdk1.2pre2

Again many thanks
Rob

Nathan Meyers wrote:

> Rob Nugent wrote:
> >
> > I am sure that the following is a User Error on my part, but if anyone can explain 
>what I am doing wrong
> > I'd appreciate it:
> >
> > I have a Java3D program that runs just fine on WinNT. All my geometry/behaviours 
>etc are created
> > in a function called init() which is called from the 'main' of my first class.
>
> Has any plausible explanation shown up yet?
>
> You're running under JDK1.2 with native threads? And the application
> window is visible on the display until the unexpected exit?
>
> It might be worth trying green threads (java -green); the reason JDK1.2
> is still pre-release is instability with native threads.
>
> Nathan

--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
http://www.unikix.com
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Has Sun Overstretch Themselves With So Many APIs?

1999-07-08 Thread Rob Nugent

According to the following:

http://www.ibm.com/java/jdk/other/portingplans.html

IBM's GA date for JDK1.2 on AIX  isn't until December 1999.

Rob

Oliver Fels wrote:

> At Thu, 08 Jul 1999 Peter Pilgrim wrote:
> >It is been well over 6 months since we have seen Java 2.
> >It has been available for Solaris and Windows (NT) since the launch,
> >but linux is faltering still not released yet. I presume this is
> >the status for other platforms like hp-unix, aix, apple etc.
>
> AFAIK, IBM has a JAVA2 beta for AIX and I'll bet the final will be out soon.
> Apple is still recovering from Microsoft dropping support for MRJ, so they had
> terrible problems in delivering a stable 1.1 release.
> According to some Apple guy I talked to at JavaONE, Apple still concentrates
> finishing 1.1 support and will start Java2 support later on.
>
> >I am wondering if Sun has overstretch itself in trying to develop so
> >many APIs? It seems to me that they are struggling and there is enough
> >support and help to help outsiders (like Blackdown who done an excellent
> >job porting the software)?
> IMHO the JDK has reached a stage in which it wont be extended a lot more.
> SUN is now concentrating on the enterprise and embedded versions, so it is
> easier for porters to keep track.
> SUN is no charity organisation, so they are still looking how to get some bucks
> out of the technology. They won't help eg IBM or HP or even Apple finishing
> their JRE, as those directly compete with SUN in the Server market.
> It would be a consequent step if they started charging the enterprise edition
> (though it is not propable).
> Delivering a complete solution makes it also difficult for other technologies
> to keep track (eg. Microsofts COOL technology) and gives more reasons using
> JAVA instead of some other architectures.
>
> I don't think they will continue spitting out so many different new APIs and
> concentrate on finishing and supporting the existent ones.
>
> Oliver
>
> --
> ___
> Oliver Fels| e-mail:
> Neurotec Hochtechnologie GmbH  | [EMAIL PROTECTED]
> Team Manager JAVA-/IT-Security |
> Friedrichshafen, Germany   |
> ---
>
> ----------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
http://www.unikix.com
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Has Sun Overstretch Themselves With So Many APIs?

1999-07-09 Thread Rob Nugent


Peter Pilgrim wrote:

>
> However what suprises me is the length of time it has taken for Java 2 to
> gain acceptance. If you are AIX developer waiting JDK 1.2 you must be
> suffering and salivating.

Yep :-). However the wait is usually worth it. My experience is that the delay usually
reflects high quality in the code from IBM when it finally does ship. There is an alpha
test version to play with right now anyhow.
--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
http://www.unikix.com
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Problems with java.lang.ClassLoader

1999-07-21 Thread Rob Nugent

Michel,

I observe that the defineClass method you arte using is 'protected'

Is this your problem ?

Rob

Michel Prevost wrote:

> Hi All
>
> I am currently doing some tests with dynamic class loading. I have the
> following snippet of code:
>
> Class dateDisplayClass =
> cl.defineClass(args[0],
> dateDisplayClassBytes, 0, dateDisplayClassBytes.length);
>
> cl.resolveClass(dateDisplayClass);
>
> Here is the problem: when compiling the file, I get the following errors:
>
> ClassClient.java:20: No method matching defineClass(byte[], int, int) found
> in class java.lang.ClassLoader.
> cl.defineClass(args[0],
>   ^
> ClassClient.java:24: No method matching resolveClass(java.lang.Class) found
> in class java.lang.ClassLoader.
> cl.resolveClass(dateDisplayClass);
>
> When I look in the JDK1.2 API Specifications, those 2 methods exist. Any
> idea?
>
> Michel
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
http://www.unikix.com
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Netscape 4.61 bus error

1999-07-22 Thread Rob Nugent

Hi,

I just upgraded to RedHat 6.0 and Netscape 4.61 and when I invoke a Java

applet, Netscape exits with a 'bus error' when trying to start Java.

Has anyone seen this and if so, does anyone know what the solution is ?

Thanks
Rob


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Netscape 4.61 bus error

1999-07-22 Thread Rob Nugent

Bill,

Many thanks - that fixed it !

Rob

Bill & Martinah Smith wrote:

> I ran into a similar problem with Netscape 4.5.x. At the RedHat site, they
> reported that this was due to a bug in one of their RPMs. The fix was to add
> the 75dpi font to the font path with:
>
> /usr/sbin/chkfontpath --add /usr/X11R6/lib/X11/fonts/75dpi
>
> as root.
>
> For more info, the reference number of the reported bug and solution is:
> REF#990511-0082
>
> Hope this helps.
>
> Bill
>
> > -Original Message-
> > From: Rob Nugent [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 22, 1999 9:20 AM
> > To: [EMAIL PROTECTED]
> > Subject: Netscape 4.61 bus error
> >
> >
> > Hi,
> >
> > I just upgraded to RedHat 6.0 and Netscape 4.61 and when I
> > invoke a Java
> >
> > applet, Netscape exits with a 'bus error' when trying to start Java.
> >
> > Has anyone seen this and if so, does anyone know what the
> > solution is ?
> >
> > Thanks
> > Rob
> >
> >
> > --
> > 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]



Re: 3D API

1999-10-15 Thread Rob Nugent

I suggest you see:

http://www.blackdown.org/java-linux/jdk1.2-status/java-3d-status.html

I've had it working on RedHat 6.0

Rob

[EMAIL PROTECTED] wrote:

> Ladies, Gentlemen:
>
> Greetings once again!
>
> I've been looking at some stuff concerning the 3D API over at the Java
> Developers Connection.
>
> Is this stuff included in the blackdown 1.2 prerelease or is it
> something I have to add from sun? does it even work with the blackdown
> jdk?
>
> Man, I'm just FULL of questions...
>
> Best Regards,
> James
>
> --
> "The reverse side also has a |James G. Stallings II
>  reverse side"   | http://angelfire.com/id/videoranger
> - Japanese Proverb   |  ''Live Long and Prosper''
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
http://www.unikix.com
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]