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

Today's topics:

* Applet and .jar files - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e2d57dc6d0a11bb3
* Sort Array Problem - 8 messages, 6 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cc8b01c6cee7f666
* extend String (somehow!) - 5 messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fb8af609ea6a3afb
* JSP File Viewer Problem: Error 404 - 2 messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/46d57eb9a5e3f8f1
* .NET Programmer Needs To Learn Java - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b99c5dff939a0cea
* Successor to Java? - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9151fedffecef56b
* Regular Expression finder - 2 messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/34a515f2f676856a
* RMI client behind a firewall, server behind a firewall too - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/898ce13af69b8972
* Cut and paste images - 3 messages, 3 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5232cf428b9e3a4a
* Java applet failed when I try to load the avi file in my java applet - 1 messages, 1 
author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/eee0d2c54a4b7feb
* Where do I set the debug level for LOG4J in Websphere/Eclipse ? - 1 messages, 1 
author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b75206e9004c3ee7
  
==========================================================================
TOPIC: Applet and .jar files
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e2d57dc6d0a11bb3
==========================================================================

== 1 of 1 ==
Date:   Tues,   Sep 14 2004 11:38 am
From: Thomas Fritsch <[EMAIL PROTECTED]> 

Marcin Siewiera schrieb:
> I wrote an applet(board game) which is loaded from .jar file. The
> applet is loading somehow too slow, its just 120 kB. I reckon the
> reason is the applet is getting what it needs from .jar, and as i load
> images one by one it takes a while... Is there any way to download
> whole .jar when applet starts?
The browser *does* already dowload the whole .jar anyway, when the 
applet starts. ==> The cause of the experienced slowlyness of your image 
loading is somewhere else.
> 
> I access images with
> 
>   URL path=null;
>       try{
>         path=getClass().getResource("/game/images/"+filename);
>         image=Toolkit.getDefaultToolkit().getImage(path);
>         MediaTracker imgTrack=new MediaTracker(parent);
> 
>         imgTrack.addImage(image,0);
>         // waits until board image is loaded
>         try {
>           imgTrack.waitForAll();
>         }
>         catch (InterruptedException e) {
>         }
> 
> 
Do you load one image after the other, or all images in parallel?
I guess you do the first (although you didn't post the looping part of 
your code). The second approach will probably give better performance.

> applet's URL www.bescres.net/play_html.htm (U need JRE 1.42 to run
> applet correctly)
> I appreciate any suggestions

<angry>
Your silly applet did not allow me to close the modal pop-up dialog, 
therefore I was not able to close my browser (or leave your web-page), 
except by killing the browser with the task-manager.
</angry>

-- 
Thomas<dot>Fritsch<squiggle>ops<dot>de





==========================================================================
TOPIC: Sort Array Problem
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cc8b01c6cee7f666
==========================================================================

== 1 of 8 ==
Date:   Tues,   Sep 14 2004 11:25 am
From: [EMAIL PROTECTED] (Jenny) 

I tried the code below.  It did not work.  I even created an Object[]
to hold Integers 1,2 and 3, it still did not work.  Could you help me
to sort 1,2,3 to be 3,2,1?  I know how to write code to sort it.  I'd
like to learn the Comparator.  Thanks a lot.

Comparator myComp = new Comparator(){
    public int compare(Object o1, Object o2){
      int[] a1 = (int[])o1;
      int[] a2 = (int[])o2;
      if(a1[0] < a2[0]){
        return 1;
      }else if(a1[0] > a2[0]){
        return -1;
      }else{
        return 0;
      }
    }
  };
  int ans[] = {1,2,3};
  Arrays.sort(ans,myComp);



== 2 of 8 ==
Date:   Tues,   Sep 14 2004 11:54 am
From: Paul Lutus <[EMAIL PROTECTED]> 

Jenny wrote:

> I tried the code below.  It did not work.

No, it didn't compile. Make it compile, then make a statement about how it
works or doesn't. Hint: Arrays.sort() cannot sort arrays of primitives.

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




== 3 of 8 ==
Date:   Tues,   Sep 14 2004 12:14 pm
From: Sudsy <[EMAIL PROTECTED]> 

Paul Lutus wrote:
> Jenny wrote:
> 
>>I tried the code below.  It did not work.
> 
> No, it didn't compile. Make it compile, then make a statement about how it
> works or doesn't. Hint: Arrays.sort() cannot sort arrays of primitives.

Um, better check your javadocs...




