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

Today's topics:

* Iteration over sets - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2464f0c85c8b717f
* Why does this work for Canvas but not for JPanel? - 3 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/42cf2394a0e56b78
* Where is Roede?? - 3 messages, 3 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/78a25df0d465c899
* Doew anyone know th Initial Context properties for JMS? - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9cb2a34d249fc2d0
* how to detect if web app is deployed - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2d07e772bf6805e
* SSO in WebApplication, Help - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7d0840b238451d82
* test - please ignore - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a2f89ed9580d14a0
* Java trick - 2 messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bfd25be52dc6a3ad
* getting stackoverflow error when using ObjectInputStream - 3 messages, 3 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d97406584d39e158
* ava 1.5 - generics "unchecked cast" suppression - 2 messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1ef96a30b3347ba4
* Some sort of searchable or two way Map - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/315c1a2663bb6e58
* JSP 2.0, pagelets, et al - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f6d5be561f4d9b59
* How to add a handler to a logger via config (properties) file? - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7281ae0608cef8cc
* Preventing multiple instance standalone desktop gui applications - 1 messages, 1 
author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/afa857e018f3780
* Debate on use of sub interfaces and poly-morphism - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b6f9c11680a2c6a7
* textValueChanged sometimes not called by TextField.setText - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e34c6fe4465a18aa
* Application sharing - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7befcbbc82dde970
  
==========================================================================
TOPIC: Iteration over sets
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2464f0c85c8b717f
==========================================================================

== 1 of 1 ==
Date:   Sun,   Sep 26 2004 1:48 am
From: "Filip Larsen" <[EMAIL PROTECTED]> 

Thomas G. Marshall wrote

> Filip Larsen coughed up:
> > Swarat Chaudhuri wrote
> >
> >> I have a set S over which I would like to iterate. While iterating,
> >> in certain cases, I want to add elements to the set. I would like
the
> >> iterator to treat these new elements as if they have not been seen
so
> >> far.  However, doing so seems to guarantee that concurrent
> >> modification exception will be thrown.
> >>
> >> So the question is, is there a way to achieve what I want to do?
> >> Without needing to restart the iteration every time an "update"
> >> occurs?
> >
> > I see two fairly common ways of doing it:
> >
> > - Iterate over a list copy of S and add directly to S, or
> > - Iterate over S and add to a list,
>
> This approach would only require a second set, not a list, AFAICT.
IMBW.

You are correct that my post did not address the uniqueness problem. The
background for my example  was a breadth-first search where I assumed
the uniqueness of the candidate elements was determined by the generator
function somehow.

If you expect that the candidate generator function will return many
equal candidiates for different items in the set (that is, your search
graph has many short cycles) you are right that a set probably should be
used instead of a list to avoid to store too many equal candidates. And
any candidate already in the main set should of course be removed from
the added list or set before iterating over it.


Regards,
-- 
Filip Larsen






==========================================================================
TOPIC: Why does this work for Canvas but not for JPanel?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/42cf2394a0e56b78
==========================================================================

== 1 of 3 ==
Date:   Sun,   Sep 26 2004 4:45 am
From: Jonck <[EMAIL PROTECTED]> 

> You are forgetting to paint the background, it has become 
> your repsonsibility since you overrode paintComponent()
> 
> You can either.
> 
> // call the parent's implementation before you paint
> super.paintComponent( g );
> ...
> 
> ...or
> 
> // paint the background yellow yourself..
> Color tempColor = g.getColor();
> g.setColor(Color.YELLOW);
> g.fillRect(0,0,
>   this.getBounds().width,this.getBounds().height);
> g.setColor(tempColor);
> ...

Thanks very much! This works very well.

> 
> BTW.  I went to compile and test your original example
> and was surprised to find a complete AWT version.  
> 
> Given your first post mentioned both a JFrame and a 
> JPanel, why did you post the AWT based code?

The AWT based code is what I had working, so I wanted to show this to 
you guys so you would know what the desired behavior was for a Swing 
version of the same thing.

Cheers, Jonck



== 2 of 3 ==
Date:   Sun,   Sep 26 2004 4:47 am
From: Jonck <[EMAIL PROTECTED]> 

> Had you changed your code to this?
> 
>     public void paintComponent(Graphics g)
>     {
>         super.paintComponent(g);
>         ...
>}   }

I hadn't, as you can probably tell I'm just getting started with the 
Graphics side of Java, so I didn't know that the Canvas class took care 
of clearing it's own background while JPanel did not.
But this works great, thanks for your help.

Cheers, Jonck



== 3 of 3 ==
Date:   Sun,   Sep 26 2004 5:07 am
From: Jonck <[EMAIL PROTECTED]> 

