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

Today's topics:

* Logging analysis tool - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d63d01c83c4662e3
* How to exclude a string using regexp pattern? - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e2c5860c47dc5d15
* anyone use the zeus webserver? - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a89ec7451984d0f0
* Custom paint in JScrollPane - 8 messages, 4 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ee45b5808b7ee9ef
* CORBA string_to_object on local - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/457627fb64d84a15
* Struts validator is not working - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5b2dc528ed5c883d
* Http to port different than 80? - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/83c9369f58ffcd00
* Need as much help as possible - 2 messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7c8e64b34d7154d8
* Thread-question - 2 messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5766e179910e25fa
* JUSB compiling in Windows (Netbeans) - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c92c2640d80e46b9
* How to paint in Component Graphics? - 1 messages, 1 author
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c10fbaedc6c93664
* Java 1.5.0 and CORBA - 3 messages, 2 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b819ede31037c548
* Scope of static variables - 4 messages, 3 authors
  
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e14b4fda096d84c5
  
==========================================================================
TOPIC: Logging analysis tool
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d63d01c83c4662e3
==========================================================================

== 1 of 1 ==
Date:   Fri,   Nov 12 2004 6:08 am
From: Thomas Weidenfeller <[EMAIL PROTECTED]> 

Victor wrote:
> 1. Get the input from a text log file
> 2. Able to filter out the other irrelevant content and only grab the
> content based on your pre-defined regular expression
> 3. Then marshal all the numerical data from the content it grabbed
> into an Excel spread sheet
> 4. Then we can use the Excel spread sheet to generate the charts...

perl or awk or another scripting language. A few lines of scripting code 
to generate CSV output. If it doesn't have to be excel-generated 
graphics, pipe the output of the script into a tool like gnuplot.

/Thomas




==========================================================================
TOPIC: How to exclude a string using regexp pattern?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e2c5860c47dc5d15
==========================================================================

== 1 of 1 ==
Date:   Fri,   Nov 12 2004 6:30 am
From: "Chris Uppal" <[EMAIL PROTECTED]> 

Victor wrote:

> From the following log.txt file, if I want to remove the other strings
> but to keep the "[GC 84000K->74959K(88984K), 0.0250350 secs]" string:

I think you may be approaching it from the wrong direction -- you don't want to
remove the other strings, but to retain the stuff in []s.

For instance, if the input data is:

    hello [there] everyone

and the pattern is:

    .*\[(.*)\].*

and the replacement string is:

    $1

then the output should be:

    there

I've deliberately only included the that are \ needed in the raw regexp
data, if you are typing these in as Java source String literals, then you'll
need to escape the \s.  You may also need to do something similar in the
XML-ish format you used.  (And, of course, I'm assuming that the substitution
expressed in your XML ends up being implemented by the standard Java regexp
engine; if not then most/all regexp engines have some similar feature which you
should be able to find once you know what you are looking for).

The regexp itself is also oversimplified (just for clarity -- or what passes
for clarity when regexps are involved).  The important point is that the stuff
matched by the bracketed expression is saved, and can be accessed in the
replacement string by using $<number>.  See the regexp docs for more details.

    -- chris







==========================================================================
TOPIC: anyone use the zeus webserver?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a89ec7451984d0f0
==========================================================================

== 1 of 1 ==
Date:   Fri,   Nov 12 2004 6:31 am
From: "Tim Ward" <[EMAIL PROTECTED]> 

"Ryan Gaffuri" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> They claim to be the number #3 webserver behind weblogic and
> websphere. How does it compare to those and to tomcat and resin?

I gather it's targetted at high data volumes, and I'm told by someone who
used to work there that it's a favourite of pornographers because it can
shift high resolution images quickly and efficiently.

--
Tim Ward
Brett Ward Limited - www.brettward.co.uk






==========================================================================
TOPIC: Custom paint in JScrollPane
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ee45b5808b7ee9ef
==========================================================================

