View RSS Feed

Uncategorized

Entries with no category

  1. Simple Frame Transitions without Complex Code

    by , 03-22-2012 at 08: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:

    Trident:
    Project Kenai — We're More Than Just a Forge

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

    However, I've been impatient lately ...
  2. Compilation of better code advice

    by , 12-27-2011 at 11: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:
    return
    ...

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

    Categories
    Uncategorized