Published on November 13th, 2006 in Java
There have been a lot of rumours spreading around the web about the possible “open-sourcing” of Sun Microsystems’ Java. Until today, it was known that J2ME (Micro Edition) for PDAs and other portable devices was going to be opened up, but it was unknown if more important parts like the JDK, J2SE and J2EE (Standard [...]
No Comments | Be the first to write one!
Published on July 17th, 2006 in Java
Finally I came across a project that made heavy use of multithreading. As I wanted to pause and resume one particular thread, I had to use synchronized variables instead of the deprecated suspend and resume methods. I implemented them into my own, clean MyThread class. But since those two, deprecated methods were defined as final [...]
4 Comments
Published on June 17th, 2006 in Best of, Java, Other
You gotta be kidding right? Well, I’m not. And this could become something big and meaningful. It could win over a few million people over to the Java platform. But first things first:
As Visual Basic 6 gets older and older, more and more problems start to appear. Microsoft stopped supporting it, hoping most developers would [...]
6 Comments
Published on June 14th, 2006 in Java
Every client-side Java programmer knows this problem: How do I most effectively create a GUI for my application? Most IDEs do provide some kind of support for this task, either built-in or through plug-ins, but most of the time the support is at best awful (either lacking important features or just being way too slow). [...]
No Comments | Be the first to write one!
Published on May 24th, 2006 in Java
Ever wanted to know more about “serialVersionUID”? Check out this episode of the (Not So) Stupid Questions 8: serialVersionUID. This “stupid question” is about the serialVersionUID, which defaults to being a checksum of a class’ fields, methods, and other members. Now that some IDEs emit a warning when you don’t override it, the questions are: [...]
No Comments | Be the first to write one!
Published on May 11th, 2006 in Java
If you want to make your Applications more secure and prohibit tampering, make use of the jarsigner tool, which is an excellent & easy to use tool.
So, if you wanted to sign your jar file with your own keystore, which is called “myapplication.jar” , the command would look pretty much like this:
jarsigner -keystore C:myapplicationmykeystore -storepass [...]
No Comments | Be the first to write one!
Published on May 5th, 2006 in Java
Ok, this post is for newbies. Some of you might have been looking for a similar function to Sleep() that you have come to know from Visual Basic. Well, it takes a bit more in Java, take a look at the following code. Simply insert it into your main function to try it out:
Long stoptime [...]
1 Comment
Published on April 27th, 2006 in Java
Here’s a nice and easy way, to change the default look & feel of your Swing apps. By adding this line of code, you tell Swing, not to use the default looks of the Operating System it’s running on:
JFrame.setDefaultLookAndFeelDecorated(true);
This will be applied to all other frames in your application as well, as you should [...]
No Comments | Be the first to write one!
Published on April 27th, 2006 in Java
Ever wondered how to get that annoying Java cup icon out of your applications and exchange it with your own? Well, it’s easier than you might think, leaving me wondering why there are so many Java apps still carying aroung that ugly standard icon.
Here’s the code:
frame.setIconImage(new ImageIcon(”feed-icon-16×16.png”).getImage());
Pretty easy, huh?
I successfully tested it with the PNG, [...]
2 Comments