== 1 of 8 ==
Date:   Fri,   Nov 12 2004 6:32 am
From: Thomas Richter <[EMAIL PROTECTED]> 

Hi,

> What is a 'Tree'?  (And why are you so sure it is 'right now'?)

Nothing that is really important right here. All it does is basically:

g.drawImage(bi,x,y,io);

where g is the Graphics object (from above),
bi is a buffered image,
x and y are coordinates (here always 0,0)
and io is the image observer.

Nothing else happens in there. A tree is a collection of renderable
buffered images that are drawn in a nice way, but as far as graphics
manipulations are concerned, the above line is pretty much all of it.

So long,
        Thomas



== 2 of 8 ==
Date:   Fri,   Nov 12 2004 6:38 am
From: Thomas Richter <[EMAIL PROTECTED]> 

Hi,

>>             setSize(w,h);
>                ^^^^^^^^^^^^           
> The above code is superfluous if you're adding your component to any 
> container with a LayoutManager present.

In fact, removing or adding it didn't make any difference. It was added
here because I tried whether the problem would be layout related.

>> Now, everything is fine as long as I add this to the top level content
>> pane of a JFrame - it's rendered correctly. However, as soon as I add
>> this into a JScrollPane, trouble begins. The image gets rendered, but
>> something then erases the image again with the default grey background,
>> writing on top of my rendered image. I've already tried to set the
>> JScrollPane to non-opaque, but no go. Any idea what's going on here?

> I would bet it has something to do with what you're doing in the draw
> method of your Tree class. 

Nothing, really: Basically, it is this line:

g.drawImage(bi,x,y,io);

where g is the graphics object (unaltered from above),
bi is a buffered image (yes, this one is filled correctly)
x and y are the anchor coordinates and here always 0,0,
io is the image observer, also used unaltered from the above:

This is the full code:

 public void draw(Graphics g,int x,int y,ImageObserver io)
    {
            g.drawImage(source.getImage(),x,y,io);
    }

source.getImage() returns a buffered image. Given the fact that
it works fine without the JScrollPane and I haven't altered any
code related to this "Tree" class, I'd say that the BufferedImage
is fine.

> (And also the fact that your draw method
> should require a reference to the ImgPanel in addition to the Graphics
> context 

Why should it? I don't understand, please explain. The graphics context 
should be the graphics of the panel I'm part of, thus rendering into it
should render the graphics in the right spot. Which other graphics context
should I render into instead?

> makes me very suspicious that you're doing something naughty
> with the code in there :-))

If so, please enlighten me. I don't get it, sorry.

So long,
        Thomas



== 3 of 8 ==
Date:   Fri,   Nov 12 2004 6:41 am
From: "Chris Uppal" <[EMAIL PROTECTED]> 

Thomas Richter wrote:

> However, as soon as I add
> this into a JScrollPane, trouble begins. The image gets rendered, but
> something then erases the image again with the default grey background,
> writing on top of my rendered image.

How are you adding it to the JScrollPane ?  I had a quick try at reproducing
this, but it worked perfectly for me.  I'll append the test code in case it's
any use for comparison.

    -- chris

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

import java.awt.*;
import javax.swing.*;

class ImagePanel
extends JPanel
{
 private final Tree m_tree;

 public ImagePanel(Tree tree)
 {
  super(false);
  m_tree = tree;
  int w = tree.getWidth();
  int h = tree.getHeight();
  setSize(w, h);
  setPreferredSize(new Dimension(w, h));
  setOpaque(false);
 }

 public void
 paintComponent(Graphics g)
 {
  m_tree.draw((Graphics2D)g, 0, 0, this);
 }
}


class Tree
{
 private final int m_width, m_height;

 Tree(int width, int height)
 {
  m_width = width;
  m_height = height;
 }

 public int getWidth() { return m_width; }
 public int getHeight() { return m_height; }

 public void
 draw(Graphics2D g, int x, int y, Object thing)
 {
  Polygon poly = new Polygon();
  poly.addPoint(x + m_width / 2, y);
  poly.addPoint(m_width, y + m_height);
  poly.addPoint(x, y + m_height);
  g.fill(poly);
 }
}


