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

Today's topics:

* Ejb: best way to implement an update method with BMP - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2fadf7c755facb41
* Comparing two strings - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/64fe8d36ff4a5ff1
* How to make Java web start doesn't pop up security setting - 3 messages, 2 
authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2dfbc9e55f809ea4
* Best Practices for running J2EE applications on machine with 192 CPUs? - 1 
messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/670df86c61aad2c5
* Countdown thread resume problem - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bf9c85ee37bd60d6
* please recommend a design pattern book in java - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/99dfc42b6357856
* How to suppress final 0 with DecimalFormat? - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c25b4efdb9f3c1f3
* website hosting - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ea68b6755e0cea5f
* console editor - 3 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9a72ea0e72037234
* how to resize a array? - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d5ed97c9d7b81add
* [REPOST] java.awt.Image problem - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7f984034b7d7f294
* JRun and using a Java Debugger - 3 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/83b37e6fad2747ce
* reflection: noSuchMethodException - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/629115419613f9ce
* Best way to do this - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8e38d69ac964c0ee
* porting spec benchmarks to Java - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d3a0060d62c1395f

==============================================================================
TOPIC: Ejb: best way to implement an update method with BMP
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2fadf7c755facb41
==============================================================================

== 1 of 2 ==
Date: Mon, Nov 29 2004 11:24 am
From: Sudsy  

Andrea Desole wrote:
<snip>
> myBean.setA( a ); // here no transaction (transaction type is supports 
> or even never)
> myBean.setB( b ); // here no transaction either
> myBean.update(); // here transaction/rollback using the members 
> previously set
> 
> 
> Sorry to argue, I agree that I should read more (which is what I'm 
> doing), but I'm a bit surprised to see that such a simple solution can't 
> be implemented.

Your pattern looks more like a DAO and would be implemented as a session
bean, not an entity bean. The DAO could utilize underlying entity beans
or contain JDBC code. In either case you're adding another layer (or more)
which encapsulates the business logic. This is just the way it's done with
J2EE.
There's nothing wrong with your desired approach. You merely misidentified
the implementation layer. You mentioned BMP entity beans which don't work 
the way you'd like in this situation.
Fair enough?

-- 
Java/J2EE/JSP/Struts/Tiles/C/UNIX consulting and remote development.




== 2 of 2 ==
Date: Mon, Nov 29 2004 5:28 pm
From: Andrea Desole  

Sudsy wrote:
> Andrea Desole wrote:
> <snip>
> 
>> myBean.setA( a ); // here no transaction (transaction type is supports 
>> or even never)
>> myBean.setB( b ); // here no transaction either
>> myBean.update(); // here transaction/rollback using the members 
>> previously set
>>
>>
>> Sorry to argue, I agree that I should read more (which is what I'm 
>> doing), but I'm a bit surprised to see that such a simple solution 
>> can't be implemented.
> 
> 
> Your pattern looks more like a DAO and would be implemented as a session
> bean, not an entity bean. The DAO could utilize underlying entity beans
> or contain JDBC code. In either case you're adding another layer (or more)
> which encapsulates the business logic. This is just the way it's done with
> J2EE.
> There's nothing wrong with your desired approach. You merely misidentified
> the implementation layer. You mentioned BMP entity beans which don't 
> work the way you'd like in this situation.
> Fair enough?
> 
kind of :-)
True, I'm using BMP, and I have to say that implementing it as a session 
bean might be a good idea. I'll have to look at it.
Thanks for the help anyway.




==============================================================================
TOPIC: Comparing two strings
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/64fe8d36ff4a5ff1
==============================================================================

== 1 of 1 ==
Date: Mon, Nov 29 2004 4:21 pm
From: Rob van der Leek  

