Problem making an instant of a class.

1999-10-03 Thread Wayne

Hello,
I have looked thru all my java books looking for an answer to my
problem,
but I'am not not able to find a solution. So, I thought I ask the group.

I hava a class A that extends Frame and contains the main() method. In
this class I have several Button components with  an action listener on
each button.
 myButton.addActionListener(new myhandler()) ;

In my handler I extend Frame and implement ActionListener.
In the method actionPerformed() I set several componets and then do a
setVisible(). But nothing happens. What am I missing?
TIA.
Wayne



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



Problem with drag-&-drop in JInternalFrame

1999-10-03 Thread Thomas Foerster

Hi!

I have a problem using drag-&-drop with blackdown´s JDK 1.2.   
Everything is allright in normal applications, but when I place the
DnD-components in a JInternalFrame I get this execption:
   
   
java.awt.dnd.InvalidDnDOperationException: The operation requested cannot be performed
by the DnD system since it is not in the appropriate state
   
This problem doesn´t occur with Sun´s JDK1.2.2 for Windows.
Is this a bug in the Linux-JDK (propably)?
Any idea how to set the DnD System into the "appropriate state"?
   
   
cu

Thomas

-- 
Thomas Förster   Mail: [EMAIL PROTECTED]
---


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



RE: name resolution problems

1999-10-03 Thread Kontorotsui


On 02-Oct-99 Shawn McKisson wrote:
[localhost resolution]
> Does anyone know the solution to this problem or know where to start looking?

Make sure that in /etc/host.conf you have the following command:

order hosts, bind


And that in /etc/hosts there is the entry

127.0.0.1  localhost


---
Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at 
University of Pisa  -  Italy  -  E-mail: [EMAIL PROTECTED]
My home page: http://www.cli.di.unipi.it/~controzz/intro.html

Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group).
Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of...

+-+
|.  * .   |
|   .__ . .   |
|oq  |po   _ _|
|  /  #==>>>==#,-' (_)\   |
|  |  ,-|~\\   ///_ ,()  ,_}  |
|  |  |/|~]]] /// ,-~'  .,~   /   \|  .   |
|  |\_|_|_\_\~~~~'   \   (/|. |
| ./~ \___/   [m] \   \__//   |
| _bo..__ //   `-,.~~ |
|  _-~ 0o.__( .   |
| \  o  . |
|  .  (_)00   |
|. \~~~*,,,* ~00  |
|~0 . |
|   ~~~---~~  |
|   .*|
+-+
| An e-mail network of Space Cruiser Yamato and   | 
|  StarBlazers Fans   |
+-+


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



Re: Problem making an instant of a class.

1999-10-03 Thread Weiqi Gao

Wayne wrote:
> 
> Hello,
> I have looked thru all my java books looking for an answer to my
> problem, but I'am not not able to find a solution. So, I thought
> I ask the group.
> 
> I hava a class A that extends Frame and contains the main() method.
> In this class I have several Button components with  an action
> listener on each button.
> 
>   myButton.addActionListener(new myhandler()) ;
> 
> In my handler I extend Frame and implement ActionListener.
> In the method actionPerformed() I set several componets and then
> do a setVisible(). But nothing happens. What am I missing?

You have to click on the Button.

-- 
Weiqi Gao
[EMAIL PROTECTED]


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



Re: name resolution problems

1999-10-03 Thread Shawn McKisson

"[EMAIL PROTECTED]" wrote:
> 
> What do you get if you run "nslookup localhost" ?
> 
> Troy
> 
hm. This is very interesting.
Trying that yesterday would result in :

"... can't find production: Non-existent host/domain"

But today, I get a response?!?

Non-authoritative answer:
Name:localhost
Address:  127.0.0.1

What is going on here?!? Does nslookup use /etc/hosts or does it go straight to
bind?
Why would "localhost" suddenly appear as a DNS entry? Did the DNS administrator
add this entry manually possibly? It seems wrong that "localhost" would be an
entry at all. I am very confused!

The reason I brought this question to the java users is because all of my
"non-java" programs that try to use "localhost" or "production" work just fine
(ie ping, netscape, ftp, etc...) I can even add an entry to /etc/hosts and they
get picked up immediately.

--shawn


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



Re: Problem making an instant of a class.

1999-10-03 Thread Wayne

Weiqi Gao wrote:

> Wayne wrote:
> >
> > Hello,
> > I have looked thru all my java books looking for an answer to my
> > problem, but I'am not not able to find a solution. So, I thought
> > I ask the group.
> >
> > I hava a class A that extends Frame and contains the main() method.
> > In this class I have several Button components with  an action
> > listener on each button.
> >
> >   myButton.addActionListener(new myhandler()) ;
> >
> > In my handler I extend Frame and implement ActionListener.
> > In the method actionPerformed() I set several componets and then
> > do a setVisible(). But nothing happens. What am I missing?
>
> You have to click on the Button.
>
> --
> Weiqi Gao
> [EMAIL PROTECTED]
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

I did click on the button.
Wayne


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



Re: name resolution problems

1999-10-03 Thread Shawn McKisson

Kontorotsui wrote:

> Make sure that in /etc/host.conf you have the following command:

>From the attachment I sent:

production:~/projects/inet>cat /etc/host.conf
order hosts, bind
multi on

> order hosts, bind

Check!

> And that in /etc/hosts there is the entry

>From the attachment I sent:

production:~/projects/inet>cat /etc/hosts

#This host (AAA.AAA.AAA.AAA = IP Address of this host)
AAA.AAA.AAA.AAA production

# For loopbacking.
127.0.0.1   localhost
 
> 127.0.0.1  localhost

Check!

The reason I posted this to the linux java users is that all of my non-java apps
work properly - ie they can resolve "localhost" and "production" and see changes
immediately when I modily /etc/hosts. Thanks for your help thus far - any other
ideas?

--shawn


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



Re: required Libraries

1999-10-03 Thread Carsten Hoeger

On Sat, Oct 02, Jeff Galyan wrote:

> Actually, libXm.so is Motif, which is required by AWT, and therefore
> Java. You'll need to get a Motif distribution (I use RedHat Motif 2.1.10
> with no problems).

