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

Today's topics:

* Problem with double buffering.. - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9aeb201d21113d93
* Returning String[] from C program (JNI) - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7e52caf60c639e7b
* Java on Linux - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b359a0d20324fdbe
* Distributable libraries? - 4 messages, 3 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c8f7365e0f965e0d
* Writing to Word documents - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/63e6214e752428a
* c output doesn't show up through JNI? - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fda661738483db46
* default constructor in Java versus C++ - 3 messages, 3 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b0018dff5a806578
* program arguments - 2 messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/44d9b350ac879ea0
* Java Thread Analysis - 3 messages, 3 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c30c46b2c50ca5f
* Where do I get the javacc java api document? - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6c8f306325d131f4
* HTTPUnit not working against an https (SSL) site - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8d793f5e72fb7839
* jfreechart - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/706a52d3d94eff
* Setting "root" in Tomcat - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6adf1698a52bbc81
* Full Screen Game - 5 messages, 3 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/512b4296a1e5c69f
* sun.net.ftp.FtpClient - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5862aa0b850dd30e
  
==========================================================================
TOPIC: Problem with double buffering..
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9aeb201d21113d93
==========================================================================

== 1 of 1 ==
Date:   Mon,   Nov 15 2004 12:10 pm
From: Andrew Thompson <[EMAIL PROTECTED]> 

On 15 Nov 2004 10:38:09 -0800, Angelo wrote:

>> With 99% certainty I can say the problem is in your code.
> 
> Yes, is in my code :)

I'm right 99%* of the time.

> I setted the background color with getBackground(), but in the
> tutorial was setted black.

Glad you sorted it.   :-)

> Thanks :)

No worries!  You can always get help from me when it
is *that* easy for me to do.  ;-)

* ..and 68.7% of statistics are made up on the moment.

-- 
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: Returning String[] from C program (JNI)
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7e52caf60c639e7b
==========================================================================

== 1 of 1 ==
Date:   Mon,   Nov 15 2004 11:17 am
From: Gordon Beaton <[EMAIL PROTECTED]> 

On 15 Nov 2004 12:07:13 -0800, Ann wrote:

> How can I return a string[] from a cprogram to a java program?
[...]
> Can someone please suggest? I am not good at C.

Create the array like this:

  jclass sclass = (*env)->FindClass(env, "java/lang/String");
  jobjectArray arr = (*env)->NewObjectArray(env, n, sclass, NULL);

Now you've got an array with space for n Strings, but each position in
the array is empty.

To populate the array, use SetObjectArrayElement() to put a String
reference in each position.

Then simply:

  return arr;

/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: Java on Linux
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b359a0d20324fdbe
==========================================================================

== 1 of 1 ==
Date:   Mon,   Nov 15 2004 12:24 pm
From: Steve Horsley <[EMAIL PROTECTED]> 

Lesley wrote:
> 1. I don't know how to work out if I have the SDK installed or not.
I would probably do $ find / -name javac

> 2. I don't know what the relationship between Blackdown and the Sun
> Java is.  I want to avoid conflicts in example programs.
Can't help there - I've not used Blackdown.

> 3. There used to be a path one had to set to the path of the class
> libraries installed on the machine. How is this managed in Linux?
> Through the PATH environment variable?

I have never set the classpath, and never felt a need.
I suggest that you remove any classpath settings.

For setting your path though, see below. 

> 4.  Have there been any *huge* changes in the language since 2K?  I'm
> using books I bought then.

Yes. 1.5 introduced generics and some other syntax additions.

> 
> TIA for any answers, hints tips etc 
> 
The Sun JDK for Linux comes as a self-extracting binary, that produces
a tarball or an RPM (you choose which to download). This installs the 
files, but not the shell path. I suggest you add this file, to get 
java placed in your path:

/etc/profile.d/java.sh:

if [ -z "$JAVA_HOME" ]; then
  export JAVA_HOME=/usr/java/jdk1.5.0
  export PATH="$PATH:$JAVA_HOME/bin"