== 4 of 8 ==
Date:   Tues,   Sep 14 2004 12:25 pm
From: jungi <[EMAIL PROTECTED]> 

Paul Lutus wrote:
> Jenny wrote:
> 
> 
>>I tried the code below.  It did not work.
> 
> 
> No, it didn't compile. Make it compile, then make a statement about how it
> works or doesn't. Hint: Arrays.sort() cannot sort arrays of primitives.

Really? What about eg. 
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Arrays.html#sort(double[])

--jungi



== 5 of 8 ==
Date:   Tues,   Sep 14 2004 12:26 pm
From: jungi <[EMAIL PROTECTED]> 

Hello Jenny,

Jenny wrote:
> I tried the code below.  It did not work.  I even created an Object[]
> to hold Integers 1,2 and 3,  it still did not work.  Could you help me
> to sort 1,2,3 to be 3,2,1?  I know how to write code to sort it.  I'd
> like to learn the Comparator.  Thanks a lot.
> 
> Comparator myComp = new Comparator(){
>     public int compare(Object o1, Object o2){
>       int[] a1 = (int[])o1;
>       int[] a2 = (int[])o2;
>       if(a1[0] < a2[0]){
>         return 1;
>       }else if(a1[0] > a2[0]){
>         return -1;
>       }else{
>         return 0;
>       }
>     }
>   };
>   int ans[] = {1,2,3};
>   Arrays.sort(ans,myComp);

if you want to learn comparator yourself, see:
tutorial:
http://java.sun.com/docs/books/tutorial/collections/interfaces/order.html

API:
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Comparable.html
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collections.html#reverseOrder()
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Arrays.html#sort(java.lang.Object[],%20java.util.Comparator)

--jungi



== 6 of 8 ==
Date:   Tues,   Sep 14 2004 12:46 pm
From: "ak" <[EMAIL PROTECTED]> 

> > I tried the code below.  It did not work.
>
> No, it didn't compile. Make it compile, then make a statement about how it
> works or doesn't. Hint: Arrays.sort() cannot sort arrays of primitives.

As I alredy said, read some java stuff...

-- 
Andrei Kouznetsov
http://uio.dev.java.net Unified I/O for Java
http://reader.imagero.com Java image reader





== 7 of 8 ==
Date:   Tues,   Sep 14 2004 12:30 pm
From: "Fred L. Kleinschmidt" <[EMAIL PROTECTED]> 



Jenny wrote:
> 
> I tried the code below.  It did not work.  I even created an Object[]
> to hold Integers 1,2 and 3, it still did not work.  Could you help me
> to sort 1,2,3 to be 3,2,1?  I know how to write code to sort it.  I'd
> like to learn the Comparator.  Thanks a lot.
> 
> Comparator myComp = new Comparator(){
>     public int compare(Object o1, Object o2){
>       int[] a1 = (int[])o1;
>       int[] a2 = (int[])o2;
>       if(a1[0] < a2[0]){
>         return 1;
>       }else if(a1[0] > a2[0]){
>         return -1;
>       }else{
>         return 0;
>       }
>     }
>   };
>   int ans[] = {1,2,3};
>   Arrays.sort(ans,myComp);

No, this is not correct. The Arrays class has a sort method for sorting
arrays of objects. An array of ints is not an array of objects.

You have two choices. You can sort the integer array using
Arrays.sort(ans) and then reverse the order of the items in the array to
get them in descending order,

 -- or --

you can create an Integer array, and sort it using Arrays.sort(Object[],
Comparator).
Note the capital "I" in Integer - this is a class, where integer is not.
-- 
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Common User Interface Services
M/S 2R-94  (206)544-5225



== 8 of 8 ==
Date:   Tues,   Sep 14 2004 12:58 pm
From: Paul Lutus <[EMAIL PROTECTED]> 

Paul Lutus wrote:

> Jenny wrote:
> 
>> I tried the code below.  It did not work.
> 
> No, it didn't compile. Make it compile, then make a statement about how it
> works or doesn't. Hint: Arrays.sort() cannot sort arrays of primitives.

I posted too concisely for the trolls. I meant to say, apropos the OP's goal
of learning Comparator:

Arrays.sort(Object[],Comparator) cannot sort arrays of primitives.

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





==========================================================================
TOPIC: extend String (somehow!)
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fb8af609ea6a3afb
==========================================================================

== 1 of 5 ==
Date:   Tues,   Sep 14 2004 11:40 am
From: "ak" <[EMAIL PROTECTED]> 