public class Test
{
 public static void
 main(String[] args)
 {
  Tree tree = new Tree(600, 800);

  JFrame frame = new JFrame("Test...");
  frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

  JComponent image = new ImagePanel(tree);

  JScrollPane scroller = new JScrollPane(image);
  frame.getContentPane().add(scroller);

  frame.pack();
  frame.setVisible(true);
 }






== 4 of 8 ==
Date:   Fri,   Nov 12 2004 6:38 am
From: Andrew Thompson <[EMAIL PROTECTED]> 

On 12 Nov 2004 14:32:26 GMT, Thomas Richter wrote:

> Hi,
> 
>> What is a 'Tree'?  (And why are you so sure it is 'right now'?)
> 
> Nothing that is really important right here. All it does is basically:
> 
> g.drawImage(bi,x,y,io);
> 
> where g is the Graphics object (from above),

Where?  

Inside paint(Graphics g)?  paintComponent(Graphics g)?
myLeftFoot(Graphics g)?

Provide an *exact* example[1] of what you are doing,
and the experts (like Babu) will probably spot your 
error immediately.

[1] <http://www.physci.org/codes/sscce.jsp>

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



== 5 of 8 ==
Date:   Fri,   Nov 12 2004 7:11 am
From: Thomas Richter <[EMAIL PROTECTED]> 

> Where?  

Inside tree.draw() obviously. This is the only thing called in this example.
"Tree" doesn't have any kind of paint() method, nor is it a Component,
JComponent or any other type of GUI element. It is just able to render
a graphics:


    public void draw(Graphics g,int x,int y,ImageObserver io)
    {
            g.drawImage(source.getImage(),x,y,io);
    }

source.getImage() is a BufferedImage. This image is correct and not
the cause of the lack of rendering.

So long,
        Thomas



== 6 of 8 ==
Date:   Fri,   Nov 12 2004 8:04 am
From: Thomas Richter <[EMAIL PROTECTED]> 

Hi Chris,

>> However, as soon as I add
>> this into a JScrollPane, trouble begins. The image gets rendered, but
>> something then erases the image again with the default grey background,
>> writing on top of my rendered image.

> How are you adding it to the JScrollPane ?  

Well, JScrollPane.add(myclass). I suppose this is incorrect then and I
should rather build another JPanel, add the class to this JPanel and then
put the JPanel into the JScrollPane on construction as you did?

Thanks for the example. I'll have to check whether this helps.

So long,
        Thomas



== 7 of 8 ==
Date:   Fri,   Nov 12 2004 8:04 am
From: Babu Kalakrishnan <[EMAIL PROTECTED]> 

Thomas Richter wrote:
> 
> This is the full code:
> 
>  public void draw(Graphics g,int x,int y,ImageObserver io)
>     {
>           g.drawImage(source.getImage(),x,y,io);
>     }
> 
> source.getImage() returns a buffered image. Given the fact that
> it works fine without the JScrollPane and I haven't altered any
> code related to this "Tree" class, I'd say that the BufferedImage
> is fine.

What happens if source.getImage() gets called repeatedly ? Does it
try to recreate the image everytime or does it return a cached copy ?

> 
> 
>>(And also the fact that your draw method
>>should require a reference to the ImgPanel in addition to the Graphics
>>context 
> 
> 
> Why should it? I don't understand, please explain. The graphics context 
> should be the graphics of the panel I'm part of, thus rendering into it
> should render the graphics in the right spot. Which other graphics context
> should I render into instead?
> 

As long as it is only for the purpose of acting as an ImageObserver, it
is fine. I was wondering if it was being used to change the state of the
component in some manner.

> 
>>makes me very suspicious that you're doing something naughty
>>with the code in there :-))
> 
> 
> If so, please enlighten me. I don't get it, sorry.
> 

See above. I withdraw the "naughty" remark :-)

BK