fi

Steve




==========================================================================
TOPIC: Distributable libraries?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c8f7365e0f965e0d
==========================================================================

== 1 of 4 ==
Date:   Mon,   Nov 15 2004 12:19 pm
From: Andrew Thompson <[EMAIL PROTECTED]> 

On Mon, 15 Nov 2004 15:08:50 -0500, Eric Sosman wrote:

> Steve Sobol wrote:
>> 
>> Ack. The *entire* 1.4.2 JRE is 40MB. And there are only a few items that Sun 
>> says are optional.
> 
>     What are you measuring (or, how are you measuring it)?
> From the download page for 1.4.2_06, the download sizes are
> 
>       Windows        14.96 MB

That reminds me.  The download comes zipped and compressed, 
rt.jar on the file system is zipped but uncompressed.

HTH

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



== 2 of 4 ==
Date:   Mon,   Nov 15 2004 1:56 pm
From: Steve Sobol <[EMAIL PROTECTED]> 

Eric Sosman wrote:
> Steve Sobol wrote:
> 
>>Ack. The *entire* 1.4.2 JRE is 40MB. And there are only a few items that Sun 
>>says are optional.
> 
> 
>     What are you measuring (or, how are you measuring it)?

Mmmm, I'm not sure why my program directory (c:\program 
files\java\j2re1.4.2_03) has 40MB of stuff in it. I did, in fact, download the 
Windows 1.4.2_06 JRE just earlier today and it is only 15MB.

rt.jar (in this installation) counts for about 25MB of that 40MB total.

-- 
JustThe.net Internet & New Media Services, http://JustThe.net/
Steven J. Sobol, Geek In Charge / 888.480.4NET (4638) / [EMAIL PROTECTED]
PGP Key available from your friendly local key server (0xE3AE35ED)
Apple Valley, California     Nothing scares me anymore. I have three kids.



== 3 of 4 ==
Date:   Mon,   Nov 15 2004 2:08 pm
From: Steve Sobol <[EMAIL PROTECTED]> 

Steve Sobol wrote:

> rt.jar (in this installation) counts for about 25MB of that 40MB total.

OK, so the reason is that it is stored uncompressed.

Can I unarchive it and re-archive it using Winzip on its "maximum compression" 
setting? Will this cause any problems other than slower access to rt.jar?

Or, another solution:

I created a blank ZIP file using Winzip, and using maximum compression, and put 
a copy of rt.jar into it. The ZIP ends up being about 6MB. How about setting up 
an installer that unzips rt.jar at install time?

-- 
JustThe.net Internet & New Media Services, http://JustThe.net/
Steven J. Sobol, Geek In Charge / 888.480.4NET (4638) / [EMAIL PROTECTED]
PGP Key available from your friendly local key server (0xE3AE35ED)
Apple Valley, California     Nothing scares me anymore. I have three kids.



== 4 of 4 ==
Date:   Mon,   Nov 15 2004 2:49 pm
From: Eric Sosman <[EMAIL PROTECTED]> 

Steve Sobol wrote:
> Steve Sobol wrote:
> 
>>rt.jar (in this installation) counts for about 25MB of that 40MB total.
> 
> OK, so the reason is that it is stored uncompressed.
> 
> Can I unarchive it and re-archive it using Winzip on its "maximum 
> compression" 
> setting? Will this cause any problems other than slower access to rt.jar?

    As an old boss of mine used to say, "I'd bet your
life on it."  In other words, I don't know.  There might
(or might not) be a chicken-and-egg problem, something
like the JVM needing some rt.jar-resident classes to
decompress compressed JAR members, that sort of thing.
Why not try it and see?

> Or, another solution:
> 
> I created a blank ZIP file using Winzip, and using maximum compression, and 
> put 
> a copy of rt.jar into it. The ZIP ends up being about 6MB. How about setting 
> up 
> an installer that unzips rt.jar at install time?

    You must distribute all the required pieces of the