In article <[EMAIL PROTECTED]>, MaSTeR wrote:
>> public class T {
>>     public static void main(String args[])
>>     {
>> String s1 = "we are students";
>> String s2 = "are";
>> int startIndex = s1.indexOf(s2);
>> if (startIndex > 0) {
>>     System.out.println("Found substring at: " + startIndex);
>> }
>> else {
>>     System.out.println("Found no match");
>> }
>>     }
>> }
>>
> 
> Actually
>  if (startIndex != -1) {
>      System.out.println("Found substring at: " + startIndex);
>  }
>  else {
>      System.out.println("Found no match");
>  }
>      }
>  }
> 
> Otherwise wouldn't find a match for
>  String s1 = "we are students";
>  String s2 = "we";

Oops, you're right, actually I always use >= .

Thanks!

-- 
Rob van der Leek                |     rob(at)ricardis(dot)tudelft(dot)nl




==============================================================================
TOPIC: How to make Java web start doesn't pop up security setting
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2dfbc9e55f809ea4
==============================================================================

== 1 of 3 ==
Date: Mon, Nov 29 2004 4:31 pm
From: Andrew Thompson  

On Mon, 29 Nov 2004 16:17:02 +0000 (UTC), Bent C Dalager wrote:

> If they request permissions and are signed, the user will tend to be
> asked 

The user *will* be asked.  No tendency about it, though..

>..whether or not to accept the installation. I don't know if you
> can pre-approve certain certificates. 

..the user can choose to 'Trust all code from this supplier'
to avoid prompts for later JWS installs.

-- 
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 3 ==
Date: Mon, Nov 29 2004 4:07 pm
From: Andrew Thompson  

On 29 Nov 2004 07:33:43 -0800, Matt wrote:

> Everytime when we first launched Java web start, it will pop up a
> security setting dialog box. I heard there are some way to disable it.

You heard wrong.

That is to warn the user they are about to accept code
that might upload their personal details before formatting 
their drives.  

So in short, no.  Or if you find a way of doing it, let us
know so that we can demand a patch from Sun.

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



== 3 of 3 ==
Date: Mon, Nov 29 2004 4:17 pm
From: [EMAIL PROTECTED] (Bent C Dalager) 

In article <[EMAIL PROTECTED]>,
Matt <[EMAIL PROTECTED]> wrote:
>Everytime when we first launched Java web start, it will pop up a
>security setting dialog box. I heard there are some way to disable it.

I'm not exactly sure what you mean. However, if your web start apps
don't request any permissions from the host system, they will download
and start without asking the user any questions.

If they do request permissions and are NOT signed, they will just
plain old don't start.

If they request permissions and are signed, the user will tend to be
asked whether or not to accept the installation. I don't know if you
can pre-approve certain certificates. If you can, then presumably it
would be possible to have a web start app that requests permissions of
the system to install without prompting the user.

Cheers
        Bent D
-- 
Bent Dalager - [EMAIL PROTECTED] - http://www.pvv.org/~bcd
                                    powered by emacs




==============================================================================
TOPIC: Best Practices for running J2EE applications on machine with 192 CPUs?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/670df86c61aad2c5
==============================================================================

== 1 of 1 ==
Date: Mon, Nov 29 2004 4:52 pm
From: "Ann"  


"Cindi Jenkins" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have seen others comment on writing applications that run on two or
> four CPU machines but wanted to know if anyone has uncovered "best
> practices" for developing Java applications that support 192 CPUs?

What does it mean to have 192 cpus? If you have a cluster
of cpus that share memory and disk is it included in your
definition?






==============================================================================
TOPIC: Countdown thread resume problem
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bf9c85ee37bd60d6
==============================================================================

== 1 of 1 ==
Date: Mon, Nov 29 2004 8:52 am
From: [EMAIL PROTECTED] 