== 8 of 8 ==
Date:   Fri,   Nov 12 2004 8:43 am
From: Thomas Richter <[EMAIL PROTECTED]> 

Hi,

> What happens if source.getImage() gets called repeatedly ? Does it
> try to recreate the image everytime or does it return a cached copy ?

No, it returns a cached copy. Recreating the image could be rather
wasteful. It is not very huge in the demo code, but it could become
quite large.

>> Why should it? I don't understand, please explain. The graphics context 
>> should be the graphics of the panel I'm part of, thus rendering into it
>> should render the graphics in the right spot. Which other graphics context
>> should I render into instead?
>> 

> As long as it is only for the purpose of acting as an ImageObserver, it
> is fine. I was wondering if it was being used to change the state of the
> component in some manner.

I hope this is maybe not related, but could you please explain me what's
this image observer is good for in first place? (Ehem...)

>>>makes me very suspicious that you're doing something naughty
>>>with the code in there :-))
>> 
>> If so, please enlighten me. I don't get it, sorry.
>> 

> See above. I withdraw the "naughty" remark :-)

Accepted. (-:

So long,
        Thomas




==========================================================================
TOPIC: CORBA string_to_object on local
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/457627fb64d84a15
==========================================================================

== 1 of 1 ==
Date:   Fri,   Nov 12 2004 7:18 am
From: Thomas Richter <[EMAIL PROTECTED]> 

Hi folks,

here's a strange CORBA related problem on Java 1.4.2_03 on a Suse 9.1
machine (a 2.6.5 kernel). The machine has a static IP address in
a network, running also a CORBA server. As soon as I try to connect
to it with

orb.string_to_object("corbaloc:iiop:localhost:2809/VESessionMgr");

I get a COMM_FAILURE exception. If I run the same with

orb.string_to_object("corbaloc:iiop:127.0.0.1:2809/VESessionMgr");

it works flawlessy. A "ping localhost" gives exactly the IP address
as above (clearly) and /etc/hosts also contains this IP address.

Now, what's going on here? Just the JAVA ORB that's freaking out?

So long,
        Thomas




==========================================================================
TOPIC: Struts validator is not working
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5b2dc528ed5c883d
==========================================================================

== 1 of 1 ==
Date:   Fri,   Nov 12 2004 7:19 am
From: "Ryan Stewart" <[EMAIL PROTECTED]> 

"Johan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> public class GuestBookForm extends ValidatorActionForm{

Try ValidatorForm rather than ValidatorActionForm. See the docs for the
difference.






==========================================================================
TOPIC: Http to port different than 80?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/83c9369f58ffcd00
==========================================================================

== 1 of 1 ==
Date:   Fri,   Nov 12 2004 7:23 am
From: "Andy" <[EMAIL PROTECTED]> 

> One idea: is your Internet Explorer going through a web proxy?  It
> may be that by happy coincidence the proxy is translating your
> requests such that they work with the server.  However if your Java
> code isn't using the proxy it won't have this luxury.
>
> The solution could lie in running something which allows you to see
> the network traffic from both applications, IE and Java, to figure
> out what the significant difference is between them.

The problem turned out to be that the query wasn't encoded properly, i e it
contained space characters which I didn't notice at first.






==========================================================================
TOPIC: Need as much help as possible
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7c8e64b34d7154d8
==========================================================================

== 1 of 2 ==
Date:   Fri,   Nov 12 2004 7:33 am
From: "Thomas G. Marshall" <[EMAIL PROTECTED]> 

Rob coughed up:
> dar7yl wrote:
>> "Collin" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]
>>
>>> Ann wrote:
>>>
>>>> "WCU_Student3456" <[EMAIL PROTECTED]> wrote in message
>>>>
news:[EMAIL PROTECTED]
>>>>
>>>>
>>>>> hey i'm new to the java scene and i have a major assignment due
>>>>> for class on the 12th of nov.  I need help with a program that
>>>>> has a point class...a
>>>>> driver and a circle class. the program is suppost to display info
>>>>> about
>>>>
>>>> the
>>>>
>>>>
>>>>> circle...if anyone is interested or has pitty...college students
>>>>> love pitty..please respond and i will try to send the assignment
>>>>> to you...i have it scanned on adobe...
>>>>>
>>>>> thanks ever so much
>>>>
>>>>
>>>> Why not outsource it to another country, grab a phone book. You can
>>>> probably get all your course work done there not just java.
>>>>
>>>>
>>>
>>> I'll do it for 50,000 USD; that's dicounted for first-timers.
>>>
>>
>>
>> I'll do it for $50,000 CDN dollars.
>>
>>
> I'll do it for a bottle of vodka.
> That, or $25 CDN.