JRE, but as far as I can tell it's not required that you
distribute them in the same formats Sun uses.  That is, I
don't think there's anything preventing you from using
your own installer, your own compression techniques, and
your own Black Magic (tm), so long as the target system
gets all the required bits.  IANAL, though, so you might
want to investigate further before sinking a lot of work
into this approach.

-- 
[EMAIL PROTECTED]





==========================================================================
TOPIC: Writing to Word documents
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/63e6214e752428a
==========================================================================

== 1 of 1 ==
Date:   Mon,   Nov 15 2004 12:25 pm
From: [EMAIL PROTECTED] (Lesley) 

"Sebastian Millies" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL 
PROTECTED]>...
> A platform-independent solution would be possible only by directly
> manipulating the MS Word document format. Bad idea - it is not
> publicly documented, and many details may change from version to
> version.
> 
> So you'll be stuck with some kind of a Java-COM bridge, which
> of course, is supported only on the Windows platform. There are
> open source "products" e.g. Jacob, and commercial ones.
> I've worked with Jacob and had reasonable success. However, I'd
> much prefer persuading the customer to use a different document
> format (HTML, PDF, ...).
> 
> -- Sebastian
> 
> "Jonck van der Kogel" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> news:[EMAIL PROTECTED]
> > Hi everybody,
> > I have defined a Word template and set bookmarks at certain locations
> > in this document, to which I then want to write text gotten from a
> > database and save the file. In this way I could create standard
> > documents (for example an invoice) in an automated manner.
> > I have looked into the Jakarta POI project
> > (http://jakarta.apache.org/poi/index.html), but this project is mostly
> > aimed at Excel, Word support is still in its infancy.
> > Another solution that I've found
> > (http://www.must.de/en/default.html?../Javactpe.htm) seems to work
> > very well, but is Windows only.
> > Also there are a few commercial solutions, but these cost several
> > thousand dollars, which I can't afford.
> >
> > I figure such an automated creation of Word documents is probably
> > being done by a lot of people, so therefore I was wondering, does
> > anyone know of a (affordable) way to achieve what I described in a
> > platform independent manner?
> >
> > Thanks very much, Jonck

I agree that the OP will have problems trying to 'tweak' a Word
document from a Java program.  The file format does change with MS
products, hence the probably long forgotten scenario with an update to
the Word package where it meant that previous Word documents could not
actually be read by the new version!

I'd agree that HTML is a reasoanbly platform independent option but
may display differently in different browsers.  Whether you can tweak
the HTML output of a Word document is another matter.  Other than that
take a look at OpenOffice and the way it handles document format and
structure?

Regards

LesleyB




==========================================================================
TOPIC: c output doesn't show up through JNI?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fda661738483db46
==========================================================================

== 1 of 1 ==
Date:   Mon,   Nov 15 2004 12:27 pm
From: "Kay" <[EMAIL PROTECTED]> 

Hi, all:

The standard outputs(screen output) from the c libraray I am using usually 
don't show up or show up very late. I guess it's related to how the c 
library outputs to the standard device, maybe they used buffered stream or 
something. But it's not my code so I cannot change it. Is there anything I 
can do at the Java side to force the c output to show up?

thanks,
-Kay 






==========================================================================
TOPIC: default constructor in Java versus C++
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b0018dff5a806578
==========================================================================

== 1 of 3 ==
Date:   Mon,   Nov 15 2004 12:44 pm
From: Tor Iver Wilhelmsen <[EMAIL PROTECTED]> 

[EMAIL PROTECTED] (Matt) writes:

> Any ideas why Java doesn't support that?

C++ inherits C's /laizzes-faire/ parameter passing, which allows for
arbitrary numbers of method parameters. In Java, a method's parameters
are part of the signature.



== 2 of 3 ==
Date:   Mon,   Nov 15 2004 12:58 pm
From: "Tony Morris" <[EMAIL PROTECTED]> 

(That is what you were referring to, right?)

Yep :)

-- 
Tony Morris
http://xdweb.net/~dibblego/






== 3 of 3 ==
Date:   Mon,   Nov 15 2004 2:59 pm
From: "bilbo" <[EMAIL PROTECTED]> 

> C++ inherits C's /laizzes-faire/ parameter passing, which allows for
> arbitrary numbers of method parameters. In Java, a method's
parameters
> are part of the signature.

This is not true.  C++ is just as strict as Java about the number of
arguments passed to the function matching the number of parameters in
the function declaration.  However, C++ does have a couple of
mechanisms that change this behavior.

1. Default parameter values:  This is the C++ feature, which Java
doesn't have, which the original poster was asking about.   In C++ you
can declare a function like:

ResourceBundle getBundle(String baseName, Locale locale =
Locale.getDefault())

This is equivalent to declaring two functions in Java

ResourceBundle getBundle(String baseName)
ResourceBundle getBundle(String baseName, Locale locale)

Note, it is not like pre-ANSI C where the compiler simply didn't check
the number and type of function arguments.  The C++ compiler will only
allow you to call this with a (String) or (String, Locale) arguments.
I assume Sun left this feature out of Java because it adds complexity
to the language specification because of the need to specify what
happens in situations like:

ResourceBundle getBundle(String baseName);
ResourceBundle getBundle(String baseName, Locale locale =
Locale.getDefault());

getBundle("bundleName");

It's not intuitive which function should be called in this case.
Still, I often find myself missing the default parameter values
feature.

2. The other feature C++ has that Java doesn't (actually Java 1.5 does)
is more a holdover from C, and is not regularly used in C++.  This is
varargs, which allows functions to be declared which take an arbitrary
number and type of arguments.  I wouldn't say that the existence of
this feature justifies your statement though, since it's never used in
the standard C++ library, and is rarely used in any C++ libraries that
I've seen.





==========================================================================
TOPIC: program arguments
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/44d9b350ac879ea0
==========================================================================

== 1 of 2 ==
Date:   Mon,   Nov 15 2004 12:40 pm
From: "John C. Bollinger" <[EMAIL PROTECTED]> 

Henry Law wrote:

> On Mon, 15 Nov 2004 14:08:22 -0500, Jeff Kish <[EMAIL PROTECTED]>
> wrote:
> 
>>I want to pass a parameter to the program.
>>In the debug I add these parameters:
>>"-inputfiles c:\xmlfiles\*.xml"
> 
> I don't know what is meant by "in the debug", but I do know that if
> you were to do this as a UNIX shell command the asterisk would be
> acted upon (expanded as a wild card) before the compiler/debugger even
> saw the command; I suspect the same is true in the Seattle operating
> system.

In fact, the same is _not_ true of Windows, at least not of the standard 
Windows shell.  Try, for instance, telling Windows to "echo *.*". 
Windows takes it quite literally, printing "*.*" (without the quotes). 
That might have something to do with the OP's problem.  On the other 
hand, I think it likely that the problem runs deeper.  Since he was 
originally talking about Eclipse, I suspect the OP is trying to set up 
his program for debugging with Eclipse' integrated debugger; in that 
case, the command is unlikely even see a shell, and thus doubly unlikely 
to have wildcards expanded.


John Bollinger
[EMAIL PROTECTED]



== 2 of 2 ==
Date:   Mon,   Nov 15 2004 1:16 pm
From: Jeff Kish <[EMAIL PROTECTED]> 

On Mon, 15 Nov 2004 19:29:44 +0000, Henry Law <[EMAIL PROTECTED]>
wrote:

>On Mon, 15 Nov 2004 14:08:22 -0500, Jeff Kish <[EMAIL PROTECTED]>
>wrote:
>
>>I want to pass a parameter to the program.
>>In the debug I add these parameters:
>>"-inputfiles c:\xmlfiles\*.xml"
>
>I don't know what is meant by "in the debug", but I do know that if
>you were to do this as a UNIX shell command the asterisk would be
>acted upon (expanded as a wild card) before the compiler/debugger even
>saw the command; I suspect the same is true in the Seattle operating
>system.
>
>Does escaping work in Windows?  That's what you'd do in UNIX.   Maybe
>try 
>
> ... -inputfiles c:\xmlfiles\\*.xml
Well, I'm running on the home version of XP.. I'll try outside of the
debugger.
It just seems awfully strange to have this occur, and I'm not sure, if it is 
an artifact of the debug environment, how to get around it for debugging!

I'll try when I get home and get a sane minute!
Regards,
Jeff Kish




==========================================================================
TOPIC: Java Thread Analysis
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c30c46b2c50ca5f
==========================================================================

== 1 of 3 ==
Date:   Mon,   Nov 15 2004 1:12 pm
From: [EMAIL PROTECTED] (Carl) 

Does anyone know of a tool that can be used to track a thread's
lineage.  We currently have the situation where several thousand
threads will be running in our system.  We believe that some piece of
our code is causing too many threads to spawn.  We have been able to
dump all of the threads and their names but sometimes it isn't useful
due to poor names and/or the threads being third party (such as a
CORBA thread.)  We would like a tool that can tell us which class
started how many of each type of thread so that we may determine what
we can do (if anything) to prevent a "thread leak."

Thank you



== 2 of 3 ==
Date:   Mon,   Nov 15 2004 1:57 pm
From: "Steve W. Jackson" <[EMAIL PROTECTED]> 

In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Carl) wrote:

