This week's book giveaways are in the Jython/Python and Object-Oriented programming forums.
We're giving away four copies each of Machine Learning for Business: Using Amazon SageMaker and Jupyter and Object Design Style Guide and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!

Alfonso Sanz

Ranch Hand
+ Follow
since Dec 19, 2015
Cows and Likes
Cows
Total received
3
In last 30 days
0
Total given
0
Likes
Total received
5
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Alfonso Sanz

Thanks Rob for your prompt and expert answer. Indeed seemed to be linked to focus loss.
1 week ago
Hello,

taking as example the code from:
https://docs.oracle.com/javase/tutorial/uiswing/examples/components/index.html#ListDemo,

being like this:





When changing:



by:




behaviour changes so much...

This is:

1) Hire button must be pressed twice instead of one to add a new elemet to JList.
2) If press Hire once the JFormattedTextField is emptied, it shows an element.


I would like to have the advantages of original version but having the Formatter as well.

What changes should I do?

Thanks in advance!!

1 week ago
Hi Iuliana!

First of all, congratulations for the second edition.

I would like to know if the book covers AOP.

Best Regards.
3 months ago
Thanks Peter for your answer. I did not know the book.
BR
1 year ago
Hello Craig,

My question is about the certificate:

does this book cover the whole matters of the certificate? Could be used as a guide to take the exam  with no taking the Pivotal course ?

does it worth get the certification?

Thanks in advance.
1 year ago
Hi!

Under "Understanding Views"

The text says: "... Both of these methods can throw a checked IOException, such as when the view class type is unsupported."  

But public static <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type, LinkOption... options) does not throw any IOException.

Regars,
Hi!

I am sure it will be a great book and I hope there will be lots of test-like questions to practice!

Congrats to Sierra, Bates and Robson!
great and very very instructive answer!! I learnt a lot on your explanation. Thanks a lot John Damien Smith!!

PD: Indeed I had already used AudioClip.

Thanks again!
1 year ago
Great post and great book! Thanks Knute Snortum.

For the time being I am just invertigating how to play sounds and still not sure whethrt to use Clip.loop() or Mediaplayer.play(). It's not about JavaFX.

I also consider using "aplay" system call cause so far this approach is working best on Linux, where as I said above, two instanciations of MediaPlayer give sometimes MediaException.

In anycase, I'll consider to buy the book you recommend me. It looks quite interesting.

Thanks again.

1 year ago

Knute Snortum wrote:Instead of
what about Thread.sleep(1000); // one second

That may not be the best way of getting a delay in JavaFX, though.



Thread.sleep() has the same effect. Both sounds at a time.
1 year ago
One more question:

Here is the second piece of code:



In spite of the delay, both sounds are being played in parallel. Why? How to make a real "gap"?

By the way... under Windows everything runs conveniently, but under RHEL,  when creating looks like randomly I get MediaException in init(). Enybody knows??

Thanks in advance.
1 year ago
That's just what I needed! Thanks you Stephan van Hulst!
1 year ago
I'll give it a try.
Thanks!
1 year ago
I have also added Thread.sleep() with a time greater than the beep duration as parameter in between but only one os played.
1 year ago