> The update method of Canvas class clears the background and then calls 
> paint(). The JPanel class does it slightly differently, clearing of 
> the  background is done in its paintComponent method. So as Thomas 
> suggested,  adding a super.paintComponent() call at the start of the 
> paintComponent  method should take care of that.

Thanks for explaining the difference between Canvas and JPanel to me, 
the super.paintComponent(Graphics) call did indeed take care of it.

> The setSize() call in the Panel constructor also needs to be changed. 
> You should use the setPreferredSize to set a preferred size.

Yes, noticed that this is also a difference between Canvas and JPanel. I 
also tried overriding getPreferredSize and this seems to work as well. 
Could you tell me, are there situations when one would want to use 
setPreferredSize and others when one would want to override 
getPreferredSize or are they basically interchangeable?

Thanks, Jonck




==========================================================================
TOPIC: Where is Roede??
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/78a25df0d465c899
==========================================================================

== 1 of 3 ==
Date:   Sun,   Sep 26 2004 4:55 am
From: "Boudewijn Dijkstra" <[EMAIL PROTECTED]> 

"Steve Burrus" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> I was just wondering where our Roedy Green these days???! Maybe I
> haven't heard yet some big, big news about him, but I noticed that he
> hasn't posted to this group in the past several days!

Weeks even!





== 2 of 3 ==
Date:   Sun,   Sep 26 2004 10:23 am
From: "George W. Cherry" <[EMAIL PROTECTED]> 


"Boudewijn Dijkstra" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "Steve Burrus" <[EMAIL PROTECTED]> schreef in bericht
> news:[EMAIL PROTECTED]
> > I was just wondering where our Roedy Green these days???! Maybe I
> > haven't heard yet some big, big news about him, but I noticed that he
> > hasn't posted to this group in the past several days!
>
> Weeks even!

It's no secret that he's HIV positive. So I always
fear the worse when he's absent for a while. His
website gives to clue about his state.





== 3 of 3 ==
Date:   Sun,   Sep 26 2004 11:35 am
From: [EMAIL PROTECTED] 

This message was cancelled from within Mozilla.




==========================================================================
TOPIC: Doew anyone know th Initial Context properties for JMS?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9cb2a34d249fc2d0
==========================================================================

== 1 of 1 ==
Date:   Sun,   Sep 26 2004 4:14 am
From: Oscar kind <[EMAIL PROTECTED]> 

Ken Baltrinic <[EMAIL PROTECTED]> wrote:
> I am trying to get the following code to work from a session bean running on 
> AppServer8.  When I call new InitialContext(), the context I get pack has no 
> properties.  This leads me to suspect that i need a jndi.properties file 
> with the correct settings.  I suspect the settings I need are 
> java.naming.factory.initial and java.naming.provider.url but I don't know 
> what to set them to. I am also not sure exactly where to put the properties 
> file or how to tell the AppServer where to find it.  Can anyone help?

As Sudsy already pointed out, this depends on the application server
you're using. For Resin and Tomcat for example, no properties are needed.

Some examples:

Resin:
        Context context = new InitialContext();
        // Option 1
        DataSource dataSource1 = (DataSource)context.lookup("jdbc/datasource");
        // Option 2
        DataSource dataSource2 = 
(DataSource)context.lookup("java:comp/env/jdbc/datasource");

Tomcat:
        Context initialContext = new InitialContext();
        // Option 1
        Context context = (Context)initialContext.lookup("java:comp/env");
        DataSource dataSource = (DataSource)context.lookup("jdbc/datasource");
        // Option 2
        DataSource dataSource2 = 
(DataSource)initialContext.lookup("java:comp/env/jdbc/datasource");


-- 
Oscar Kind                                    http://home.hccnet.nl/okind/
Software Developer                    for contact information, see website

PGP Key fingerprint:    91F3 6C72 F465 5E98 C246  61D9 2C32 8E24 097B B4E2




==========================================================================
TOPIC: how to detect if web app is deployed
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2d07e772bf6805e
==========================================================================

== 1 of 1 ==
Date:   Sun,   Sep 26 2004 4:23 am
From: Oscar kind <[EMAIL PROTECTED]> 

Willian Irving Zumwalt <[EMAIL PROTECTED]> wrote:
> I'd like to know how to detect if a web application has been deployed
> from my main web application and if so, have another tab in my main
> web application appear for the newly installed web app. BTW - I'm
> using jboss if that matters.
> 
> Any advice on how something like this works?

A web application has a context root. You can check if it exists / is
deployed by performing a HTTP GET request on it.

