Tag dev

Java Platform

This post explains the most relevant concepts about the software needed to run and/or compile Java on a device. It also clarifies the differences between concepts like JVM, JRE, JDK, OpenJDK or Java SE. Java Platforms A Java platform is…

How to scale an image in Java

I programmed my own function, based on other examples: /** * Method that scale an image (BufferedImage) into the specified dimensions * @param sbi Source image * @param imageType Image type among BufferedImage.TYPE_… constants (example: TYPE_INT_ARGB) * @param dWidth Image…

Play sound clip from local file in Java

This solution works only for .wav files. Source code: public void playSound() { try { AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(new File(“”).getAbsoluteFile()); Clip clip = AudioSystem.getClip(); clip.open(audioInputStream); clip.start(); } catch(Exception ex) { System.out.println(“Error with playing sound.”); ex.printStackTrace(); } } External References “Playing…

DevOps

DevOps, from development operations, is a cultural and organizational movement that emphasizes collaboration and integration between software developers (Dev) and IT operations (Ops) teams. DevOps uses a set of practices and tools to integrate the work of dev and ops…

Cross-platform Programming Toolkits

This post features software to create widget toolkits for creating graphical user interface (GUI). List of cross-platform Widget Toolkits Widget toolkits featured on this post: GTK Qt wxWidgets GTK Free and open source. C++. Qt Free and open source.…