Andrew Thompson <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> On 28 Nov 2004 20:39:49 -0800, [EMAIL PROTECTED] wrote:
> 
> > When I press 'Stop', the display of countdown time is indeed paused, ...
> 
> Not on my box it didn't.  Clicking the button had no effect,
> the countdown continued on it's merry way.
> 
> > I really apologize for the length of this message, but I really can't
> > figure this one out. 
> 
> This could have been an SSCCE[1] if you had..
> 
> 1) Ensured all lines were under 72 chars (line wrap breaks code).
> 2) Put the imports at the top.
> 3) Made TFrame public and the other classes default
> 4) Trimmed about 200 lines from it.
> 
> Please do so in future.
> 
> [1] <http://www.physci.org/codes/sscce.jsp>


I appreciate your comments, I will try to do so in the future.
Can you help me in detecting what needs to be fixed in the code so the
countdown thread would pause and resume properly?

Tahnks once again.




==============================================================================
TOPIC: please recommend a design pattern book in java
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/99dfc42b6357856
==============================================================================

== 1 of 1 ==
Date: Mon, Nov 29 2004 4:49 pm
From: "Ann"  


"metfan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I searched Amazon and it came out a list, could you please recommend one,
which one is of the best for a mid-level programmer? Thanks.
>
> 1) Design Patterns Java Workbook by Steven John Metsker
> 2) Applied Java Patterns by Stephen A. Stelting
> 3) Java Design Patterns: A Tutorial by James William Cooper
> 4) Patterns in Java: A Catalog of Reusable Design Patterns Illustrated
with UML, 2nd Edition, Volume 1 by Mark Grand
> 5) Java Design: Objects, UML, and Process by Kirk Knoernschild
> 6) Object-Oriented Software Engineering: Using UML, Patterns and Java,
Second Edition by Bernd Bruegge
> 7) Software Architecture Design Patterns in Java by Partha Kuchana

Two general techniques:
1. look in your library and assume they order the good books
2. look for a book that is less than 1 year old






==============================================================================
TOPIC: How to suppress final 0 with DecimalFormat?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c25b4efdb9f3c1f3
==============================================================================

== 1 of 1 ==
Date: Mon, Nov 29 2004 9:58 am
From: "John C. Bollinger"  

Adam Lipscombe wrote:

>  Folks,
> 
> I  need to output a blank if a double is 0.0;
> 
> If I use DecimalFormat to format a zero double I get a single "0" output. 
> i.e.
> 
>                 double d = 0.0;
>                 DecimalFormat dF = new DecimalFormat("#.##");
>                 System.out.println(dF.format(d));
> 
> gives "0".
> 
> 
> How do I get rid of the zero?

Write your own NumberFormat implementation: what you want is not 
possible with DecimalFormat.  Make your NumberFormat's parse() method 
transform blanks back into zeroes, for otherwise it will be broken.  Do 
make sure you appreciate the implications for error detection during 
parsing.


John Bollinger
[EMAIL PROTECTED]




==============================================================================
TOPIC: website hosting
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ea68b6755e0cea5f
==============================================================================

== 1 of 2 ==
Date: Mon, Nov 29 2004 9:23 am
From: "Ike"  

Does anyone else have any experience with this service? What three sites are
you referring to? -Ike


<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Here is the link to the web hosting company that I use for my 3 sites.
>
> http://frontpage-web-hosting.org/
>
>





== 2 of 2 ==
Date: Mon, Nov 29 2004 10:37 am
From: Steve Sobol  

Ike wrote:
> Does anyone else have any experience with this service? What three sites are
> you referring to? -Ike

Don't use frontpage-web-hosting - they are spammers. (one of these days I'm 
going to get around to reporting them and hopefully getting their ISP to nuke 
them; they spam email *and* newsgroups)

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




==============================================================================
TOPIC: console editor
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9a72ea0e72037234
==============================================================================

== 1 of 3 ==
Date: Mon, Nov 29 2004 10:34 am
From: Daniel Sjöblom  