Now, if you meant "I want to detect any newly installed web application",
you're out of luck: this is highly specific to the application server
you're using. Maybe your application server supports getting a list of
running web applications, maybe not.


-- 
Oscar Kind                                    http://home.hccnet.nl/okind/
Software Developer                    for contact information, see website

PGP Key fingerprint:    91F3 6C72 F465 5E98 C246  61D9 2C32 8E24 097B B4E2




==========================================================================
TOPIC: SSO in WebApplication, Help
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7d0840b238451d82
==========================================================================

== 1 of 1 ==
Date:   Sun,   Sep 26 2004 4:29 am
From: Oscar kind <[EMAIL PROTECTED]> 

Rick Z <[EMAIL PROTECTED]> wrote:
> I have to design and implement SSO(single sing-on) to webapplications
> (servlet and jsp based) and I should also use JAAS or other standard API.
> 
> Does anyone know any sample application and/or documentation that could 
> show me how JAAS should be used in webapplicatations?

SSO is specific to the application server you're using. By default, SSO is
not enabled, and every application server I've encountered handles SSO
differently.

The use of JAAS is partly application server specific:
- The JAAS modules are not, and they're documented in the JDK API.
- Using the JAAS modules is, and is documented in the documentation for your
  application server (if it is supported).


-- 
Oscar Kind                                    http://home.hccnet.nl/okind/
Software Developer                    for contact information, see website

PGP Key fingerprint:    91F3 6C72 F465 5E98 C246  61D9 2C32 8E24 097B B4E2




==========================================================================
TOPIC: test - please ignore
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a2f89ed9580d14a0
==========================================================================

== 1 of 1 ==
Date:   Sun,   Sep 26 2004 5:45 am
From: "Gary Labowitz" <[EMAIL PROTECTED]> 

"Tor Iver Wilhelmsen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> [EMAIL PROTECTED] (zxcv) writes:
>
> > <hr>
> > <table border=2>
>
> Doesn't look like text/plain (your stated content type) to me. So you
> failed the test.

Nit pick: That looks like text/plain text to me! What it doesn't display as
is HTML.
-- 
Gary






==========================================================================
TOPIC: Java trick
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bfd25be52dc6a3ad
==========================================================================

== 1 of 2 ==
Date:   Sun,   Sep 26 2004 5:49 am
From: "Gary Labowitz" <[EMAIL PROTECTED]> 

"Thomas G. Marshall" <[EMAIL PROTECTED]>
wrote in message news:[EMAIL PROTECTED]
> P.Hill coughed up:
> > Thomas G. Marshall wrote:
> >> When I teach students, I'm similarly faced with being extremely
> >> careful in my wording.
> >
> > When you say the following, you have the usage of "type" and "class"
> > exactly reversed, as Joona said:
>
>
> [note to all]
>
> Since we've now put the primary issue of this thread to rest, I thought
I'd
> point something out I find both interesting and important to us all.
>
> Because I've discovered that in my 8+ years of OO that one of the greatest
> sources of arguments (primarily in usenet) seems to center *(often
> unknowingly)* around what is meant by the following:
>
>         The type of {something}

It depends on what the something is. Variables have type. Objects have
class.
Thus: dynamic polymorphism.
-- 
Gary





== 2 of 2 ==
Date:   Sun,   Sep 26 2004 7:52 am
From: Chris Smith <[EMAIL PROTECTED]> 

Gary Labowitz wrote:
> It depends on what the something is. Variables have type. Objects have
> class.
> Thus: dynamic polymorphism.

Part of the point of the thread Thomas pointed to was exactly this: 
that's a statement about Java, not about languages in general.  Most 
obviously, there are plenty of OO languages where variables don't have 
type, and/or objects don't have class.  But it runs deeper than that.  
The rule in Java that objects are never variables simplifies things 
considerably, but that's not true of the general case.

In other words, the terminology is a bit muddled, and that needs to be 
acknowledged.

-- 
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation




==========================================================================
TOPIC: getting stackoverflow error when using ObjectInputStream
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d97406584d39e158
==========================================================================

== 1 of 3 ==
Date:   Sun,   Sep 26 2004 6:14 am
From: [EMAIL PROTECTED] (Efrat Ben-David) 

Hi
I'm using ObjectOutputStream & ObjectInputStream to write a hashtable
object from the memory into a dat file and to read the object from a
dat file.
I have no problem writting the object to the file but when I try to
read the object from the file I get stack over flow error (it doesn't
happen when I try to read in debug mode)
what should I do?
is there another way to write and read hashtable abject from a file?
Thx 
Efrat Ben David



