#java-8

Javachannel's interesting links podcast, episode 5

Welcome to the fifth ##java podcast. I’m Joseph Ottinger, dreamreal on the IRC channel, and it’s Monday, 2017 October 23. This podcast covers news and interesting things from the ##java IRC channel on Freenode; if you see something interesting that’s related to Java, feel free to submit it to the channel bot, with ~submit and a URL to the interesting thing, or you can also write an article for the channel blog...

9 minute(s) read

Eclipse Neon will require Java 8

Excellent news from the Eclipse Foundation: the next version of Eclipse, called “Neon,” will require the Java 8 runtime. The announcement in email is underwhelming, but the actual project plan is a little more explicit and informative: In general, the 4.6 release of the Eclipse Project is developed on Java SE 8 VMs. As such, the Eclipse SDK as a whole is targeted at all modern, desktop Java VMs. Most functionality is available for...

1 minute(s) read

Updating a JProgressBar

This is a “simple” example of how to update a progress bar in a Swing application. package org.javachannel; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /** * Created by odinsbane on 9/22/14. * * This is a quick example of a progress bar that updates. * * This code is distributed as is; without warranty; or guarantee. It can...

4 minute(s) read

How to execute a group of tasks

Someone on the channel today asked about how to run a series of tasks, with a terminal condition of sorts. Basically, they wanted to run a number of tasks, and know when they were done. The question was originally built around having a List of results (List<integer>, maybe?), counting the number of results until the number of results matched the number of tasks. The channel suggested using an ExecutorService, particularly the shutdown...

3 minute(s) read