comp.lang.java.programmer
http://groups-beta.google.com/group/comp.lang.java.programmer
[EMAIL PROTECTED]

Today's topics:

* Java API source code? - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f49b6100e91cd2fa
* navigate to webpage and capture whole screen to a JPEG? - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8b394e001e6cf553
* Application sharing - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7befcbbc82dde970
* Using BigInteger - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a7be97102e1c754
* server application - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4bfd9bcb653fd31c
* Socket problem -- response slow for host with domain (on SunOS5.8) - 1 messages, 1 
author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bfb84c34caf0c9e9
* java.util.Timer doesn't work - 2 messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/71ef1327ff59774b
* read binary data from C file??? - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c04d04f749f5ae1f
* JList problem - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/72da84dc06d2c08b
* writeObject and readObject problem - 3 messages, 3 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e6fc9480a3a7f42a
* get contents of an ftp folder in java - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bf30846909536d29
* Garbage collector question - 2 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/793ab88313c687f9
  
==========================================================================
TOPIC: Java API source code?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f49b6100e91cd2fa
==========================================================================

== 1 of 1 ==
Date:   Thurs,   Sep 23 2004 10:18 pm
From: Andrew Thompson <[EMAIL PROTECTED]> 

On Fri, 24 Sep 2004 03:31:32 GMT, Andrew Thompson wrote:
<snip>
> The places described by Micheal and Jim.

Sorry Michael!  

<excuse class='weak'>
Posting before I have my morning coffee hit.  ;-)
</excuse>

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.lensescapes.com/  Images that escape the mundane




==========================================================================
TOPIC: navigate to webpage and capture whole screen to a JPEG?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8b394e001e6cf553
==========================================================================

== 1 of 1 ==
Date:   Thurs,   Sep 23 2004 10:28 pm
From: Andrew Thompson <[EMAIL PROTECTED]> 

On Fri, 24 Sep 2004 03:45:45 GMT, Andrew Thompson wrote:

> (...'MyFaves' type web-page saver)
> 
> BrowserLauncher, which is an open source code, can 
> grab the User's own browser and open it with a URL, 
> but it will not do the other (3) things required for 
> this (very bizarre) application.
> 
> 1) Send the browser to full-screen (preferably 'chromeless')
> 2) change pages once opened.

...er and, ummm..  oh yeah!
3) Make the web-page act in a sensible way.

I have another Win specific exe that makes URL based savers, 
but they are a bit quirky.  If you click on a link, the 
browser attempts to open the URL, while the saver manager 
software is closing the browser!

It occured to me you might disable the links in the page,
or attempt to bring the browser back from 'full-screen,
chromeless' to a normal browser window, and continue
displaying the requested page.

..and, the more I think about it, this may actually be
workable using a page with an <iframe> elament, a bit of
clever script, ..and possibly lowering the UA security
settings for that page.  (wanders off, muttering..)

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.lensescapes.com/  Images that escape the mundane




==========================================================================
TOPIC: Application sharing
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7befcbbc82dde970
==========================================================================

== 1 of 1 ==
Date:   Thurs,   Sep 23 2004 10:45 pm
From: Jim Cochrane <[EMAIL PROTECTED]> 

In article <[EMAIL PROTECTED]>, Chris Smith wrote:
> Ike wrote:
>> Something that provides functionality akin to "appilication sharing" in msn
>> messenger (which Ithink has been ported over from the old Netmeeting) or
>> what WebEx does -- something that lets someone who is in charge of a
>> metting, run an application on a client, and have it be vieewd remotely by
>> other clients.
> 
> No pure Java library will be able to provide the kind of application 
> sharing available in those tools.  You would need something more closely 
> connected to the underlying system, so such a thing just can't possibly 
> exist.  If you need a portable library, you are out of luck.
> 
> I'm unaware of any platform-specific native libraries, but you might get 
> a better response if you post what platforms you need.

It sounds, perhaps, like something that could be done via web services -
or would this be too demanding for web services?

-- 
Jim Cochrane; [EMAIL PROTECTED]
[When responding by email, include the term non-spam in the subject line to
get through my spam filter.]




==========================================================================
TOPIC: Using BigInteger
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a7be97102e1c754
==========================================================================

== 1 of 1 ==
Date:   Thurs,   Sep 23 2004 10:42 pm
From: Babu Kalakrishnan <[EMAIL PROTECTED]> 

Thomas G. Marshall wrote:
> Babu Kalakrishnan coughed up:
> 
>>
>>Another thing to keep in mind is that BigInteger objects are
>>immutable. So even though you might naively think that a.add(b) would
>>add the value of b to a and hold the result in a, it does not work
>>that way - you must use the BigInteger object returned for the result.
> 
> 
> ....which BTW I think is sensible.  A BigInteger of 5 is like the number 5.
> You shouldn't (at least in java) be able to say 5.add(4), and have 5 be 9.
> 