karl wettin wrote:
> Hello group,
> 
> I want to write a console editor (nano, pico, vi, et.c.) in java, but 
> have no clue where to start. All hints are welcome. Maybe there is a 
> project I could base it on?

There is no support for console manipulation in standard java. There are 
some third party libraries though, do a google search for "curses for 
java" without the quotes.

I'm not aware of any console editors written in java, but you may want 
to take a look at Jext and Jedit for some general ideas. Before you 
embark on this project you should really ask yourself if the world needs 
yet another editor and if java is really the language you want to write 
this in. Other than that, I only wish you good luck!

-- 
Daniel Sjöblom
Remove _NOSPAM to reply by mail



== 2 of 3 ==
Date: Mon, Nov 29 2004 9:31 am
From: karl wettin  

Hello group,

I want to write a console editor (nano, pico, vi, et.c.) in java, but 
have no clue where to start. All hints are welcome. Maybe there is a 
project I could base it on?

-- 

   karl



== 3 of 3 ==
Date: Mon, Nov 29 2004 10:56 am
From: karl wettin  

Daniel Sjöblom wrote:
> karl wettin wrote:
> 
>> Hello group,
>>
>> I want to write a console editor (nano, pico, vi, et.c.) in java, but 
>> have no clue where to start. All hints are welcome. Maybe there is a 
>> project I could base it on?
> 
> 
> There is no support for console manipulation in standard java. There are 
> some third party libraries though, do a google search for "curses for 
> java" without the quotes.

Excellet, thanks!

<http://sourceforge.net/projects/javacurses/> is my selection for now.

> I'm not aware of any console editors written in java, but you may want 
> to take a look at Jext and Jedit for some general ideas. Before you 
> embark on this project you should really ask yourself if the world needs 
> yet another editor and if java is really the language you want to write 
> this in. Other than that, I only wish you good luck!

I want to write a native java IDE for my console :)

-- 

   karl





==============================================================================
TOPIC: how to resize a array?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d5ed97c9d7b81add
==============================================================================

== 1 of 1 ==
Date: Mon, Nov 29 2004 10:30 am
From: Oscar kind  

Dimitri Maziuk <[EMAIL PROTECTED]> wrote:
> You do know that a) ArrayList does the very same array copy,
> b) comes with an extra dozen bytes overhead for each member
> and c) casts all its memebers to Object, right?

Yes.

However, I often find this not to be a big issue, because:
1a. The environments I work in often require flexible array sizes
1b. Implementing this myself is either expensive to maintain or too much
    like an ArrayList anyway
2.  I use mainly objects
3.  In the rare cases I don't, using an object is not that much hassle.
    Especially not with Java 1.5 (which I luckily can use for the really
        interesting projects)


-- 
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: [REPOST] java.awt.Image problem
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7f984034b7d7f294
==============================================================================

== 1 of 2 ==
Date: Mon, Nov 29 2004 9:40 am
From: "MaSTeR"  

>                                          assure?
Aren't ensure and assure synonymous ?

>
> In Swing, I was under the impression that pretty much everything
> is multi-threaded. In particular, the paint() method (and its friends)
> are called by the event dispatcher thread, which isn't your "main" thread.
>
You are correct. repaint() generates another thread, you could use
paint(this.getGraphics()) if you want the current thread to repaint.

> If your "main" thread is messing with data while your "paint()" is
accessing
> the data, you're dead meat!
>
>      BugBear

I am so confident because, I repaint everything just when an updates comes
in, otherwise the paint() method terminates just after redrawing the buffer.
Now when I push in a new update the Ticker paints correctly (!) but when I
move the double buffer back and forth I get my problem.





== 2 of 2 ==
Date: Mon, Nov 29 2004 9:20 am
From: bugbear  