Vodka?  Real engineers are powered by Diet Coke.

By the freaking gallon....


-- 
http://www.allexperts.com is a nifty way to get an answer to just about
/anything/.





== 2 of 2 ==
Date:   Fri,   Nov 12 2004 8:22 am
From: Collin <[EMAIL PROTECTED]> 

Thomas G. Marshall wrote:
> Rob coughed up:
> 
>>dar7yl wrote:
>>
>>>"Collin" <[EMAIL PROTECTED]> wrote in message
>>>news:[EMAIL PROTECTED]
>>>
>>>
>>>>Ann wrote:
>>>>
>>>>
>>>>>"WCU_Student3456" <[EMAIL PROTECTED]> wrote in message
>>>>>
> 
> news:[EMAIL PROTECTED]
> 
>>>>>
>>>>>>hey i'm new to the java scene and i have a major assignment due
>>>>>>for class on the 12th of nov.  I need help with a program that
>>>>>>has a point class...a
>>>>>>driver and a circle class. the program is suppost to display info
>>>>>>about
>>>>>
>>>>>the
>>>>>
>>>>>
>>>>>
>>>>>>circle...if anyone is interested or has pitty...college students
>>>>>>love pitty..please respond and i will try to send the assignment
>>>>>>to you...i have it scanned on adobe...
>>>>>>
>>>>>>thanks ever so much
>>>>>
>>>>>
>>>>>Why not outsource it to another country, grab a phone book. You can
>>>>>probably get all your course work done there not just java.
>>>>>
>>>>>
>>>>
>>>>I'll do it for 50,000 USD; that's dicounted for first-timers.
>>>>
>>>
>>>
>>>I'll do it for $50,000 CDN dollars.
>>>
>>>
>>
>>I'll do it for a bottle of vodka.
>>That, or $25 CDN.
> 
> 
> Vodka?  Real engineers are powered by Diet Coke.
> 
> By the freaking gallon....
> 
> 

Let's not forget:

http://www.thinkgeek.com/caffeine/accessories/5a65/







==========================================================================
TOPIC: Thread-question
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5766e179910e25fa
==========================================================================

== 1 of 2 ==
Date:   Fri,   Nov 12 2004 7:31 am
From: "Thomas G. Marshall" <[EMAIL PROTECTED]> 

Chris Uppal coughed up:
> Carl Howells wrote:
>
>> Observed behavior.  I just wrote up this test:
>
> An interesting example, thanks.
>
>
>> So, there's definately a bias against objects with finalizers in
>> those JVMs.  The bias becomes less extreme as more and more objects
>> are collected, but it's still present.
>
> I think that you are seeing the effect of objects having to wait on
> the finaliser thread's queue (see my reply to John Bollinger).
> Unless your test was running on a multi-processor machine (and
> possibly even if it was) then the finaliser will have been contending
> for CPU time with your executing loops, and so it won't have been
> able to run as often as it would "like to".  If that surmise is
> correct, then adding a small delay to your loop should give it a
> chance to run and clean up.
>
> Notice, by the way, that your use of reference queues is essentially
> the same as how the system (I think) implements finalisation.  The GC
> sees that an object is "special" and instead of just wiping it, it
> places it on a queue for some other thread (or other processing) to
> deal with.