> Joona I Palaste wrote:
>
> > Paul Lutus <[EMAIL PROTECTED]> scribbled the following:
> >> Ike wrote:
> >>> its a shame I cannot extend
> >>> String somehow to be ascii 13 terminated!
> >
> >> There are reasons you should not do this, but you certainly can if you
> >> want. Just extend String and create a new "toString()" method that does
> >> what you want.
> >
> > And how exactly do you suppose he can "just extend String"?
>
> My mistake -- String is final, yes? Okay, then, a class that exploits a
> String rather then extends the String class. Same basic point.

wow! Paul admitted that he made mistake!

-- 
Andrei Kouznetsov
http://uio.dev.java.net Unified I/O for Java
http://reader.imagero.com Java image reader





== 2 of 5 ==
Date:   Tues,   Sep 14 2004 11:42 am
From: Paul Lutus <[EMAIL PROTECTED]> 

ak wrote:

>> Joona I Palaste wrote:
>>
>> > Paul Lutus <[EMAIL PROTECTED]> scribbled the following:
>> >> Ike wrote:
>> >>> its a shame I cannot extend
>> >>> String somehow to be ascii 13 terminated!
>> >
>> >> There are reasons you should not do this, but you certainly can if you
>> >> want. Just extend String and create a new "toString()" method that
>> >> does what you want.
>> >
>> > And how exactly do you suppose he can "just extend String"?
>>
>> My mistake -- String is final, yes? Okay, then, a class that exploits a
>> String rather then extends the String class. Same basic point.
> 
> wow! Paul admitted that he made mistake!

Are you serious? I admit mistakes all the time. The only requirement is that
it be a mistake. Use Google to disabuse yourself of your present
misconception.

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




== 3 of 5 ==
Date:   Tues,   Sep 14 2004 11:51 am
From: "ak" <[EMAIL PROTECTED]> 

> >> My mistake -- String is final, yes? Okay, then, a class that exploits a
> >> String rather then extends the String class. Same basic point.
> >
> > wow! Paul admitted that he made mistake!
>
> Are you serious?
I am ironical

> I admit mistakes all the time. The only requirement is that
> it be a mistake.
However THIS mistake (java basics) says very much...

> Use Google to disabuse yourself of your present
> misconception.
I saw shortly very long thread, where you was unable to do it.

-- 
Andrei Kouznetsov
http://uio.dev.java.net Unified I/O for Java
http://reader.imagero.com Java image reader





== 4 of 5 ==
Date:   Tues,   Sep 14 2004 11:58 am
From: Paul Lutus <[EMAIL PROTECTED]> 

ak wrote:

>> >> My mistake -- String is final, yes? Okay, then, a class that exploits
>> >> a String rather then extends the String class. Same basic point.
>> >
>> > wow! Paul admitted that he made mistake!
>>
>> Are you serious?
> I am ironical
> 
>> I admit mistakes all the time. The only requirement is that
>> it be a mistake.
> However THIS mistake (java basics) says very much...

It says what it says. No more, no less.

>> Use Google to disabuse yourself of your present
>> misconception.
> I saw shortly very long thread, where you was unable to do it.

I was right, moron. Now stop simultaneously trolling and stalking -- do one
or the other.

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




== 5 of 5 ==
Date:   Tues,   Sep 14 2004 12:43 pm
From: "ak" <[EMAIL PROTECTED]> 

> >> >> My mistake -- String is final, yes? Okay, then, a class that
exploits
> >> >> a String rather then extends the String class. Same basic point.
> >> >
> >> > wow! Paul admitted that he made mistake!
> >>
> >> Are you serious?
> > I am ironical
> >
> >> I admit mistakes all the time. The only requirement is that
> >> it be a mistake.
> > However THIS mistake (java basics) says very much...
>
> It says what it says. No more, no less.
It says that you are relative new to java.
But instead of reading some java stuff you trying to teach others... Bad
idea.

> >> Use Google to disabuse yourself of your present
> >> misconception.
> > I saw shortly very long thread, where you was unable to do it.
>
> I was right, moron. Now stop simultaneously trolling and stalking -- do
one
> or the other.
Don't speak to yourself.

-- 
Andrei Kouznetsov
http://uio.dev.java.net Unified I/O for Java
http://reader.imagero.com Java image reader






==========================================================================
TOPIC: JSP File Viewer Problem: Error 404
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/46d57eb9a5e3f8f1
==========================================================================