MaSTeR wrote:
>>Looks like you've got some kind of race condition between
>>altering your buffer, and copying from your buffer
>>to the user's view of stuff.
>>
>>If it *is* a race, wether you get your desired (as opposed
>>to "correct") behaviour is just a fluke of timing, and
>>could depend on ... virtually anything.
>>
>>I'd check your events and threads carefully to be sure
>>you're using all the API's correctly.
>>
>>     BugBear
> 
> 
> Than's what I thought at first, but I ensure you there are no threading
> issues.
                                         ^^^^^^^
                                         assure?

In Swing, I was under the impression that pretty much everything
is multi-threaded. In particular, the paint() method (and its friends)
are called by the event dispatcher thread, which isn't your "main" thread.

If your "main" thread is messing with data while your "paint()" is accessing
the data, you're dead meat!

     BugBear
      BugBear




==============================================================================
TOPIC: JRun and using a Java Debugger
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/83b37e6fad2747ce
==============================================================================

== 1 of 3 ==
Date: Mon, Nov 29 2004 10:26 am
From: Andrea Desole  

try suspend=n

Steve wrote:
> 
> 
> Hi;
> 
> A company I am working for is using JRun 3 ( they have
> plans for moving to JRun 4, but it is going to take a
> while ).
> 
> I am using a multipurpose IDE called Visual Slickedit 9.0
> that comes with a java debugger ( it looks like a front
> end to the jdk that comes with the jsdk ).
> 
> I am having trouble attaching the debugger to the remote
> jvm for a JRun webapp/site.
> 
> The directions (below) that come with Visual Slickedit call
> for feeding the remote vm some special arguments and
> restarting it.
> 
> I am going to the "java arguments" field in my web app and
> inserting the following string ( adjusting for the port
> of the web app):
> 
> 
> -Xdebug -Xnoagent 
> -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
> 
> Once I do however, I can't get the webapp to restart.
> 
> Do I need to prepend "java" to the string above?
> 
> If not, what do I need to do to get the java debugger
> and the JRun 3 web app talking to each other?
> 
> Thanks in advance for any insights or information.
> 
> Steve
> 
> 
> 
> 
> 
> 
> 
> ( from the slickedit help section ):
> 
> 
> Attaching to a Remote VM (Java Only)
> 
> To attach to a remote VM:
> 
> 1. Start the remote VM with command arguments similar to the following:
> 
> Java -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,
> 
> suspend=y,address=8000 MainClass Arg1 Arg2
> 
> 2. Choose Attach to Remote VM\u2026 from the Debug menu.



== 2 of 3 ==
Date: Mon, Nov 29 2004 9:57 am
From: Steve  



Hi;

A company I am working for is using JRun 3 ( they have
plans for moving to JRun 4, but it is going to take a
while ).

I am using a multipurpose IDE called Visual Slickedit 9.0
that comes with a java debugger ( it looks like a front
end to the jdk that comes with the jsdk ).

I am having trouble attaching the debugger to the remote
jvm for a JRun webapp/site.

The directions (below) that come with Visual Slickedit call
for feeding the remote vm some special arguments and
restarting it.

I am going to the "java arguments" field in my web app and
inserting the following string ( adjusting for the port
of the web app):


-Xdebug -Xnoagent 
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000

Once I do however, I can't get the webapp to restart.

Do I need to prepend "java" to the string above?

If not, what do I need to do to get the java debugger
and the JRun 3 web app talking to each other?

Thanks in advance for any insights or information.

Steve







( from the slickedit help section ):


Attaching to a Remote VM (Java Only)

To attach to a remote VM:

1. Start the remote VM with command arguments similar to the following:

Java -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,

suspend=y,address=8000 MainClass Arg1 Arg2

2. Choose Attach to Remote VM\u2026 from the Debug menu.



== 3 of 3 ==
Date: Mon, Nov 29 2004 10:46 am
From: Steve  

I did, no luck, the jrun webapp would not restart