Yeah, I'm guessing that's right.  The end result is that there is a
reference /somewhere/ in all the gobledy gook (in a queue with all the other
finalizer objects) that keeps the object from being marked for the M&S gc
algorithm.



> In the case of your example, it is placing the reference
> object onto the queue rather than the dead object itself, but the
> logic is similar to finalisation (though I'd guess that it's
> marginally more expensive to execute).  The bit that corresponds to
> the finaliser thread's activity is your loop where you poll() the
> queue.

I think your conclusion so far has been fairly on the money here.  It isn't
ruining the gc algorithm per se, it is merely making it even /harder/ to
predict.


>
> From the look of the results you quoted, your own loop has a slight
> advantage over the finaliser thread's loop, but I don't know whether
> that is simply reflecting an "unfair" advantage due to being
> scheduled more often, or is because of some other aspect of the
> implementation.  At the minimum, there's an "unfair" advantage to
> your loop in that the results are reported when /it/ has finished,
> but without also waiting for the finaliser to finish.  In a sense,
> your loop gets to decide when the "race" is over, so even if it and
> the finaliser were working at the same speed on average, we'd never
> see the finaliser "beat" your loop, we could only ever see it "draw"
> or "loose".
>
>     -- chris



-- 
http://www.allexperts.com is a nifty way to get an answer to just about
/anything/.





== 2 of 2 ==
Date:   Fri,   Nov 12 2004 9:41 am
From: "John C. Bollinger" <[EMAIL PROTECTED]> 

Thomas G. Marshall wrote:

> John C. Bollinger coughed up:
>>I am satisfied with the precision of the specification in that area;
>>what details would you prefer to see more completely specified?
> 
> 
> Not from finalize in particular, but from the gc in general.
> 
> Take for example System.gc() api doc:
> 
>         Calling the gc method suggests that the Java
>         Virtual Machine expend effort toward recycling
>         unused objects in order to make the memory
>         they currently occupy available for quick reuse.
>         When control returns from the method call, the
>         Java Virtual Machine has made a best effort to
>         reclaim space from all discarded objects.
> 
> That last statement is misleading.  It does not have to make a "best effort"
> at that point at all.  It's "best effort" can easily be to ignore the call
> entirely without attempt.

Well, what would you prefer that it say?  Would it satisfy you if 
something were added to that documentation to the effect of "The 
definition of 'best effort' depends on the memory management 
implementation in use in the Virtual Machine at the time of this 
method's invocation.  It is possible that the implementation's 'best 
effort' is in fact no effort at all."?  That wouldn't be any more 
specific, but it would at least be explicit about its lack of specificity.

Would you be willing to restrict the possible GC implementations by 
specifying their required operation in more detail?  More importantly, 
how does the lack of detail in these areas interfere with your ability 
to develop Java programs?


John Bollinger
[EMAIL PROTECTED]




==========================================================================
TOPIC: JUSB compiling in Windows (Netbeans)
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c92c2640d80e46b9
==========================================================================

== 1 of 1 ==
Date:   Fri,   Nov 12 2004 8:05 am
From: "Piscesboy" <[EMAIL PROTECTED]> 

I've downloaded JUSB for windows, and compiling the packages is
tricky. I'm trying to use NetBeans to compile the jusb.windows package,
but it's not clear exactly how to do it. Has anyone downloaded and used
jusb for windows and knows how to compile it and use it for creating
applications that interact with usb devices? 






==========================================================================
TOPIC: How to paint in Component Graphics?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c10fbaedc6c93664
==========================================================================

== 1 of 1 ==
Date:   Fri,   Nov 12 2004 8:24 am
From: "Andrei Kouznetsov" <[EMAIL PROTECTED]> 

> Beacause I can't access the code ... ;-)
> It's the visual component of a jmf video player and I have to mark some
> regions in it.
> Maybe any other idea for doing this?

put your video player into some component with glassPane (JFrame for
example) and paint whatever you need on glassPane.

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






==========================================================================
TOPIC: Java 1.5.0 and CORBA
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b819ede31037c548
==========================================================================