Yes - as long as you realize that BigInteger is immutable. After all, if 
you create a new StringBuffer("SomeString") and call append(10) on it, 
you can afford to throw away the returned StringBuffer object - can't we 
? I've seen newbies apply the equivalence - that's why I posted the 
clarification.

 >
> BTW, does smalltalk allow that?
> 

Never used smalltalk - so wouldn't know.


BK




==========================================================================
TOPIC: server application
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4bfd9bcb653fd31c
==========================================================================

== 1 of 1 ==
Date:   Thurs,   Sep 23 2004 10:51 pm
From: Paul Lutus <[EMAIL PROTECTED]> 

Luke wrote:

> hi all, I'm not sure if this would be the right group to post this in,
> but it should work ok.  Ok, my question goes like this: supposeing I
> have a client/server type project that I want to create in java, the
> client will be running out of an applet so in order for this to work,
> the server application must be running on the same server as is the
> webpage that called the applet. (please don't try to solve what I've
> said so far, as there are other factors that force me to have the
> server program run on the webhosting server).  So my question is, does
> anyone know of a webhost that will host a website for me for free (it
> doesn't have to be big, banners aren't a problem, and I'm a poor
> student so anything will be fine).

In that case, create the server on your own computer. You are very unlikely
to find a free hosting service that will allow the use of a
student-designed Java server.

-- 
Paul Lutus
http://www.arachnoid.com





==========================================================================
TOPIC: Socket problem -- response slow for host with domain (on SunOS5.8)
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bfb84c34caf0c9e9
==========================================================================

== 1 of 1 ==
Date:   Thurs,   Sep 23 2004 10:59 pm
From: Babu Kalakrishnan <[EMAIL PROTECTED]> 

Nishi Bhonsle wrote:
> 
> Babu Kalakrishnan wrote:
> 
> 
> I checked the /etc/nsswitch.conf and found the following --
> hosts:      files nis dns
> 
> I checked the /etc/resolv.conf and found that there are nameserver entries for my 
> domain and 3 servers . One of the server entries (the last one) is not returning a 
> successful ping.
> Could that be any problem?
> 

Depends on the strategy adopted by your resolver. If it tries to rotate 
the queries between nameservers, it is possible that you might get 
delays each time it tries to connect to the dead nameserver.

Better to experiment and find out. Try running nslookup on different 
hostnames a few number of times. If some of the queries are taking a 
long time to complete, then it is likely to be a DNS issue, and removing 
that entry from the resolv.conf file should help.

On the other hand if your nslookup queries are returning fast with a 
success or failure as the result (you didn't mention that aspect - i.e. 
the time taken for the query - in your other post where said nslookup 
seemed to be working ok), then you can eliminate DNS as the probable 
reason. The next thing to try to connect to port 25 of a server that 
gave you delays while testing using telnet. ("telnet yahoo.com 25" for 
instance) Normally it should instantly say "connection refused" if the 
port is not open. If you find a long delay, then it is probably your 
firewall setup which is to blame. (It might be quietly dropping packets 
instead of rejecting them - or might be blocking ICMP packets)

BK






==========================================================================
TOPIC: java.util.Timer doesn't work
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/71ef1327ff59774b
==========================================================================

== 1 of 2 ==
Date:   Thurs,   Sep 23 2004 11:16 pm
From: [EMAIL PROTECTED] (FET) 

Hi all,
I have an application that displays a Swing GUI. The application
writes its logs to a certain file. I would like to have a thread that
checks the file every, say 10 seconds, and if it is found to be
deleted, creates a new file. I have made a class that extends
TimerTask and in the run method, it calls file.exists() and
file.createNewFile(). Then I have set timer.schedule ( task, 0,
10000). But the code never gets called.

Should I just use plain ol' awt threads ? I think Timers is a more
sophisticated mechanism. But it doesn't seem to be working.

Please advise.

Thanks in advance.

Best regards.



== 2 of 2 ==
Date:   Fri,   Sep 24 2004 12:42 am
From: Andrew Thompson <[EMAIL PROTECTED]> 

On 23 Sep 2004 23:16:31 -0700, FET wrote:

> I have an application that displays a Swing GUI. ..

<http://www.physci.org/codes/javafaq.jsp#cljg>

(snip description)
> Please advise.

Code speaks a thousand descritptions..
<http://www.physci.org/codes/sscce.jsp>

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.lensescapes.com/  Images that escape the mundane




==========================================================================
TOPIC: read binary data from C file???
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c04d04f749f5ae1f
==========================================================================

== 1 of 1 ==
Date:   Thurs,   Sep 23 2004 11:43 pm
From: Gordon Beaton <[EMAIL PROTECTED]> 

On Thu, 23 Sep 2004 20:35:19 +0100, Steve Horsley wrote:
> John Adams wrote:
>> Gordon Beaton wrote:

Just to clarify, I didn't write *any* of the text (a short section of
code) that you quoted in your reply to John.

/gordon

-- 
[  do not email me copies of your followups  ]
g o r d o n + n e w s @  b a l d e r 1 3 . s e