Andrea Desole wrote:
> try suspend=n
> 
> Steve wrote:
> 
>>
>>
>> Hi;
>>
>> A company I am working for is using JRun 3 ( they have
>> plans for moving to JRun 4, but it is going to take a
>> while ).
>>
>> I am using a multipurpose IDE called Visual Slickedit 9.0
>> that comes with a java debugger ( it looks like a front
>> end to the jdk that comes with the jsdk ).
>>
>> I am having trouble attaching the debugger to the remote
>> jvm for a JRun webapp/site.
>>
>> The directions (below) that come with Visual Slickedit call
>> for feeding the remote vm some special arguments and
>> restarting it.
>>
>> I am going to the "java arguments" field in my web app and
>> inserting the following string ( adjusting for the port
>> of the web app):
>>
>>
>> -Xdebug -Xnoagent 
>> -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
>>
>> Once I do however, I can't get the webapp to restart.
>>
>> Do I need to prepend "java" to the string above?
>>
>> If not, what do I need to do to get the java debugger
>> and the JRun 3 web app talking to each other?
>>
>> Thanks in advance for any insights or information.
>>
>> Steve
>>
>>
>>
>>
>>
>>
>>
>> ( from the slickedit help section ):
>>
>>
>> Attaching to a Remote VM (Java Only)
>>
>> To attach to a remote VM:
>>
>> 1. Start the remote VM with command arguments similar to the following:
>>
>> Java -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,
>>
>> suspend=y,address=8000 MainClass Arg1 Arg2
>>
>> 2. Choose Attach to Remote VM\u2026 from the Debug menu.




==============================================================================
TOPIC: reflection: noSuchMethodException
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/629115419613f9ce
==============================================================================

== 1 of 1 ==
Date: Mon, Nov 29 2004 10:38 am
From: Oscar kind  

"Matthijs Blaas" <<remthis>thijs_blaas <at>hotmaildotcom> wrote:
> I'd never guessed I had to use the TYPE 
> field... is that static class used by the Boolean class itself for actual 
> initialisation of an boolean object? 

Almost. The TYPE field denotes a special Class instance describing a
primitive type. AFAIK it is not used for initialization, as primitive
types are not subclasses of Object.


-- 
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: Best way to do this
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8e38d69ac964c0ee
==============================================================================

== 1 of 1 ==
Date: Mon, Nov 29 2004 9:36 am
From: Chris Smith  

Fran Garcia <[EMAIL PROTECTED]> wrote:
> This is the code for the creation of the class to playing the wav
> file.

Okay, so you're doing playback with the javax.sound.sampled.* package.  
That's good, and makes things a lot easier.  Now you just need to 
communicate your position to the the JSlider.  Somewhere, do you have a 
loop that looks something like this?

byte[] buffer = new byte[BUF_SIZE];
int len;
while ((len = m_flujoEntradaAudio.read(buffer)) != -1)
{
    m_line.write(buffer, 0, len);
}

If so, then you just need to add code inside that loop to update the 
JSlider position.

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

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation




==============================================================================
TOPIC: porting spec benchmarks to Java
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d3a0060d62c1395f
==============================================================================

== 1 of 2 ==
Date: Mon, Nov 29 2004 10:57 am
From: "Ann"  


"Vasanth Venkatachalam" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Has anyone ported some or all of the Spec CPU benchmarks to Java?


If anyone has, it was probably Jack Dongarra.


http://www.netlib.org/utk/people/JackDongarra/





== 2 of 2 ==
Date: Mon, Nov 29 2004 10:49 am
From: "Vasanth Venkatachalam"  

Has anyone ported some or all of the Spec CPU benchmarks to Java?






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

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

To post to this group, send email to [EMAIL PROTECTED] or
visit http://groups-beta.google.com/group/comp.lang.java.programmer

To unsubscribe from this group, send email to
[EMAIL PROTECTED]

To change the way you get mail from this group, visit:
http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe

To report abuse, send email explaining the problem to [EMAIL PROTECTED]

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

Reply via email to