== 2 of 3 ==
Date:   Sun,   Sep 26 2004 6:32 am
From: "Stefan Schulz" <[EMAIL PROTECTED]> 

On 26 Sep 2004 06:14:37 -0700, Efrat Ben-David <[EMAIL PROTECTED]>  
wrote:

> I have no problem writting the object to the file but when I try to
> read the object from the file I get stack over flow error (it doesn't
> happen when I try to read in debug mode)

Maybe your debugger allocates a larger Stack to each Thread? You can try
playing with the StackSize for your JVM, but this is not what i would
consider a "solid" solution to your problem.

 From java -X
-Xss<size>        set java thread stack size
This might be helpful

> what should I do?

Post an example to show where exactly your code fails. Maybe there
is some simple solution to it all.

> is there another way to write and read hashtable abject from a file?

This depends. What are they keys and values of the table? If it is easy
to transform them too and from String, you might actually be much better
off just saving them in some appropriate format (XML?) and then parsing
this file again.

-- 

Whom the gods wish to destroy they first call promising.



== 3 of 3 ==
Date:   Sun,   Sep 26 2004 6:35 am
From: Andrew Thompson <[EMAIL PROTECTED]> 

On 26 Sep 2004 06:14:37 -0700, Efrat Ben-David wrote:

> I have no problem writting the object to the file but when I try to
> read the object from the file I get stack over flow error 

a) <http://www.physci.org/codes/javafaq.jsp#exact>

>..(it doesn't
> happen when I try to read in debug mode)

At which line line of the source you did not supply 
is the exception or error occurring?
b) <http://www.physci.org/codes/sscce.jsp>

> what should I do?

See a), then supply b).

-- 
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: ava 1.5 - generics "unchecked cast" suppression
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1ef96a30b3347ba4
==========================================================================

== 1 of 2 ==
Date:   Sun,   Sep 26 2004 7:35 am
From: "Steven Buroff" <[EMAIL PROTECTED]> 

Is there a way to suppress the "unchecked cast" message for a particular
statement rather than an entire file? There are times when you can't really
avoid the cast. In my case, I'm reading back in a previously serialized
object. I need to cast it. Thanks in advance.

Steve





== 2 of 2 ==
Date:   Sun,   Sep 26 2004 10:04 am
From: Paul Lutus <[EMAIL PROTECTED]> 

Steven Buroff wrote:

> Is there a way to suppress ...

Multiposting? No, apparently not. But stop it anyway.

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





==========================================================================
TOPIC: Some sort of searchable or two way Map
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/315c1a2663bb6e58
==========================================================================

== 1 of 1 ==
Date:   Sun,   Sep 26 2004 9:57 am
From: [EMAIL PROTECTED] (Albretch) 

I do know of ArrayList<String>'s (1.5 typesafe version) add(Object)
and indexOf(Object) methods.

 Thing is that if you stress test it (say with 12695 Strings (I am
using all the names of the classes in $JAVA_HOME/lib/rt.jar)), you
will be roughly getting a search time of 1 millisecond per string
which is way to slow.




==========================================================================
TOPIC: JSP 2.0, pagelets, et al
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f6d5be561f4d9b59
==========================================================================

== 1 of 1 ==
Date:   Sun,   Sep 26 2004 10:59 am
From: "WJ" <[EMAIL PROTECTED]> 

I recently installed Tomcat 5 at home and started playing with it.  It has
the new JSP 2.0 and Servlet 2.4 API.