That's not true!

There are both, static and dynamic linked versions of the java
vm. The dependency to libXm results from the dynamical linked
version.

The static linked version of java _does_ _not_ _need_ Motif
Runtime Libraries!!!

-- 
mit freundlichen Gruessen,

Carsten Hoeger  - SuSE Professional Services -

SuSE GmbH,   Schanzaeckerstr. 10,  90443 Nuernberg, Germany
Tel: +49-911-7405356 Mo-Fr 09-17.00,   Fax: +49-911-3206727
http://www.suse.de/bsupport/index.html  Email: [EMAIL PROTECTED]

Braune Blaetter schmeissen sich vom Baum und sind tot.
Es ist Herbst.  (O. Kalkofe)


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



Problem making an instant of a class.

1999-10-03 Thread Vartan Piroumian



Wayne writes:
 > Hello,
 > I have looked thru all my java books looking for an answer to my
 > problem,
 > but I'am not not able to find a solution. So, I thought I ask the group.
 > 
 > I hava a class A that extends Frame and contains the main() method. In
 > this class I have several Button components with  an action listener on
 > each button.
 >  myButton.addActionListener(new myhandler()) ;
 > 

Your handler should not extend Frame, only implement ActionListener. 


 > In my handler I extend Frame and implement ActionListener.
 > In the method actionPerformed() I set several componets and then do a

What exactly do you mean by "...set several components..."?


 > setVisible(). But nothing happens. What am I missing?

Based on the answer to the question above, I suggest you try 

invalidate();
validate();

on the container containing the components that you "set".

 > 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]



Path statments

1999-10-03 Thread mango

what file should I modify to add jdk1.2 into my environment?
also what is the correct syntax for adding java_home


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



Re: Problem making an instant of a class.

1999-10-03 Thread alx

On Sun, 3 Oct 1999, Vartan Piroumian wrote:

> Your handler should not extend Frame, only implement ActionListener. 

That's more of a design issue, not a code correctness issue, don't you
think?  Although I would agree with you.

>  > setVisible(). But nothing happens. What am I missing?

I would also suggest doing a setSize() on the frame, because what's
probably happening is your frame is being displayed, but it's size is 0,0.
There are a number of ways to get your frame to set it's size, but calling
setSize directly will tell you whether or not that is the problem.


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



Re: How big a server is required to deploy JServ?

1999-10-03 Thread Todd Papaioannou


>We're planning on using the IBM 1.1.8 JDK for Linux.  In a perfect world,
>we'd be deploying on Solaris, but unfortunately we're a startup company
>and we just can't afford it as of yet.
>
> > IBM's JVM is so-so in terms of performance, but may have problems under
> > load due to the immaturity of Linux threads.  Until recently, there were
> > also problems that made it not work right with jserv due to it improperly
> > reporting that there was no more data to be read on a socket instead of
> > blocking.

Well, I've also spotted problems with the IBM 1.1.8 Linux JDK with 
Swing 1.1.1. In fact, with the examples that come with Swing the
JVM actually crashed and core dumped on my system. My details:

Linux Mandrake 6.1 (RH6.1), Swing 1.1.1, no jit.

Todd


---
   Todd Papaioannou @ MSI   Luckyspin @ TerraFirmA
  http://luckyspc.lboro.ac.ukhttp://terrafirma.terra.mud.org
 "Mobility is Key"  'It's a brave new world in there'
---
The Aglet Portal - http://luckyspc.lboro.ac.uk/Aglets
---


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



web server

1999-10-03 Thread R MUTHUSWAMY


hi,

i have written a java code to work as a small web server. And i want that
to run in a situation, where i don't have any network card but i have a
modem connection. can i run it in that condition. or any network
application can't be run on a system with a modem. 

Thanx for any answers,
MUTHU.


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



Java3D and the tnt2

1999-10-03 Thread hilbrink

Hi,

I was wondering if you still have the problem you mentioned in the
bug-list of the Java Linux group  since I do. 

> FYI: J3D doesn't run, at least no in accel. mode, with a TNT2 chip, 
> it bang out with an error: 
>   Exception in thread "main" java.lang.UnsatisfiedLinkError: 
>   /usr/local/jdk1.2/jre/lib/i386/libJ3D.so: 
>   /usr/local/jdk1.2/jre/lib/i386/libJ3D.so: undefined symbol: glTexImage3DEXT

All applications (ie, the mesa demos) run perfectly except the J3D. My
solution,em is but I haven't tried yet, was to recompile the Mesa
library, the problem, in my opinion, is that the looked for function
cannot be found in the Mesa lib but in the glx.so lib which, supposedly,
is loaded when the X-server starts up. 

To the group: Has anyone solved this problem

Gr.
Niels
-- 
Stehlin Merazzi Research sa.  tel : +41 32 345 2123 - direct   
http://2159224323   +41 79 607 1014 - mobile
Rue Dufour 109b +41 32 345 2120 - fax
CH-2500 Bienne 4, Switzerland
 S/MIME Cryptographic Signature