== 1 of 3 ==
Date:   Fri,   Nov 12 2004 8:42 am
From: [EMAIL PROTECTED] (Ted Holden) 



Real dumb quiestion here.....

I notice that the latest version of the Java JDK (1.5.0) comes with
its own IDL to Java compiler (idlj.exe).  

Could this also indicate that the latest version of Java is CORBA
capable out of the box and that separate ORBs like Jacorb are no
longer necessary?










== 2 of 3 ==
Date:   Fri,   Nov 12 2004 8:45 am
From: Thomas Richter <[EMAIL PROTECTED]> 


Hi,

> I notice that the latest version of the Java JDK (1.5.0) comes with
> its own IDL to Java compiler (idlj.exe).  

> Could this also indicate that the latest version of Java is CORBA
> capable out of the box and that separate ORBs like Jacorb are no
> longer necessary?

Actually, Java 1.4.2 (and supposedly, even older versions) come with
their own ORB and their own IDL compiler. idlj is not at all new in 1.5.
Just that the Java built-in ORB was never really a high-quality one,
I'm frequently running into problems with it... Let's hope things improved
in 1.5...

So long,
        Thomas










== 3 of 3 ==
Date:   Fri,   Nov 12 2004 10:32 am
From: [EMAIL PROTECTED] (Ted Holden) 


Thanks, that's interesting.  


On 12 Nov 2004 16:45:39 GMT, Thomas Richter
<[EMAIL PROTECTED]> wrote:

>
>Hi,
>
>> I notice that the latest version of the Java JDK (1.5.0) comes with
>> its own IDL to Java compiler (idlj.exe).  
>
>> Could this also indicate that the latest version of Java is CORBA
>> capable out of the box and that separate ORBs like Jacorb are no
>> longer necessary?
>
>Actually, Java 1.4.2 (and supposedly, even older versions) come with
>their own ORB and their own IDL compiler. idlj is not at all new in 1.5.
>Just that the Java built-in ORB was never really a high-quality one,
>I'm frequently running into problems with it... Let's hope things improved
>in 1.5...
>
>So long,
>       Thomas
>
>
>
>
>
>
>





==========================================================================
TOPIC: Scope of static variables
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e14b4fda096d84c5
==========================================================================

== 1 of 4 ==
Date:   Fri,   Nov 12 2004 10:25 am
From: Hunter <[EMAIL PROTECTED]> 

We all know that a static variable has a single value within an
application no many how many objects are instantiated.

How about if you run two seperate applications of the same code.  Is
the variable still static across both applications?  Or does each
application maintain it's own objects so static is only global within
the application?

Thanks!
Brett
01 Yamaha R1
99 Honda F4 (Track bike)
89 Katana 750



== 2 of 4 ==
Date:   Fri,   Nov 12 2004 10:34 am
From: Michael Borgwardt <[EMAIL PROTECTED]> 

Hunter wrote:
> We all know that a static variable has a single value within an
> application no many how many objects are instantiated.
> 
> How about if you run two seperate applications of the same code.  Is
> the variable still static across both applications?  Or does each
> application maintain it's own objects so static is only global within
> the application?

You're misapplying the word "application".

Static variable are unique per virtual machine instance. That means, if
you start two VMs (e.g. type the "java Classname" command twice), the
values in the static variables will be completely independant between
the two.



== 3 of 4 ==
Date:   Fri,   Nov 12 2004 10:35 am
From: Carl Howells <[EMAIL PROTECTED]> 

Michael Borgwardt wrote:
> Static variable are unique per virtual machine instance.

Technically, they're unique per ClassLoader.  Which can matter 
significantly when using something like a servlet container.



== 4 of 4 ==
Date:   Fri,   Nov 12 2004 10:41 am
From: Michael Borgwardt <[EMAIL PROTECTED]> 

Carl Howells wrote:
>> Static variable are unique per virtual machine instance.
> 
> 
> Technically, they're unique per ClassLoader.

That too, of course.



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

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