Re: First Step

1999-06-02 Thread Alex M.

First thing:

remove kaffe

If you're on redhat, do:

rpm -q kaffe

to see if it's installed.  If it is, use 

rpm -e 

to remove it


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



Re: jre and redhat 6

1999-07-07 Thread Alex M.

That's really strange that you are having that much trouble.  Here's what
I did to install java on RedHat 6:

install redhat (easier than Windows, btw)
uninstall kaffe (rpm -e kaffe)
install jdk1.2-pre2 for linux

And everything worked from there.  Just to be sure, I even installed the
1.1.7 jdks, and they worked too.  The only one I didn't get to work was
jdk1.2-pre1

On Wed, 7 Jul 1999, steve patient wrote:

> Hi Folks
> 
> Thanks to the many of you who recommended jre 1.1.7v3 - at least there
> appears to be a consensus. 
> 
> I've downloaded and installed this and now get a shiny new error message:
> 
> can't find java/lang/Thread
> 
> It doesn't appear to make any difference what I set CLASSPATH to. I've
> included every dir I can find with a class file in it - no change. Perhaps
> I don't really have a grasp on CLASSPATH. I used:
> 
> export CLASSPATH=/home/public/jre/:etc etc
> 
> It's a real pity as I'm writing an article for Internet Magazine on chat
> servers and desperately wanted a picture of one running under Linux - but I
> can hardly recommend others do something I can't get to work. And I've
> spent more time trying than the whole piece is worth (a week now). The bad
> news is it took under a minute to set up on NT :) 
> 
> The only HowTo I could find is Eric Raymond's, but it's circa 1996 and
> needs more technical background than I have to update. Huh, and I thought
> getting DNS working was hard :)
> 
> Cheers
> Steve
> --
> Steve Patient - v 01249 730474 - f 01249 730877
> 
> 
> --
> 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: rh6 and linux solved

1999-07-07 Thread Alex M.

On Wed, 7 Jul 1999, steve patient wrote:

> know where the jar files are. I wish someone had told me earlier about jar
> files. It sort of explains why I couldn't find so many of the files

Oh... well... we thought everyone knew about those. :P :)

Seriously though, I have that annoying problem of always looking for the
most complicated problems first. :)

That and jdk1.2 doesn't require you set the classpath, which is nice.


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



Re: Which "IDE" for Suse Linux?

1999-07-07 Thread Alex M.

Emacs with JDE

On Wed, 7 Jul 1999, Alexander Schatten wrote:

> which "IDE" can you recommend for Suse Linux V6 and Java 2. I just tried
> Netbeans, and heard something about Kaffe? can someone give me more
> hints?
> 
> thanx
> 
> Alex
> 
> 
> 
> Dipl.Ing. Alexander Schatten
> Email: [EMAIL PROTECTED]
> URL: http://www.bigfoot.com/~AlexanderSchatten
> Address: Gallitzinstr.7-13/7/71160 Vienna/Austria
> Tel: +43 1 914 29 84   FAX: +49 89 666 176 2292
> 
> 
> 
> 
> 
> --
> 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: JAVA multithread questions.

1999-07-08 Thread Alex M.

You create threads by making classes that implement runnable or extend
thread.  Calling .start() on those classes will make the code in the run()
method of those classes execute in a new thread.  So, that code should be
your network connecting code.

Good place to start is java.sun.com, follow the link to the Java Tutorial,
there is a section on threading that walks you through the basics.

Good luck!

On Thu, 8 Jul 1999, Chien-Lung Wu wrote:

> 
> Hi,
> 
> I am doing java networking program. Since my project have a little trick
> architecture, I am planning to use JAVA as my design language.
> 
> The Questions are:
> 1. one of my machine called PS have to connect to 3 different servers (R1,
> R2, and R3) to collect info. So PS have to make connect with R1, R2, and
> R3. I want PS to connect Servers independently, that means, the
> connection is concurrent, not sequence. How can I do that?
> 
> 2. I think PS is a very important part in my project. As I mentioned on 1.
> PS is a client to communicate with 3 servers. However, PS is also a serevr
> to be trigger by Q. How can I deal with this situation? Is JAVA
> multithread can solve my question?
> 
> 
> 
> The configuration I try to solve is as following.
> 
> 
>+-<-->R1
>   /   
>   Q<-> PS-<---> R2
>   \
>+---<---> R3
> 
> How can I use java multithread to desigm my program, such that PS can
> communicate with R1, R2, and R3 respectly, and PS also can receive Q's
> triger to satisfy Q's request?
> 
> Can anyone give me some hints or guideline to do it? Do anyone can point
> out some material about JAVA multithread and java network programming?
> 
> Any suggestion will be appreciated.
> 
> 
> C. L.
> 
> 
> --
> 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: Debugging Java on Linux

