Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

View RSS Feed

All Blog Entries

  1. Look and Feel ToolBar solution.

    This solution is written coz of the problem i have faced for almost a week and after a huge panic, i came to find an alternate solution to solve the problem.
    The problem is Java Synthetica BlackEye Look and Feel with the desktop application. Well, if you try to place a tool bar over your desktop application, you will
    never be able to see LAF(Look and Feel) effect over it. You will most probably get even more confused if you will see the effect on the menu items. Well, what is the actual ...
  2. Fun little optimization

    Disclaimer: While optimizations can be fun and addictive, determine if your particular application needs any before attempting to optimize it.

    I've always wondered if the Java compiler was capable of performing certain loop optimizations. So for fun, I picked a two of them (a simple permutation and loop unrolling) and tested them out.

    public class Test
    	public static void main(String[] args)
    		final int DIM = 0x2000;

    Updated November 23rd, 2011 at 08:32 AM by helloworld922

  3. Shutdown Hooks

    Shutdown hooks are threads to be run when the JVM is about to terminate. This can happen if all non-daemon threads have finished execution, System.Exit() has been called, or if the user is logging off/shutting down their OS among other operations.

    So to play around, I decided to write a simple shutdown hook that would print out "goodbye!" when the JVM was shutting down. The main program would spawn a number of threads which each would stay alive for some number of time. ...

    Updated September 21st, 2011 at 01:50 AM by helloworld922

  4. Java Programming Careers. Our new website!

    We get many members here on the forums posting Java jobs or talking about Java careers.
    Because of this we decided to branch out and create a dedicated Java careers site.

    If you are looking for a career in Java or are looking to change from your current job, please visit Java Programming Careers - Java Developer Jobs, IT Jobs

    If you need career advice, or would like to know more about being a full time Java developer, feel free to contact me or post in the forum ...
  5. Java Native Access and Eclipse Indigo Swing GUI editor

    Normally for native access, I would use JNI to run native code, especially code I've written which interfaces with Java components. However, often you just want to call native functions (particularly system calls).

    Rather than having to go through the whole JNI process (which is rather painstakingly slow), someone has created the JNA library which allows you to basically call native methods directly.

    As far as I understand, there are two main ways to use JNA:
Page 10 of 13 FirstFirst ... 89101112 ... LastLast