>:Does anyone know of a tool that can be used to track a thread's
>:lineage.  We currently have the situation where several thousand
>:threads will be running in our system.  We believe that some piece of
>:our code is causing too many threads to spawn.  We have been able to
>:dump all of the threads and their names but sometimes it isn't useful
>:due to poor names and/or the threads being third party (such as a
>:CORBA thread.)  We would like a tool that can tell us which class
>:started how many of each type of thread so that we may determine what
>:we can do (if anything) to prevent a "thread leak."
>:
>:Thank you

I'm not sure how many profiling tools provide this, but Borland's 
OptimizeIt that we use is one that does.  While running our application, 
it will show us all objects in existence, whether Threads or otherwise, 
and will also show their origins -- that is, where they were allocated 
onto the heap.  If the source code is available, as it is in our use, it 
can show the surrounding code where the allocation occurs.

= Steve =
-- 
Steve W. Jackson
Montgomery, Alabama



== 3 of 3 ==
Date:   Mon,   Nov 15 2004 2:08 pm
From: "John C. Bollinger" <[EMAIL PROTECTED]> 

Carl wrote:

> Does anyone know of a tool that can be used to track a thread's
> lineage.  We currently have the situation where several thousand
> threads will be running in our system.

Wow.

>                                                 We believe that some piece of
> our code is causing too many threads to spawn.