1999-07-08 Thread Alex M.

Well, JDE for emacs is supposed to have a nice debugger interface, but I
haven't used it.  If you are coming from the windows GUI world, you would
probably like the JDE.  It's on the third party java-linux tools on
blackdown's page.

On Thu, 8 Jul 1999, Christian Cryder wrote:

> Hi all,
> 
> Can anyone offer any pointers on debugging on Linux? I'm coming from the NT
> / GUI Debugger world and am not real familiar with Sun's command line
> alternative. Basically, I'm looking for something can debug native and
> optionally has a nice gui.
> 
> Suggestions?
> 
> TIA,
> Christian
> 
> Christian Cryder
> Software Engineer - UHR Infrastructure
> REALM Information Technologies -  http://www.realminfo.com
> Adventures in UHR - http://realm.granitepeaks.com
> Plugin Version Control for Java (PVCj 1.0) - http://www.pssg.com/pvcj
> 
>  "What a great time to be a geek"
> 
> 
> 
> --
> 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: display text

1999-07-12 Thread Alex M.

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.


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



Re: Java IDE for Linux?

1999-07-22 Thread Alex M.

emacs or xemacs with JDE is what I like the best so far.  I've looked at
NetBeans, and it's okay, but a little slow.  I do like Together/J and
Structure Builder that integrade modeling tools with code generation.

On Thu, 22 Jul 1999, Guillermo Payet wrote:

> 
> Hello,
> 
> Can someone recommend a Java Development environment for Linux?  That is:
> an IDE to develop Java code, not necessarily written in Java.
> 
> I looked at Kawa, a Java based IDE, but based on their Web site, it's not 
> clear
> if will run under anything but Windoze.
> 
> What are most people using?  emacs?
> 
>   thanks
> 
>   --G
> 
> 
> --
> 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: Constructor/Inheritance wierdness

1999-07-27 Thread Alex M.

I've never seen that.  I've only seen constructors called like:

super(param1, param2, ...);

On Tue, 27 Jul 1999, Tim Reilly wrote:

> Hi, hopefully this one's a quickie.  I'm using blackdown jdk 117v3 and
> getting the following error message when compiling my TemplateList class.
> 
> According the the Java 1.1 specification I should be able to call the
> superclasses' constructor with this syntax.  What am I doing wrong?
> 
> Thanks,
> 
> -Tim
> 
> 
> #
> # Compiler error message
> #
> 
> TemplateList.java:29: Identifier expected.
>   super.(host,MetaType,TemplateType);
> ^
> #
> # Snippet of TemplateList class declaration ( generates above error on
> # compiliation )
> #
> 
> public class TemplateList extends Template {
> 
>   public TemplateList (String host, String MetaType, String TemplateType)
> {
> 
>   super.(host,MetaType,TemplateType);
>   this.iStart = 1;
>   this.iStop  = 1 + config.iDefaultRecords;
> }
> 
> }
> 
> #
> # Snippet of Template class declaration ( compiles OK)
> #
> 
> public class Template {
> 
>   public Template (String Host, String MetaType, String TemplateType) {
> 
> 
>   }
>  
> }
> 
> 
> --
> 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: Newbie question

1999-07-30 Thread Alex M.

Like my compadres before me said, native threads run at the OS level, and
therefore can access multiple cpus.  However, it is my understanding that
this is the only time native threads should be used.  On single processor
systems, green threads are faster, and you aren't limited by any process
limitations in the OS.  Since in native threads, each thread runs in it's
own process, you run the risk of running out of available processes.  You
don't have that with green threads.

though I'm sure there are limitations on green threads as well, I don't
know whether or not they are definite or limited only by machine
capability.

On Fri, 30 Jul 1999, Pere Serra wrote:

> I have an easy question:
> What's the difference between native threads and green theads?
> Which one is more eficient/stable?
> 
> 
> --
> 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: X-server

1999-08-25 Thread Alex M.

http://www.uk.research.att.com/vnc/index.html

On Wed, 25 Aug 1999, Hanno Saks wrote:

> Hi!
> 
> Is out there available (or is even possible to do) any applets which can act
> in framed HTML page as Xserver client 
> 
> Hanno 
> 
> 
> --
> 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: Sometimes easy things are hard/impossible in Java