== 1 of 2 ==
Date:   Tues,   Sep 14 2004 11:34 am
From: kaeli <[EMAIL PROTECTED]> 

In article <[EMAIL PROTECTED]>, 
[EMAIL PROTECTED] enlightened us with...
> I have a JSP page that allows to select a file, and it will displays
> the file. However, it
> has Error 404 in fileview2.jsp. What did I miss here? please help.
> thanks!!
> 
> //fileview.jsp
> <FORM ACTION="fileview2.jsp" method="POST">
> <P><input type="FILE" name="filename">

This selects a file from the user's HD and uploads the content. Is that what 
you want?

> <P><input type="submit">
> 
> //fileview2.jsp
> <% 
> //Error 404: File not found: uploaddoc/C:/file.doc 
>       String filename = request.getParameter("filename");

Um, I don't think this isn't how one processes a type=file thing, since a 
file would be multipart form data, not a string.
Since the last I tried was in ASP, I could be wrong with JSP, but I don't 
think this is right if you're trying to get a file from the user. You'd need 
an input stream, I think.

>       response.addHeader("content-type", "text/plain");
>       response.sendRedirect(filename);
> %>
> 

What exactly are you trying to do here?

-- 
--
~kaeli~
No one is listening until you make a mistake.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace




== 2 of 2 ==
Date:   Tues,   Sep 14 2004 11:45 am
From: Sudsy <[EMAIL PROTECTED]> 

Matt wrote:
> I have a JSP page that allows to select a file, and it will displays
> the file. However, it
> has Error 404 in fileview2.jsp. What did I miss here? please help.
> thanks!!
> 
> //fileview.jsp
> <FORM ACTION="fileview2.jsp" method="POST">

Add this:
enctype="multipart/form-data"

> <P><input type="FILE" name="filename">
> <P><input type="submit">
> 
> //fileview2.jsp
> <% 
> //Error 404: File not found: uploaddoc/C:/file.doc 
>       String filename = request.getParameter("filename");
>       response.addHeader("content-type", "text/plain");
>       response.sendRedirect(filename);
> %>

You need a content handler for the upload. There's one in Jakarta
commons and also in Struts.





==========================================================================
TOPIC: .NET Programmer Needs To Learn Java
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b99c5dff939a0cea
==========================================================================

== 1 of 1 ==
Date:   Tues,   Sep 14 2004 11:31 am
From: kaeli <[EMAIL PROTECTED]> 

In article <[EMAIL PROTECTED]>, scorpion_53061
@nospamhereeveryahoo.com enlightened us with...
> Hello,
> 
> I am a vb.net programmer. That being said I have been forced to conclude I 
> need to learn java ...
> 

Why?

As a junior-level Java programmer beginning in .NET, I'm being forced to 
conclude that if I had a choice, I'd use .NET every time. Everything that 
took me forever to figure out how to do in Java takes 3 seconds to do in 
.NET.
Problem is, of course, that it doesn't work in Unix, and that's what I'm 
stuck with.
Note that I'm pretty much a beginner in both languages and my background is 
web apps and small command-line programs, so I was already used to 
ASP/VBScript and C and am not really considering things that others might 
consider when comparing the two. I'm just talking how easy it was for me to 
do what I needed to do, quickly.
I'm asking because I'd love to hear some advantages to using Java that I 
haven't thought of. I've been very frustrated lately.  :)

> Some questions:
> 
> 1. Is there a low cost way to learn, compile and develop for this langauge? 
> (aka Visual Studio but not costing an arm and a leg like this platform)
> 

If you are used to Unix apps, Eclipse is supposedly very nice. Lots of people 
love it. I hated it.
If you are used to Windows apps (as I am), JBuilder has a free version that I 
like a lot.

> 2. Can programs written here run on AIX 5.1 (non DB2 environment)?  is there 
> a specific install I need to do to make these programs work on AIX 5.1?
> 

Beats the holy heck outta me, but someone else answered this one.

> 3. I believe they use .idx files for their database structure. Can Java be 
> of use in reading, modifying and inserting data into these environments?
> 

Anything you can find a driver for, it can read.
No nice ADO with datasources here. You have to actually go find a driver, 
install it somewhere along your classpath, and set up a DB connection. You 
*could* use JDBC/ODBC (closer to ADO), but by all accounts I've read, it 
sucks.
The drivers, by the way, seem to be provided by the DB people. I had to go 
get one from Oracle. It didn't come from Sun. The driver for Oracle is like 
classes111.zip or something, so don't be looking for the same stuff you 
download to make a datasource for .NET, 'cuz that's not it.  :)