I came across the concept of translation time includes and request time
includes.  It seems that Sun's Java Studio
makes references to the "jato" tag libs, which seem to allow a developer to
use tags to include small pagelets
(like a select control, text box, etc) at request time.
(http://docs.sun.com/source/817-4801/overview1.html)

After doing some googling, the references I see seem to point to an XML to
object translator
(http://www.javaworld.com/javaworld/jw-03-2001/jw-0316-jato.html).

I've wanted to write something that will allow the dynamic creation of
compnents on a page, similar to my.yahoo.com
or my.msn.com.  I started reading on the pluto project
(http://portals.apache.org/pluto/).  This project is using a portlet
container which seems to run on top of tomcat (I just started reading about
this today) and using the portlet standard
(JSR 168).

What I'm looking for is what the jato.tld's offer, but the only reference I
see are in Sun's Java One Studio.  An idea
similar to what I remember reading about the java.swing.text.html.*
packages.

I typically develop in eclipse and tomcat.  I don't necessarily want to be
tied to a portlet container.  Is something like the
jato.tld's available as a standalone package, that even plugs into
struts/tiles?

Any links that would would be a nutshell for reading would be greatly
appreciated.

Thanks






==========================================================================
TOPIC: How to add a handler to a logger via config (properties) file?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7281ae0608cef8cc
==========================================================================

== 1 of 1 ==
Date:   Sun,   Sep 26 2004 11:09 am
From: "Thilo Brandt" <[EMAIL PROTECTED]> 

Hi all,

I am currently forced to enable my application with SUNs Logging API (JDK
1.4.2). I found out that configuration for loggers can be provided by a
properties file and by coding. My concrete question: How can I assign a
dedicated Handler via properties file to a certain logger?
It seems to me that I can only define a set of handler globally:

handlers = java.util.logging.FileHandler  <== seems globally
com.test.logger.level=ALL

How can I tell com.test.logger Logger to use none of the default handlers
but an other one?
This does not work:
com.test.logger.handlers=com.test.handlers.MyHandler

Any help will be appreciated ...

Regs,
Thilo






==========================================================================
TOPIC: Preventing multiple instance standalone desktop gui applications
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/afa857e018f3780
==========================================================================

== 1 of 1 ==
Date:   Sun,   Sep 26 2004 11:22 am
From: "Larry Barowski" <larrybarATengDOTauburnDOTeduANDthatISall> 


"steve" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> use a small server program. open a port. ( less than 20 lines of code)
> when you launch your app , check if you get an answer on the port, if so
> there is already an app running.
> if not  then launch a  small server.

The simple server you presented does not allow two users
(or two accounts) logged into one machine at the same time
to use the application. You also need to consider that any
chosen port may be used by another application. These
problems can be solved, but I would still recommend a flag
file. If the app won't run on less than Java 1.4, using a lock
as mentioned elsewhere in this thread will eliminate the
problem of a left-over flag file after a crash. Otherwise,
just give the user the option of running anyway (with a
stern warning to make sure the app is not already running)
if the lock file is present.






==========================================================================
TOPIC: Debate on use of sub interfaces and poly-morphism
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b6f9c11680a2c6a7
==========================================================================

== 1 of 1 ==
Date:   Sun,   Sep 26 2004 12:43 pm
From: [EMAIL PROTECTED] (Christian Bongiorno) 

I am currently creating a set of interfaces for a rather large project
we have designed.
Many of the interfaces have the same method names and functionality.

such as:
public void addEventListener(TaskEvent evt); // Extends EventObject

public TaskDetails getDetails(); // task details extends IDetails

These imply a more specific class type but are repetative. 
Then it occurred to me, I could create a super interface that contains
generic forms of these methods and have each sub interface extend
them.

example:

public void addEventListener(EventObject evt);
public IDetails getDetails();



The first method requires that implementors use this exact static
type. Such things as

public void addEventListener(TaskEvent evt); 

would not satisfy the 

public void addEventListener(EventObject evt);

And as for getDetails, although the user could assume a specific
subtype to caste to by the type of implementing class (getDetails() on
a Task object would return a TaskDetails obj -- not gauranteed, but
assumable) and callers would still have to type caste the return type
to get most functionality

So, basically the debate boils down to this:
Do I use generic types in a super interface to reduce copy  & paste
(something I despise) or do I apply C&P to a few interface methods and
thus enforce specific subtypes and relieve the caller of casting? I
only intend for there to be maybe 10 interfaces to use these common
methods.

I am leaning toward the second choice. 

Thoughts?

Christian




==========================================================================
TOPIC: textValueChanged sometimes not called by TextField.setText
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e34c6fe4465a18aa
==========================================================================

== 1 of 1 ==
Date:   Sun,   Sep 26 2004 1:01 pm
From: "Mickey Segal" <[EMAIL PROTECTED]> 

This bug has been accepted by Sun, with a bug page at:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5106832

"Mickey Segal" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>I have reproduced this problem in a small applet, with a working version 
>and full source code at:
> http://www.segal.org/java/text_events/ 






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

== 1 of 1 ==
Date:   Sun,   Sep 26 2004 1:03 pm
From: Jim Cochrane <[EMAIL PROTECTED]> 

In article <[EMAIL PROTECTED]>, Chris Smith wrote:
> Jim Cochrane wrote:
>> It sounds, perhaps, like something that could be done via web services -
>> or would this be too demanding for web services?
> 
> Web services are irrelevant.  Once you've captured the information to 
> send to the other side, there are plenty of ways to transmit it.  That's 
> the trivial part of the problem.  Web services would carry much more 
> overhead than most other possible protocols.
> 
> The trick, though, is to gather such information about other 
> applications in the first place.  Some of it could be gathered via 
> java.awt.Robot if that class is implemented on the target platform; but 
> more would be needed.
> 

Thanks for the clarification.

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



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

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