1999-09-09 Thread Alex M.

> I think a better solution is to override getForeground / getBackground
> of the component to return something related to it's parents?

So now you have to override all the gui components just to override one
method?  I would think that would be a lot of work for very little gain,
not to mention it would add unnecessary bulk to your app, don't you think?

> renderer does not call getForeground but directly grabs it from a member
> variable, this won't work. What you could do is override paint() to set

Everything that descends from component inherits
setBackground/getBackground and setForeground/getForeground.  I don't know
off the top of my head, of any components in the java libraries that
ignore those properties.



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



Re: Sometimes easy things are hard/impossible in Java

1999-09-09 Thread Alex M.

> When writing gui apps, most of the time i have to override most of the
> components anyway, except for generic items such as buttons. But this is
> the only way i see to implement color themes, because it works when you
> add/remove components dynamically. The recursive setColor won't work in
> that case (although it is probably the simplest / fastest solution for
> the static case).

If all you are doing is changing the look of already existing components,
you should be using PLAFs, not extending the components, thereby breaking
PLAF.

> If you look at the java.awt source, the toolkits, layout managers, etc.
> use component.x values instead of component.getX(). I don't know if it
> is the same with other member variables (such as foreground /
> background) . The thing i was worried about is that if the java.awt
> classes directly access the member variables, then overriding the
> functions won't do any good...

In the case of colors anyway, they use the get methods, I believe, because
I have written things that override those before and they worked fine.



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



Re: want to use swing

1999-09-10 Thread Alex M.

Yes, you can download swing from java.sun.com/products/jfc/index.html

On Fri, 10 Sep 1999, Sitanshu Bhusan Nanda wrote:

> Hi,
>  
> Can i use swing in jdk1.1.5? 
> Where can i download swing.jar or anything other than that which will
> help me to use swing in my programs.
> 
> Thanx.
> Sitansu.
> 
> 
> 
> --
> 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: Float -> Double conversion bug ?

1999-09-24 Thread Alex M.

That is actually documented I believe.  It's not limited to jdk1.2.  I
don't know why it can't be just 0.3 but it is.  This is why
the language spec says not to compare floats and doubles without casting,
you will always get negative results even though you think you should have
a positive one.

So to compare 0.3d with 0.3f you would do:

double d = 0.3;
float f = 0.3f;

if ((float)d == f) { do something };

You will lose precicion on your double variable though, so make sure you
don't need it before you do it.

Back to why you can't store 0.3 as a double.  I'm guess this has more to
do with the limitations of binary representation of floating point
numbers.  It's been a long time since my intro to CS courses when I
learned all this, anybody have anymore info on this?

On Fri, 24 Sep 1999 [EMAIL PROTECTED] wrote:

> Dear all,
> 
> If I try to put a float into a double variable the last bits of the
> precision are total garbage ! If I try to put the float 0.3 into the a
> double the result is 0.3001192092896 !!! This could be a 'feature'
> but it renders java (or at least jdk1.2) completely useless for numerics
> !
> 
> Has anyone seen this behaviour
> 
> below is the small program I used to test it, we first discovered this
> in a jpython program so hence the cross post to the jpython group.
> 
> public class Main {
>   public static void main(String args[]) {
> 
>   float a = 3.3f;
>   double b = 3.3d; 
> 
>   System.out.println("flt (ToIntBits)  = "+Float.floatToIntBits(a));
>   System.out.println("flt (ToLongBits) = "+Double.doubleToLongBits(a));
>   System.out.println("dbl (ToLongBits) = "+Double.doubleToLongBits(b));
>   
>   }
>   
> }
> 
> For jpython this means that it is not possible to return a float array
> from java to jpython session, since it is always converted to double !!
> 
> I modified the PyFloat.py file in such a way that the contructor for the
> PyFloat(float) uses the Float.toString() and then the
> Double.parse(string) to put the proper value in the private attribute
> value; It was also 
> 
> It is also necesary to modify the Py.java2py in the Py.py file, this
> function transforms a java array into a Python array. It seems that this
> code make no difference between a double and a float array, it always
> uses the double contructor from the PyFloat class so I modified that. I
> agree it is not very nice but at least it works.
> 
> public PyFloat(float v) {
>super(__class__);
>   
>// Nasty 
>Float _tmp = new Float(v);
>value = Double.parseDouble(_tmp.toString());
> 
>//this((double)v); ** Original code
> }
> 
>   snip function top 
>   if (o instanceof Number) {
> if (o instanceof Double ) {
>return new PyFloat(((Number)o).doubleValue());
> }
> else if(o instanceof Float) {
>   return new PyFloat(((Float)o).floatValue());
> }
>  snip function end 
> 
> 
> Last question, It seems that if I create and later print an array (say
> something like : array([0.3, 0.4], 'f')) it first allocates PyFloat
> variables for 0.3 and 0.4, that it  allocates the array BUT then it,
> when I want to print it, it again allocates two PyFloats to print it (in
> the __repr__() fucntion in PyArray, or actually in the get(int i) method
> which calls the Java method Array::get(Object, int)). Q: Why does it
> allocate twice ?
> 
> Kind regards,
> Niels Hilbrink
> 
> -- 
> Stehlin Merazzi Research sa.  tel : +41 32 345 2123 - direct   
> http://www.smr.ch   +41 79 607 1014 - mobile
> Rue Dufour 109b +41 32 345 2120 - fax
> CH-2500 Bienne 4, Switzerland


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



Re: ¿How do it?

1999-09-27 Thread Alex M.

java.lang.runtime.exec

On Sun, 26 Sep 1999, Juan Carlos wrote:

> Hi friends, 
> 
> ¿How to execute an linux command, to obtain any
> information, using Java?  (ex:  the CAT command).  
> I have Red Hat version 5.3, and jdk1.1.5. 
> 
> Thanks
> 
> 
> 
> __
> Do You Yahoo!?
> Bid and sell for free at http://auctions.yahoo.com
> 
> 
> --
> 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: Java and Enlightenment

1999-09-30 Thread Alex M.

I noticed this too under JDK 1.1.7 on Solaris 2.6.  Some dialogs would
move when you mouse over them.  It seemed WM specific though.  I had the
problem running FVWM2 on Xfree86, but using Solaris CDE the problem wasn't
present.  The other thing was that the only application I noticed this
kind of behavior in was the admin screen of Java Web Server.

On Wed, 29 Sep 1999, Peter Graves wrote:

> The authors of the Enlightenment window manager have some
> interesting comments today about Java:
> 
> http://www.enlightenment.org/news.html
> 
> Their basic point is that "Java under X (AWT) is Broken"; they
> don't mention which Java implementation they're referring to.
> 
> I don't think things are all that bad with either version of the
> Blackdown port (or with the new IBM 1.1.8 implementation either,
> for that matter), but I have noticed that dialogs (in particular)
> tend to drift a bit under various window managers, even though
> there's explicit code in the application to save and restore
> their position.  Both Enlightenment and Windowmaker seem to have
> this problem, but icewm, last time I checked, did not.  Windows
> VMs don't seem to have this problem at all.
> 
> -Peter
> http://armedbear.org
> 
> 
> --
> 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: Changing the font on Swing slider

1999-10-08 Thread Alex M.

Yeah... I think it is in com.sun.plaf.DefaultLookAndFeel or something like
that.

On Fri, 8 Oct 1999, Jacob Nikom wrote:

> Do you know where the information about 
> current settings is located?
> 
> Jacob
> 
> [EMAIL PROTECTED] wrote:
> > 
> > hmmm... if that doesn't work, you might try overriding the PLAF for that
> > component.
> > 
> > On Thu, 7 Oct 1999, Jacob Nikom wrote:
> > 
> > > Hi,
> > >
> > > I am trying to change the font style and size on some
> > > of the Swing widgets, mostly JSlider (tick marks numbers), TabbedPanes
> > > (tab names), etc. You cannot not set them up
> > > directly with setFont.
> > >
> > > I could not find any information how to do it. Do you
> > > have any idea how to do it?
> > >
> > > Thank you,
> > >
> > > Jacob Nikom
> > >
> > >
> > > --
> > > 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]
> 
> 
> --
> 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: Stupid Newbie Questions: Catching unanticipated null pointer exceptions (Are there really any other kind =^)

1999-10-11 Thread Alex M.

> Exception in thread "main" java.lang.NullPointerException:
>   at java.awt.Container.addImpl(Container.java:316)
>   at java.awt.Container.add(Container.java:245)
>   at Tedit.(Tedit.java:100)
>   at Tedit.main(Tedit.java:557)

The problem is in line 100 of Tedit.java, specifically in the constructor.
I bet you're trying to add a null object to a container, either that or
you're trying to add an object to a container that is null.

