[The Java Posse] how to open a local file in java application

2010-06-29 Thread marc
Hi i am new to java. i am trying to create a junit report and attach a link to screen shots. i am trying open a local image file through java application. i want the application to give a link so that the user can click the link to view the image. can anybody help me on this. Thank you -- You r

[The Java Posse] Text cast ?

2010-06-29 Thread Jan Goyvaerts
I'm spending quite a lot of time on the road these days. So much that I ran out of podcasts ! :-) But I still have a ton of text material to read. I can put the laptop beside me in the car and let it "read" it for me. But, if it can read I guess it can record in mp3 too. Does somebody knows about

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Mark Derricutt
You mean like Fortress?Admittedly, it only uses them in the rendered version of your source code tho. -- Pull me down under... On Wed, Jun 30, 2010 at 10:02 AM, Eric Jablow wrote: > And then we should use ≤ instead of <=, ≠ instead of !=, and x ∋ s -- You received this message because you

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Dominic Mitchell
On Tue, Jun 29, 2010 at 11:07 PM, Kevin Wright wrote: > The two biggest problems? Typing the chars (though autocomplete helps) and > finding fonts that actually have the chars :) It's incredible how a font can be lacking in a *whitespace character*. -Dom -- You received this message because

[The Java Posse] Re: Sun is 'profitable' now.

2010-06-29 Thread Steven Herod
“We estimate that Sun contributed over $400 million to non-GAAP operating income in our Q4,” said Oracle President, Safra Catz. “This compares with a loss in Sun’s quarter ending June of last year, when Sun was an independent company. Now that Sun is profitable, we have increased confidence that we