That sounds like a safe bet.  You have about two orders of magnitude too 
many live threads for any one program.

>                                                  We have been able to
> dump all of the threads and their names but sometimes it isn't useful
> due to poor names and/or the threads being third party (such as a
> CORBA thread.)  We would like a tool that can tell us which class
> started how many of each type of thread so that we may determine what
> we can do (if anything) to prevent a "thread leak."

If you're hoping to get such an analysis without modifying your code 
then you're out of luck.  Standard Thread objects are in no way bound to 
the object or class that created them, any more than any generic object 
is.  If you do not capture or encode that information into the Thread 
then you cannot later cajole it out of the system.  So, since you have 
to modify the code anyway, the easiest thing to do might be to find 
every place in your code where you instantiate a Thread, and at each 
place make sure to assign the new Thread a meaningful name (i.e. one 
that will support the analysis you wish to perform).


John Bollinger
[EMAIL PROTECTED]






==========================================================================
TOPIC: Where do I get the javacc java api document?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6c8f306325d131f4
==========================================================================

== 1 of 1 ==
Date:   Mon,   Nov 15 2004 1:20 pm
From: Carl Howells <[EMAIL PROTECTED]> 

Andrew Thompson wrote:
> On 15 Nov 2004 11:25:31 -0800, mike wrote:
> 
> It is best to use the latest JavaDocs, 1.5.
> 
> 
>>Where do I get the javacc 
> 
> 
> java'cc'?  I have heard of javac, but not javacc.

