I have been a Java developer for many years now and have always taken for granted some of the standards pushed on me from the beginning. Java standards such as basic Java Beans (aka POJOs) are supposed to make life easier by providing simple getters/setters that work with the private fields of your Object. For…
Author: mhicks
Java Media Components (JMC) in Swing
If you’re like me and have been really excited by all the hype of JMC, but think of yourself as a Java developer and not a fly being beckoned to the newest scripting framework with its bright and illuminating glow (JavaFX that is) then JMC comes as something of a disappointment. After all, every article…
JavaFX Wrapper: jSeamless 2.0
I made a post recently (I Hate JavaFX; I Love JavaFX) in which I did a preliminary investigation on the idea of using the JavaFX API directly in Java rather than relying on JavaFX Script to do the job. I used the Clock example I saw on a tutorial on Sun’s site as a practical…
I Hate JavaFX; I Love JavaFX!
I’ve posted a few places and gotten into more than a few rants publicly about how awful I think it is that Sun has been pushing JavaFX to the Java community. This has not been based on what JavaFX provides, because I think that’s absolutely spectacular, but rather that they created a whole new language…
Flex WebBrowser Component
I’ve been working on an acceptable solution to display web pages within my Flex applications and as any of you know that have done any research on it will find, it’s frustrating how lacking Flex is in support for this. The ideal solution would be for Flex to provide a fully functional component that renders…
Why Scala is AWESOME
Many people refer to me as a Java evangelist, Java super-freak, and many other terms that tend to suggest that any language other than Java is outside of the realm of consideration. Though true that I do my fair share of bashing of languages like Ruby or Groovy, it is because I really have longed…
Java Delegates
If you’re searching the internet for the title of this post you’ll see a lot of people ranting about how Java doesn’t have Delegate support. Though I have been one of these people, and continue to be frustrated that there is no native solution, that is not the purpose of this post. I write this…
Some Rules Can’t Be Broken
I’m a big lover of Reflection in Java. It’s extremely powerful and lets you do things that technically shouldn’t be allowed. For example, an Object with a private method cannot be invoked outside of that method by virtue of the “private” keyword. However, if you use reflection: public class MyObject {private void doSomethingHidden() {System.out.println(“I’m hidden…
Fastest Deep Cloning
I recently needed to do deep cloning of my Java objects and began to do the old-school style I’ve used for years: Use ObjectOutputStream and ObjectInputStream to do a “poor-boys” deep clone. However, the performance of this on large Objects is absolutely awful not to mention the amount of memory and CPU it takes to…
Myth Assistant
Though I actually wrote this a couple years ago I finally decided to contribute this utility back to the community. This tool allows a graphical remote connection to a MythTV database and can copy and delete recordings over a Samba share. It is a graphical utility written in Java to search recordings, see details of…