I don't use JDB unless I'm really desparate.  If you use Emacs and install
the JDE for Emacs (you can get to it off of blackdown under third party
tools I think) it integrates the jdb debugger into emacs so it kind of
works like JBuilder's debugger where you can see what line you are on and
skip/trace/etc into the source code, and watch the source code while the
program runs.


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



Re: Const in java

1999-10-14 Thread Alex M.

So there is no added benefit to declaring a parameter final other than to
allow access from inner classes within the method.

On Thu, 14 Oct 1999, Vartan Piroumian wrote:

> Hi folks,
> 
> All parameters are ALWAYS passed by value in Java.
> 
> When the parameter being passed is an object reference it is the 
> VALUE OF THE REFERENCE that is passed by value, not the object being
> referenced. 
> 
> This may seem like a moot distinction, but it is not.  A method cannot
> destroy the reference passed to it by changing the value of the formal 
> parameter.  The formal parameter is a copy.
> 
> 
> Regards,
> 
> Vartan
> 
> 
> 
> [EMAIL PROTECTED] writes:
>  > On Wed, 13 Oct 1999, Robert Simmons wrote:
>  > 
>  > > Since everything in java is passed by reference this becomes even more of an 
>issue. 
>  > > Therefore can I do the following to achieve the desired safety ? 
>  > 
>  > Well, everything is not passed by reference in Java.  I believe primitives
>  > and immutable types are passed by value.  Someone know the exact rules
>  > behind this? I always have to write a little test program to remember.
>  > Okay, I'll stop being pedantic.
>  > 
>  > I think if you do
>  > 
>  > public void myFunction(final SomeClass var) {
>  >.. whatever ..
>  > }
>  > 
>  > Will do what you desire.  Not positive though so some of the other wiser
>  > folks on the list might wish to confirm this.
>  > 
>  > 
>  > --
>  > 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]
> 


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



Re: Where is it?

1999-10-14 Thread Alex M.

You get those from java.sun.com, docs and apis.

On Thu, 14 Oct 1999 [EMAIL PROTECTED] wrote:

> OK. I am new to the java world and have installed java on my redhat 6.0 system. I 
>downloaded version 1.1.7 . I am missing the directory of docs and samples. Where are 
>these located? 
> 


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



Re: escape character

1999-10-15 Thread Alex M.

yes

On Fri, 15 Oct 1999, Yohans Mendoza wrote:

> hi all, I was under the impression that the escape character in java was
> \.
> is that correct?
> 
> TIA
> 
> --Yohans
> 
> 
> ~
> Yohans MendozaUnix Administrator
> [EMAIL PROTECTED]  Sirius Images Inc.  
> http://www2.utep.edu/~yohans  http://www.sirius-images.net 
> ~
> 
> 
> --
> 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: Still looking for a solution.

1999-10-21 Thread Alex M.

Do you have to use AWT frames?  If you use a swing frame, you can use a
glass pane to do what you are trying to do.

On Wed, 20 Oct 1999, Wayne wrote:

> Hello,
> I'm close, but no cigar. I'm still trying to get a frame to accept key
> events.
> In file TestCntrl.java I have -
> 
> import java.awt.* ;
> import java.awt.event.* ;
> 
> public class TestCntrl extends TestFrame
> {
> public static void main(String arg[])
> {
> new TestCntrl ().setVisible(true) ;
> }
> 
> public TestCntrl ()
> {
>  ToolKit theToolKit = this.getToolkit () ;
>   Dimension outScreenSize = theToolKit.getScreenSize () ;
> 
>   this.setBounds (ourScreenSize.width/1, ourScreenSize.height/1,
>  ourScreenSize.width/2, (int)
> (ourScreenSize.height * .8)) ;
> 
> // When I add the button it doesn't work!
> 
>Button myButton = new Button("TEST") ;
>add(myButton) ;
> }
> }
> 
> 
> In the file TestFrame.java
> 
> import java.awt.* ;
> import java.awt.event.* ;
> 
> public class TestFrame extends Frame
> {
> public TestFrame ()
> {
> enableEvents (QWTEvent.KEY_EVENT_MASK) ;
> }
> 
>  public void processKeyEvent (KeyEvent e)
>  {
> super.processKeyEvent (e) ;
>  System.out.println("Print key code" + e.getKeyCode()) ;
>   }
> }
> 
> Can someone tell me why this doesn't when I have the button. Also how
> can I get
> this to work without putting a handler on the button?
> 
> TIA
> Wayne
> 
> 
> --
> 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]