Javacc is an LL(k) parser generator, based on ANTLR (IIRC).

As far as where to find docs for it?  I'd use google, myself.




==========================================================================
TOPIC: HTTPUnit not working against an https (SSL) site
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8d793f5e72fb7839
==========================================================================

== 1 of 1 ==
Date:   Mon,   Nov 15 2004 1:39 pm
From: [EMAIL PROTECTED] (Sam) 

I am trying to test a request/response from a https address and
getting the error

java.lang.RuntimeException: https support requires the Java Secure
Sockets Extension. See http://java.sun.com/products/jsse

I have the jdk version 1.4.2_05 which says the JSSE is now part of the
jdk.

I also have 

security.provider.2=com.sun.net.ssl.internal.ssl.Provider 

in my java.security file.

What am I doing wrong?

Thanks in advance

Sam




==========================================================================
TOPIC: jfreechart
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/706a52d3d94eff
==========================================================================

== 1 of 1 ==
Date:   Mon,   Nov 15 2004 2:02 pm
From: "leGrandCigar" <[EMAIL PROTECTED]> 

i am trying to make dynamic chart with jfreechart packet,but have proble
compiling the example MemoryUsage program from the documentation...If
someone have expiriance with this i woukd appriciate if you could help me
with example code and the right version that goes with it...i have actualy
bought the documentation,but constructor for //XYPlot xyplot = new
XYPlot(dataset, domain, range); is diferent in package it takes

public XYPlot() { }
  public XYPlot(XYDataset dataset, ValueAxis domainAxis, ValueAxis
rangeAxis, XYItemRenderer renderer) { }


if someone could help i would appriciate it very much,thank you









==========================================================================
TOPIC: Setting "root" in Tomcat
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6adf1698a52bbc81
==========================================================================

== 1 of 1 ==
Date:   Mon,   Nov 15 2004 1:45 pm
From: Oscar kind <[EMAIL PROTECTED]> 

2kuser <[EMAIL PROTECTED]> wrote:
> Thanks for the leads...Unfortunately I'm new to Tomcat XML config
> files and "contexts" etc and so am still confused. I tried wading
> through the JNDI stuff, but it didn't really tell me what I needed
> either,although, from what I can gather, I think that JNDI might be
> the way to go.

Maybe. But in any case, try to think of it as "there is no default
directory". This is especially handy when writing log files.

Also, JNDI and/or web.xml are excellent places to put configuration
parameters that don't change during the application's lifetime.


-- 
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: Full Screen Game
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/512b4296a1e5c69f
==========================================================================

== 1 of 5 ==
Date:   Mon,   Nov 15 2004 2:18 pm
From: "Mike" <[EMAIL PROTECTED]> 

marcus, I gave you my background so you could better know my skill
level.  In my question, I assumed that dos was a standard that could be
run on most machines (and that if there is a difference on mac, people
who used macs would be able to at least understand my process), I am
sorry if this is not, but to clarify, I am debugging my process in the
XP dos shell.  As far as my gui question goes, I have found several
solutions to that, and am researching each to find what meets my needs.
As for my question on double buffering stratigies, I could still use
some more information.  If anyone has some time to refrence some links,
I would be very appreciative.




== 2 of 5 ==
Date:   Mon,   Nov 15 2004 2:19 pm
From: "Mike" <[EMAIL PROTECTED]> 