==========================================================================
TOPIC: JList problem
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/72da84dc06d2c08b
==========================================================================

== 1 of 1 ==
Date:   Thurs,   Sep 23 2004 11:42 pm
From: Babu Kalakrishnan <[EMAIL PROTECTED]> 

Mika Suomi wrote:
> class AsiakasListaHndl implements ListSelectionListener{
>     public void valueChanged(ListSelectionEvent e) {
>   JList jlst= new JList(lstCustomers);
>      String name=(String) jlst.getSelectedValue();
>         System.out.println(name);}}
> 
> This is code in listener and when I click a customer in list it gives the 
> result twice.First when I click mouse second when I release mouse.Why???
> 

Try calling getValueIsAdjusting() on the event object and avoid doing 
your action if it returns true. (In that case it is an event generated 
as a part of a sequence of events)

BK




==========================================================================
TOPIC: writeObject and readObject problem
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e6fc9480a3a7f42a
==========================================================================

== 1 of 3 ==
Date:   Thurs,   Sep 23 2004 11:52 pm
From: Gordon Beaton <[EMAIL PROTECTED]> 

On Thu, 23 Sep 2004 22:18:41 -0400, juicy wrote:
> Yes, i have imported java.awt.Event but the result is still same. 
> Is that really the server cannot read the event? 

Which process - client or server - gets the ClassNotFoundException
from readObject()? You weren't clear about that.

Do both processes use the same version of the JRE (and class
libraries)?

/gordon

-- 
[  do not email me copies of your followups  ]
g o r d o n + n e w s @  b a l d e r 1 3 . s e



== 2 of 3 ==
Date:   Fri,   Sep 24 2004 12:31 am
From: Andrew Thompson <[EMAIL PROTECTED]> 

On Fri, 24 Sep 2004 00:48:18 +0200, Michael Borgwardt wrote:

> Andrew Thompson wrote:
..
>> Your server does not need it till run time,
>> that is why your code compiles, but to recognize
>> an Event you are reading, the java.awt.Event
>> must be imported to the server code.
> 
> That can't be right. 

No.  I started on a wrong concept then went 
happily with it.  Thanks for correcting me.

And, to the OP.  Apologies for the 'noise'.

But.. I strongly suggest you make a minimized test 
case of code (you can do probably do this in under 
100 lines) that displays the problem.  

Post it on the group.

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.lensescapes.com/  Images that escape the mundane



== 3 of 3 ==
Date:   Fri,   Sep 24 2004 12:33 am
From: "juicy" <[EMAIL PROTECTED]> 

Sorry, is at client side gets the ClassNotFoundException
from readObject().





==========================================================================
TOPIC: get contents of an ftp folder in java
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bf30846909536d29
==========================================================================

== 1 of 1 ==
Date:   Fri,   Sep 24 2004 12:55 am
From: Tor Iver Wilhelmsen <[EMAIL PROTECTED]> 

[EMAIL PROTECTED] (Eqbal) writes:

> I need to get contents of an ftp folder (it needs a username and
> password too) and then treat the files in that folder like a regular
> File object. Is it possible? Any pointers on how to do this?

No, it's not possible as such, because the FTP protocol is vastly
different from the File object's functionality.

Look for an FTP library instead.




==========================================================================
TOPIC: Garbage collector question
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/793ab88313c687f9
==========================================================================

== 1 of 2 ==
Date:   Fri,   Sep 24 2004 12:52 am
From: "Vincent Cantin" <[EMAIL PROTECTED]> 

> > because I need to know in some points of given class of programs that an
> > object is reachable or not.
>
> If you want to know whether the WeakReference is still valid, just use
> get() and compare the result with null.  You are not guaranteed that a
> call to System.gc will clear the WeakReference, so you need to check
> yourself if you wish to find out.

I think nobody understood the problem : What I want to know is wether or not
my object is reachable.

To check the value returned by of the WeakReference.get() will not tell me
what I want to know, since if the answer is not null it doesn't give me the
information about the reachability of the object.

I don't a way to know when a weak reference reflect the reachability of the
object ...
understood ?





== 2 of 2 ==
Date:   Fri,   Sep 24 2004 12:54 am
From: "Vincent Cantin" <[EMAIL PROTECTED]> 

> > because I need to know in some points of given class of programs that an
> > object is reachable or not.
>
> If you want to know whether the WeakReference is still valid, just use
> get() and compare the result with null.  You are not guaranteed that a
> call to System.gc will clear the WeakReference, so you need to check
> yourself if you wish to find out.

In fact yes, I will have to find myself .. i.e. I will have to define a
language interpreted by my java program and handle myself the references.





=======================================================================

You received this message because you are subscribed to the
Google Groups "comp.lang.java.programmer".  

comp.lang.java.programmer
[EMAIL PROTECTED]

Change your subscription type & other preferences:
* click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe

Report abuse:
* send email explaining the problem to [EMAIL PROTECTED]

Unsubscribe:
* click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe


=======================================================================
Google Groups: http://groups-beta.google.com 

Reply via email to