> 4. What is the java equivalent (if there is one) to ADO.NET?
> 

There is none. At least nothing I've found. If someone knows of one, I'd love 
to know about it, b/c ADO makes life a LOT simpler for me.

> 5. Am I looking at a huge learning curve?
> 

If you've ever used C++ in a real OOP way, not too huge, probably. Otherwise, 
IMO, yes.
I'm picking up .NET like *that*, yet I'm still having a hard time with some 
aspects of java.
It took me 3 minutes to set up a DB connection to a point where I could 
read/write to the DB with .NET. It took me over a week when I first started 
with Java to get everything as I needed it, because I didn't have the right 
drivers and so on.
So, I guess it depends on if you have help, what your background is, and so 
on.

-- 
--
~kaeli~
Kill one man and you are a murderer. Kill millions and you 
are a conqueror. Kill everyone and you are God. 
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace





==========================================================================
TOPIC: Successor to Java?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9151fedffecef56b
==========================================================================

== 1 of 1 ==
Date:   Tues,   Sep 14 2004 12:03 pm
From: "George W. Cherry" <[EMAIL PROTECTED]> 

"George W. Cherry" <[EMAIL PROTECTED]> wrote in
message news:[EMAIL PROTECTED]
> Is the successor to Java on anyone's horizon?
> Prentice-Hall published four of my books which
> featured languages (now defunct) which I loved
> and embraced--Pascal and Ada. While three
> of those books sold very well in the early '80's,
> they are now out of print and recently the MIT
> engineering library "warehoused" two of them,
> because they had not been checked out for a
> decade.
>
> I'm writing a new book, currently using Java.
>
> http://sdm.book.home.comcast.net
>
> By the time I finish it (2009?), will Java be an
> anachronism like Pascal and Ada?

Thanks for all the responses which I've read,
appreciated, and sometimes read twice.

Incidentally, the book project is not ABOUT
Java--it's about Situation-Driven Modeling
in Software Engineering (as one responder
pointed out).

BTW, Java is firmly ensconced at MIT. I just did
a search for "Java" in MIT's OCW* initiative,
and I got 382 page hits. While a few of these
hits may be about coffee or the Indonesian
Island, most of them are about the program-
ming language Java. (Certainly "Java Junkies"
in a Sloan School marketing course is about
coffee.)

But C# has had some adoptions also. Here's
a description from a "Foundations of Soft-
ware Engineering" course:

Foundations of Software Engineering"Course Description:

This is a foundation subject in modern software development techniques for
engineering and information technology. The design and development of
component-based software (using C# and .NET) is covered; data structures and
algorithms for modeling, analysis, and visualization; basic problem-solving
techniques; web services; and the management and maintenance of software.
Includes a treatment of topics such as sorting and searching algorithms; and
numerical simulation techniques. Foundation for in-depth exploration of
image processing, computational geometry, finite element methods, network
methods and e-business applications. This course is a core requirement for
the Information Technology M. Eng. program.



*OCW (Open Course Ware) is a free and open
educational resource for faculty, students, and self-
learners around the world.

http://ocw.mit.edu/OcwWeb/index.htm







==========================================================================
TOPIC: Regular Expression finder
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/34a515f2f676856a
==========================================================================

== 1 of 2 ==
Date:   Tues,   Sep 14 2004 12:25 pm
From: "sks" <[EMAIL PROTECTED]> 


"David Hilsee" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "Joe Smith" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hi,
> >
> > does anyone know of a tool that would be able to extract the regular
> > expression that corresponds to a set of Strings?
> >
> > For instance:
> >
> > This tool, given
> > "abc", "aec", "akkc"
> > would return a regular expression like "a.+c"
> >
> > Is this possible? Is it done?
>
> _The_ regular expression?  There are an infinite number of regular
> expressions that match those strings.  Even if there were a tool that
could
> guess at a regex using heuristics, you'd still need to examine its output
to
> ensure that its result meets your needs.
>
> Personally, I'd prefer using something that can quickly test the regexes
> that your brain comes up with.  The Komodo IDE had such a feature that I
> found quite helpful.  I haven't seen anything like it in other IDEs,
though.

There's a plug in for Eclipse, you'd have to search for it on google though.





== 2 of 2 ==
Date:   Tues,   Sep 14 2004 1:00 pm
From: Carl Howells <[EMAIL PROTECTED]> 

Michael Borgwardt wrote:

> public String getRegexp(String[] strings){
>     StringBuffer result = new StringBuffer("(");
>     for(int i=0; i<strings.lenght; i++){
>         result.append(strings[i]+"|");
>     }
>     result.setCharAt(result.length()-1, ')');
>     return result.toString();
> }
> 
> (you'd have to add escape sequences for characters that have
> meaning in regexps)

Last I checked, the java regex engine is pretty bad for that...  It uses 
recursion to build the automaton used for matching, which recurses too 
deeply on an alternation with a few thousand options, throwing an exception.




==========================================================================
TOPIC: RMI client behind a firewall, server behind a firewall too
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/898ce13af69b8972
==========================================================================

== 1 of 1 ==
Date:   Tues,   Sep 14 2004 12:38 pm
From: "heidi" <[EMAIL PROTECTED]> 

"Alexander Ames" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I believe it can be done through HTTP tunnelling.

The OP wanted to do callbacks to the client. The HTTP tunnelling will not
allow that.






==========================================================================
TOPIC: Cut and paste images
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5232cf428b9e3a4a
==========================================================================

== 1 of 3 ==
Date:   Tues,   Sep 14 2004 12:46 pm
From: [EMAIL PROTECTED] (Esteban) 

Hi.
I need help very urgent.
I need to paste an image (from autocad) to a Java frame, using copy & paste.
And after that, save it in a database (oracle)
It is possible ??

Thanks in advance.
Esteban



== 2 of 3 ==
Date:   Tues,   Sep 14 2004 1:01 pm
From: Tor Iver Wilhelmsen <[EMAIL PROTECTED]> 

[EMAIL PROTECTED] (Esteban) writes:

> I need to paste an image (from autocad) to a Java frame, using copy & paste.
> And after that, save it in a database (oracle)
> It is possible ??

Yes.



== 3 of 3 ==
Date:   Tues,   Sep 14 2004 1:04 pm
From: "ak" <[EMAIL PROTECTED]> 

> I need help very urgent.
> I need to paste an image (from autocad) to a Java frame, using copy &
paste.
> And after that, save it in a database (oracle)
> It is possible ??
yes.

//first get system clipboard
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();

//get transferable
Transferable transferable = clipboard.getContents();

//check data
DataFlavor[] flavors = transferable.getTransferDataFlavors();

//choose right flavor (something with "java/image" mime type? - sorry I
forgot it - try to print mime types of all DataFlavors)
//and get object
Object o =  transferable.getTransferData(flavor);

-- 
Andrei Kouznetsov
http://uio.dev.java.net Unified I/O for Java
http://reader.imagero.com Java image reader






==========================================================================
TOPIC: Java applet failed when I try to load the avi file in my java applet
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/eee0d2c54a4b7feb
==========================================================================

== 1 of 1 ==
Date:   Tues,   Sep 14 2004 12:58 pm
From: [EMAIL PROTECTED] (Krista) 

Hi, you mean I should post the question in comp.lany.java.help? I just
copy the file from java.sun.com and try to compile it. But it doesn't
work. It makes me headaches. Do you put the right location? Should I
put the .class file and the .avi file at the same place such as
desktop? Thanks



Andrew Thompson <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> On 13 Sep 2004 16:20:14 -0700, Krista wrote:
> 
> >    I am a new person in Java and JMF. I tried to use 
> > HTML to run the class of the SimplePlayerApplet.java 
> 
> I will help you further if you make a post
> on the group for those starting in Java 
> programming, further described here..
> <http://www.physci.org/codes/javafaq.jsp#cljh>
> 
> But what?  You're a 
> 1) beginner
> 2) dealing with applets
> 3) that require an extra package.
> 
> You have some stress ahead.   ;-)




==========================================================================
TOPIC: Where do I set the debug level for LOG4J in Websphere/Eclipse ?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b75206e9004c3ee7
==========================================================================

== 1 of 1 ==
Date:   Tues,   Sep 14 2004 1:04 pm
From: [EMAIL PROTECTED] (Tobias Merler) 

I have a couple of log.debug(...) and log.info(...) statements in my java code.
Where do I set the general and the package specific debug levels in Websphere/Eclipse?

Tobias




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

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 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/BCfwlB/TM
--------------------------------------------------------------------~-> 

<a href=http://English-12948197573.SpamPoison.com>Fight Spam! Click Here!</a> 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/kumpulan/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to