marcus, I gave you my background so you could better know my skill
level.  In my question, I assumed that dos was a standard that could be
run on most machines (and that if there is a difference on mac, people
who used macs would be able to at least understand my process), I am
sorry if this is not, but to clarify, I am debugging my process in the
XP dos shell.  As far as my gui question goes, I have found several
solutions to that, and am researching each to find what meets my needs.
As for my question on double buffering stratigies, I could still use
some more information.  If anyone has some time to refrence some links,
I would be very appreciative.




== 3 of 5 ==
Date:   Mon,   Nov 15 2004 2:33 pm
From: Carl <[EMAIL PROTECTED]> 

Mike wrote:

> Sup everyone,
> I'm still only a scenior in highshool, but I am attempting to make
> a full screen version of the board game Triopoly (Monoply with 3 levels
> and a heck of a lot more money going around the table).  I am currently
> in AP Java AB (AP Java 2) and have set up most of the needed classes,
> and am beginning to debug it in dos.  I know how to set up everything
> for a full screen application and I was wondering if anyone could give
> me pointers on double buffering stratigies and how to create custom
> buttons/text boxes/menu/text area graphics.  I intend to have this
> project finished by the end of the year before I go to college
> (depending on how much time the gui/ai take), but I do not know
> everything.
> If anyone could point me to some tutorials or give me some sample
> code pertaining to the methods use to make a graphic skin over the
> buttons/text boxes/menues/text areas I would be very apperciative.
> Thank you very much for you time.
> 
'Sup Mike,

I'm not sure how basic/advanced of a tutorial you are looking for, but 
you may want to start here:
http://java.sun.com/docs/books/tutorial/extra/fullscreen/

And some other interesting articles can be found here:
http://onesearch.sun.com/search/developers/index.jsp?uid=6910018&charset=utf-8&qt=double+buffering

HTH,
Carl.

P.S.
Dont feed the trolls.



== 4 of 5 ==
Date:   Mon,   Nov 15 2004 3:04 pm
From: Todd Carnes <[EMAIL PROTECTED]> 

marcus wrote:
> I decided to reply before reading andrew's responses, so consider this a 
> less friendly enhancement.
> 
> Mike wrote:
> 
>> Sup everyone,
>> I'm still only a scenior
> 
> 
> spelling, and frankly I don't care

<snip>

There really was no reason to be rude and obnoxious to the kid. He 
wasn't hurting you.

If you didn't have any REAL help to offer him, you could have just 
ignored his post and moved on to something that DID interest you.

I have teenage sons myself & quite frankly I had no problem 
understanding his request. He sounded like every other teenager out 
there. In fact, he was a lot more polite than many I have run into.

Frankly, if you would "ream" your son for such a harmless post as the 
one Mike posted, then I feel sorry for your son.



== 5 of 5 ==
Date:   Mon,   Nov 15 2004 3:09 pm
From: Todd Carnes <[EMAIL PROTECTED]> 

Carl wrote:
> 
> P.S.
> Dont feed the trolls.

I think I just did. :)




==========================================================================
TOPIC: sun.net.ftp.FtpClient
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5862aa0b850dd30e
==========================================================================

== 1 of 1 ==
Date:   Mon,   Nov 15 2004 2:39 pm
From: "A. Bolmarcich" <[EMAIL PROTECTED]> 

On 2004-11-15, Neeraj Vibhasrao Kulkarni <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am new to this group.. and was wondering if there are any documentation
> or api references for the sun.net.ftp.FtpClient class..?

There is no official documentation for the sun.net.ftp.FtpClient class.
>
> basically i want to know all the methods that i can use and their
> description..

You should not directly use any of the methods.  The sun.* packages
are not part of the supported public interface.  They are used
internally by some versions of Java to implement the public interface.
For more information, see

  http://java.sun.com/products/jdk/faq/faq-sun-packages.html



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

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