[The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Reinier Zwitserloot
In eclipse I always have 'show formatting characters' on. It replaces spaces with middle-dots, tabs with the >> (as a single character), and newlines with paragraph symbols, all in a colour that's so light grey it's bordering on white (which is the background). You barely notice it when looking at

[The Java Posse] Re: Episode #312 - NetBeans 6.9

2010-06-29 Thread Jason Whaley
Unless the output in Netbeans options is lying, I think Netbeans has been using development/SNAPSHOT versions of maven 3 for at least since NB 6.8. If you look at Preferences->Misc->Maven, you'll see the embedded maven version is 3.0-SNAPSHOT. Again, I've no clue if it really is using it or not (

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Kevin Wright
And then there's Fortress, of course: http://projectfortress.sun.com/Projects/Community/wiki/FortressByExample Also a JVM language :) On 29 June 2010 23:07, Kevin Wright wrote: > Java source files already are (or can be) UTF-8 > > Scala takes this further, and has actually started using Unicod

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Kevin Wright
Java source files already are (or can be) UTF-8 Scala takes this further, and has actually started using Unicode operators: http://scala-programming-language.1934581.n4.nabble.com/More-unicode-alternatives-for-ASCII-operators-td2008146.html Scalaz takes this to something of an extreme: (warning:

[The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Eric Jablow
On Jun 29, 5:24 pm, Dominic Mitchell wrote: > On Tue, Jun 29, 2010 at 4:08 PM, Robert Casto wrote: > > > Seriously, why do we have to use ASCII text files anyway? > > You're right.  Why do we have to use ASCII?  This is the 21st century — we > can use UTF-8!  Now, instead of space vs tab, you ca

Re: [The Java Posse] Re: Episode #312 - NetBeans 6.9

2010-06-29 Thread Dominic Mitchell
On Tue, Jun 29, 2010 at 8:58 PM, Tor Norbye wrote: > Sorry, I don't use Maven so I can't really comment on this other than > to say I'm sorry it sounds like it's not fixed yet. > > I suspect the Maven support itself may be initiating a lot of scanning > or refresh operations, since Maven is an ex

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Kerry Sainsbury
Don't Apple have a patent on Spabs? On Wed, Jun 30, 2010 at 9:27 AM, Christian Catchpole < christ...@catchpole.net> wrote: > Or you could go into your editor settings and set: Treat Spabs as > Taces > > Spabs vs Taces begins. > > On Jun 30, 6:56 am, Viktor Klang wrote: > > On Tue, Jun 29, 2010 a

[The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Christian Catchpole
Or you could go into your editor settings and set: Treat Spabs as Taces Spabs vs Taces begins. On Jun 30, 6:56 am, Viktor Klang wrote: > On Tue, Jun 29, 2010 at 10:44 PM, Christian Catchpole < > > christ...@catchpole.net> wrote: > > Why don't we just create a special character called a Spab. Whi

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Dominic Mitchell
On Tue, Jun 29, 2010 at 4:08 PM, Robert Casto wrote: > Seriously, why do we have to use ASCII text files anyway? > You're right. Why do we have to use ASCII? This is the 21st century — we can use UTF-8! Now, instead of space vs tab, you can debate: space vs tab vs en space vs em space vs zero

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Robert Casto
I guess I made the mistake of being serious. When you get an upgrade on the Tace though, let me know. I'm not going to mess up my files until I see how it has had some play time in the real world. :) On Tue, Jun 29, 2010 at 4:56 PM, Viktor Klang wrote: > > > On Tue, Jun 29, 2010 at 10:44 PM, Chri

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Viktor Klang
On Tue, Jun 29, 2010 at 10:44 PM, Christian Catchpole < christ...@catchpole.net> wrote: > Why don't we just create a special character called a Spab. Which has > qualities of both. Made from unicorn farts of course :) > Seriously? Who uses the Spab? It's aligning things totally messed up. Everyon

[The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Christian Catchpole
Why don't we just create a special character called a Spab. Which has qualities of both. Made from unicorn farts of course :) On Jun 30, 5:05 am, Robert Casto wrote: > I know its a pain, but so is having to deal with spaces and tabs.  How about > telling the editor to convert tabs to spaces when

[The Java Posse] Re: Episode #312 - NetBeans 6.9

2010-06-29 Thread Tor Norbye
On Jun 29, 2:29 am, Jan Goyvaerts wrote: >    - The new java hints are certainly nice but in my opinion nothing beats >    Findbugs indeed. It does the checks mentioned in the cast and quite some >    others. The SQE project provides a plugin for Findbugs, PMD, Checkstyle en >    dependency check.

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Robert Casto
I know its a pain, but so is having to deal with spaces and tabs. How about telling the editor to convert tabs to spaces when entering text? Better than leaving tabs in there. Robert On Jun 29, 2010 12:52 PM, "B Smith-Mannschott" wrote: On Tue, Jun 29, 2010 at 17:08, Robert Casto wrote: > Can

[The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Reinier Zwitserloot
Yup, it looks wrong. But it would look even more wrong, if anything, with only spaces; you CANNOT line stuff out in a non-monospaced font, period. Except with tabs, but if you do that, you're dependent on tab stops, which is a big nono. Which brings us back to: It is not possible to line stuff out

Re: [The Java Posse] Episode #312 - NetBeans 6.9

2010-06-29 Thread Jess Holle
On 6/29/2010 6:09 AM, Jess Holle wrote: On 6/29/2010 4:29 AM, Jan Goyvaerts wrote: Project scanning ! Tor mentioned this can be disabled. But really... why it is scanning the very same Maven libraries each time I'm starting up ? NB takes a kickass start and stamps right away onto the breaks as

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread B Smith-Mannschott
On Tue, Jun 29, 2010 at 17:08, Robert Casto wrote: > Can't we just move on from simple text files and use something better to > hold our source code? Why always such an unwieldy medium? Seriously, why do > we have to use ASCII text files anyway? Couldn't we put something in place > that would get

[The Java Posse] Re: Subliminal messages...

2010-06-29 Thread Tor Norbye
This is actually a running gag... I've whispered that line as the last audible sound in each and every roundup -recording- where I've been the one to turn off the microphone at the end of the session. It probably hasn't made it through the editing in most cases. Anyway, we never prepare how to -end

Re: [The Java Posse] Re: Manchester UK JUG or North UK in general.

2010-06-29 Thread Mark Fortner
I forgot about the GATE folks (located at the Univ. of Sheffield). They do open source text mining. Mark On Tue, Jun 29, 2010 at 8:35 AM, Mark Fortner wrote: > The Taverna project has a number of developers > in your neck of the woods. The p

Re: [The Java Posse] Re: Manchester UK JUG or North UK in general.

2010-06-29 Thread Mark Fortner
The Taverna project has a number of developers in your neck of the woods. The project is an open source collaboration between groups at Univ. of Manchester, Univ of Sheffield and a few other places. They've developed a java-based workflow engine used for eScience. They

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Robert Casto
Can't we just move on from simple text files and use something better to hold our source code? Why always such an unwieldy medium? Seriously, why do we have to use ASCII text files anyway? Couldn't we put something in place that would get rid of the parts we don't want the compiler to see? A pre-pr

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Lyle
Reinier's Rules (ha!) are the best argument I've seen for tab characters infiltrating source files, but when the bits hit the disk I agree with Ben. For collaborative work, it's often tough enough to get people to indent logically and consistently with just *one* type of whitespace character. -Lyl

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread B Smith-Mannschott
On Tue, Jun 29, 2010 at 14:41, Reinier Zwitserloot wrote: > I don't understand the tabs v. spaces war. There's clearly a right > answer: > > Tabs for indents. Spaces for spacing. > > Rule #1: A tab character can never occur in any source file, unless > the previous character is (A) a tab, (B) the

RE: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Roel Spilker
Reinier, you forgot to mention that "empty lines" should also contain tabs for the right indentation level. -Oorspronkelijk bericht- Van: reini...@gmail.com [mailto:javapo...@googlegroups.com] Namens Reinier Zwitserloot Verzonden: dinsdag 29 juni 2010 14:41 Aan: The Java Posse Onderwerp:

Re: [The Java Posse] Re: Project build with NetBeans or RAD

2010-06-29 Thread Wildam Martin
On Tue, Jun 29, 2010 at 14:23, Reinier Zwitserloot wrote: > Whyever would you put download links in manifests? That'd be silly. > [...] > But preferably you don't need to do > that at all and eclipse just knows where to find "org.hibernate.core @ > 3.5.3" for example because all IDEs ship with a f

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Wildam Martin
On Tue, Jun 29, 2010 at 14:41, Reinier Zwitserloot wrote: > I don't understand the tabs v. spaces war. There's clearly a right > answer: > Tabs for indents. Spaces for spacing. I fully agree with you and I just wanted to copy your rules to a text file for later reference when I am in discussion w

Re: [The Java Posse] Subliminal messages...

2010-06-29 Thread Moandji Ezana
On Tue, Jun 29, 2010 at 12:04 PM, Fabrizio Giudici < fabrizio.giud...@tidalwave.it> wrote: > Not necessarily. When I moved to NetBeans a few years ago (with some > HIGH skepticism) I was a long-time Eclipse user... > And did you gain a lot? Moandji -- You received this message because you are

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Kevin Wright
+1 Clearly put, and hard to argue with :) On 29 June 2010 13:41, Reinier Zwitserloot wrote: > I don't understand the tabs v. spaces war. There's clearly a right > answer: > > Tabs for indents. Spaces for spacing. > > Rule #1: A tab character can never occur in any source file, unless > the pre

Re: [The Java Posse] Sun is 'profitable' now.

2010-06-29 Thread jitesh dundas
Me neither... I am not sure if Oracle can do that. Surely looking at the report would help us out. Anybody with the details here on this.. Regards, Jitesh Dundas On 6/29/10, Derek Munneke wrote: > If the software and rnd was moved into oracle, leaving just hardware on the > books, the the account

Re: [The Java Posse] DI on Android

2010-06-29 Thread Moandji Ezana
I've been wondering about this as well. It would have been awesome if Android had had its own DI built-in. I recall Bob Lee mentioning that he created one Guice injector per Activity. I haven't used the instrumenation yet, but the locator pattern seems reasonable. Roboguice kind of scared because

[The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Reinier Zwitserloot
I don't understand the tabs v. spaces war. There's clearly a right answer: Tabs for indents. Spaces for spacing. Rule #1: A tab character can never occur in any source file, unless the previous character is (A) a tab, (B) the start of the file, or (C) a newline. Tabs anywhere else are by definiti

[The Java Posse] Re: MouseMove and MouseDrag Events

2010-06-29 Thread Christian Catchpole
I'm not exactly sure how your logic works, but regardless, I can offer this advice. If you need a the mouse path plotted, you can't reply on the number of events as the mouse passes across. You notice this in paint programs where you wiggle the mouse really quickly and you can see it stamping the

[The Java Posse] Re: Project build with NetBeans or RAD

2010-06-29 Thread Reinier Zwitserloot
Whyever would you put download links in manifests? That'd be silly. No, you could put a file mapping module-name/module-version tuples to artifacts-to-be-downloaded in META-INF/urls/ fully.qualified.module.name-2.0 each such file containing 1 URL per line, all of which have to be downloaded. You do

[The Java Posse] DI on Android

2010-06-29 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've just found this interesting post: http://www.alittlemadness.com/2010/06/29/android-functional-testing-vs-dependency-injection/comment-page-1/ I'd just like to share with you a comment that I just posted, because I'd really like to have feedback

[The Java Posse] MouseMove and MouseDrag Events

2010-06-29 Thread Shooter
I created a panel that draws rectangles as the user drags the mouse over an image. The rectangles are of fixed height(the height of the image) and cannot overlap. The logic works fine, and I can stop the dragging when the mouse event is contained inside of an already existing rectangle. My probl

Re: [The Java Posse] Episode #312 - NetBeans 6.9

2010-06-29 Thread Jess Holle
On 6/29/2010 4:29 AM, Jan Goyvaerts wrote: Project scanning ! Tor mentioned this can be disabled. But really... why it is scanning the very same Maven libraries each time I'm starting up ? NB takes a kickass start and stamps right away onto the breaks as soon as it is scanning the tenths of Mav

Re: [The Java Posse] Sun is 'profitable' now.

2010-06-29 Thread Derek Munneke
If the software and rnd was moved into oracle, leaving just hardware on the books, the the accounts should look good... but haven't seen the report yet. On 29 Jun 2010 17:47, "jitesh dundas" wrote: > I am not sure if all this turnaround in the accounts is true..Something is > wrong in the books I

Re: [The Java Posse] how to open a image by clicking a link

2010-06-29 Thread Derek Munneke
Surely there are other forums to get your home work done... On 29 Jun 2010 19:13, "marc" wrote: Hi my java class output results (some values using System.out.println ) along with that i need to give the image path so the user can click if he wants view the image. images are stored in my hard driv

Re: [The Java Posse] Subliminal messages...

2010-06-29 Thread Wildam Martin
On Tue, Jun 29, 2010 at 12:04, Fabrizio Giudici wrote: > Not necessarily. When I moved to NetBeans a few years ago (with some > HIGH skepticism) I was a long-time Eclipse user... Interesting to hear. When I switched to Java and have chosen NetBeans, my boss and other people have looked at me in a

Re: [The Java Posse] Subliminal messages...

2010-06-29 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/29/10 11:09 , Wildam Martin wrote: > > My first attempts in Java I did with Eclipse but after a while - I > was not sooo familiar with all the functionality - I tried NetBeans > and I liked it more - I simply gained productivity - of course if I >

[The Java Posse] how to open a image by clicking a link

2010-06-29 Thread marc
Hi my java class output results (some values using System.out.println ) along with that i need to give the image path so the user can click if he wants view the image. images are stored in my hard drive. can anybody help to do this. thank you -- You received this message because you are subscrib

[The Java Posse] Re: Episode #312 - NetBeans 6.9

2010-06-29 Thread Carl Jokl
One feature of Eclipse which I wonder if we may ever see in Netbeans is the more advanced Class creation screen whereby the base class can be selected and implemented interfaces etc. I find that useful in Eclipse but it is not available in Netbeans. I don't know if this is a copyrighted feature or

Re: [The Java Posse] Episode #312 - NetBeans 6.9

2010-06-29 Thread Jan Goyvaerts
Things I particularly like on NB 6.9 - Inspection of objects and expression in debugging by hovering over a variable of selection. A tooltip will appear showing the current value and you can expand for a closer look. No need to look to the "Variables" tab any more. You need a quite ste

Re: [The Java Posse] Subliminal messages...

2010-06-29 Thread Wildam Martin
On Mon, Jun 28, 2010 at 23:33, Mark Derricutt wrote: > Loved (use netbeans) the latest (use netbeans) news cast guys. But I > (use netbeans) wonder if we could (use netbeans) cut down on the (use > netbeans) subliminal messages and (use netbeans) neural reprogramming > a little. Well, a) it was

[The Java Posse] Re: Manchester UK JUG or North UK in general.

2010-06-29 Thread Carl Jokl
It looks like the JUGs in the north of the UK may be dead now. Someone at the University of Bradford has just been appointed associate dean of Employer Engagement and it looks like that covers stuff to do with managing relations with companies in industry. I have sent her an email about all the ad

Re: [The Java Posse] Re: Project build with NetBeans or RAD

2010-06-29 Thread Wildam Martin
On Tue, Jun 29, 2010 at 01:56, Reinier Zwitserloot wrote: > imports almost by definition violate DRY so storing anything in there > other than simple shortcuts is just a bad idea. I think you are right in all the cases. But what if specifying a library + domain name along with a download link in

Re: [The Java Posse] Episode #312 - NetBeans 6.9

2010-06-29 Thread Wildam Martin
On Mon, Jun 28, 2010 at 21:18, Mark Derricutt wrote: > I remember a few years back the Posse were getting a lot of flak for > being a "tool/ide fanboy podcast" focusing too much on tooling stuff. > Seems the guys can't win no matter what content they produce :) Didn't know that. But I am a too ne

[The Java Posse] Re: how to open a image

2010-06-29 Thread marc
I am writing this code in my testcase using seleneium rc. my test case output test results (some values using System.out.println ) along with that i need to give the image path so the tester can click if he wants view the screen shots.images are stored in my hard drive. On Jun 29, 10:19 am, jitesh

Re: [The Java Posse] how to open a image

2010-06-29 Thread jitesh dundas
There are many ways to write your functionality..Its all about using the right functionality. request.getServletPath gives the relative path .. One point though - use the relative path and not the absolute one if you want some dynamic functionalities.. Give us your code and we could help you out

Re: [The Java Posse] Sun is 'profitable' now.

2010-06-29 Thread jitesh dundas
I am not sure if all this turnaround in the accounts is true..Something is wrong in the books I fear.. In any case, Sun is a good buy for Oracle and definitely for developers... Regards, JD On Tue, Jun 29, 2010 at 12:43 PM, Moandji Ezana wrote: > On Tue, Jun 29, 2010 at 4:25 AM, Steven Herod w

[The Java Posse] Re: how to open a image

2010-06-29 Thread marc
yap. do u hav any idea On Jun 29, 9:28 am, shainnif ismail wrote: > Good luck have you written any code yet? > > On 29 Jun 2010 08:07, "marc" wrote: > > Hi everyone > > i am new to java. i am writing a small program to show the path of the > image in my hard drive so the program gives the path t

Re: [The Java Posse] how to open a image

2010-06-29 Thread shainnif ismail
Good luck have you written any code yet? On 29 Jun 2010 08:07, "marc" wrote: Hi everyone i am new to java. i am writing a small program to show the path of the image in my hard drive so the program gives the path to the user so that the user can go to the image by clikcing the given path. Than

Re: [The Java Posse] Subliminal messages...

2010-06-29 Thread Moandji Ezana
On Tue, Jun 29, 2010 at 2:38 AM, Marcelo Fukushima wrote: > To be fair, both netbeans and intellij have an eclipse shortcut profile so > you dont have to learn much shortcuts Okay, but still, what's the point of changing, apart from for change's sake? Moandji -- You received this message beca

Re: [The Java Posse] Sun is 'profitable' now.

2010-06-29 Thread Moandji Ezana
On Tue, Jun 29, 2010 at 4:25 AM, Steven Herod wrote: > What a difference a change in management makes. The article says: "Oracle said that had Sun remained a standalone company, it would have been profitable in the latest period, compared with posting a loss last year." So maybe it didn't make

[The Java Posse] how to open a image

2010-06-29 Thread marc
Hi everyone i am new to java. i am writing a small program to show the path of the image in my hard drive so the program gives the path to the user so that the user can go to the image by clikcing the given path. Thank you -- You received this message because you are subscribed to the Google Gr