View RSS Feed


  1. Simple Frame Transitions without Complex Code

    by , 03-22-2012 at 07:18 PM
    I've spent the past few days looking up Java window transitions that work with Swing components & containers (JFrame, JPanel, etc.).

    Yes, there are packages such as JavaFX which includes a Timeline & Transition framework. I also came across these:

    Project Kenai — We're More Than Just a Forge

    Filthy Rich Clients (find the Animation jar (org.jdesktop.animation))

    However, I've been impatient lately ...
    Tags: 1'", 1, transition, window Add / Edit Tags
  2. Compilation of better code advice

    by , 12-27-2011 at 10:14 PM
    Writing Better Java Code
    This is a compilation of advice on writing more efficient Java code. Whenever I find more I'll add them to the list. If you spot something fishy do say so, so that I will correct it.

    Faster code:
    1. Use integer instead of long (long is a 64bit integer, most processors are 32bit so operations can run 2-4 times faster with an int)
    2. Use local variables instead of class members
    3. Use shorthand when evaluation booleans
    Java Code:

    Updated 12-27-2011 at 10:26 PM by ozzyman