Skip to main content
View by: Most Recent | Topic | Community | Webloggers   
Monthly Archives:    

Blogs by topic: J2SE

• Accessibility • Ajax • Blogging • Business • Community 
• Databases • Deployment • Distributed • Eclipse • Education 
• EJB • Extreme Programming • Games • GlassFish • Grid 
• GUI • IDE • Instant Messaging • J2EE • J2ME 
• J2SE • Jakarta • JavaFX • JavaOne • Jini 
• JSP • JSR • JXTA • LDAP • Linux 
• Mobility • NetBeans • Open Source • OpenSolaris • OSGi 
• P2P • Patterns • Performance • Porting • Programming 
• Research • RMI • RSS Feeds • Search • Security 
• Servlets • Struts • Swing • Testing • Tools 
• Virtual Machine • Web Applications • Web Design • Web Development Tools • Web Services and XML 


J2SE

We'll do anything for sports...and in Australia, they'll even delay their normal switch back from Daylight Saving Time or Summer Time. The change would have happened on March 26 2006, but to accommodate the Commonwealth Games this year, the change will be on April 2 instead. Unfortunately, this means that a whole lot of software is now broken. Unless you're running the most recent updates of the...
on Mar 20, 2006
As I'm going to deliver some presentation on widgets such as Yahoo! Widgets (formely known as Konfabulator) and Google Desktop Sidebar, One idea hit me: Why not Java for widgets? Most of widgets take advantage of JavaScript to program widgets, and most of widget engines provide a considerable amount of APIs to allow programmers to work on OS, Network, and so on, which Java already has done....
on Mar 10, 2006
When people ask me "what do you think of AOP?", I tend to flinch, because the term AOP has come to be used to cover a very wide range of different uses, some of which I think are Totally Wonderful and some of which I think are Thoroughly Bad Ideas. Here's a brief survey of the range and of my reactions. Quick Overview of AOP The core concept of Aspect Oriented Programming is that there are...
on Mar 8, 2006
I like that Java can tell you what platform it is running on, but often I forget what strings to expect from the os.name and os.arch System properties. Google revealed a nice list. Why would you ever want to use this? It is handy in any case where you need to know if you are running on Mac OSX, Linux, Windows, or any other specific platform. For instance, if you want to save a config file in an...
on Feb 27, 2006
Often we see code like this.    Connection conn = DriverManager .getConnection("jdbc:mysql://localhost/springdao?user=vk&password=password"); As it can be seen above, the password is embedded in the source as clear text. No corporate risk management folk would approve of exposing passwords, which could potentially expose access to sensitive data. Of course there are many...
on Feb 25, 2006
After nearly eighteen months of effort within Sun, the Java Community Process, and the wider JDK Community, the Mustang Beta Release is now available. In contrast to the source and binary snapshots that we’ve been shipping for over a year, the formal beta release has been through many weeks of intensive testing—and a tiny little bit of last-minute bug-fixing—in order to...
on Feb 16, 2006
Whoa! Mustang is there! The long awaited, butts kicking Beta release of Java platforms is ready for downloads! And I'd like to join my colleagues and say a couple of words about this milestone. It's not something totally new for most of you. Everyone had a chance to take a look at snapshot releases before. Feel free to grab it here: the main page of the Beta release if you want to just...
on Feb 15, 2006
Mustang Beta Release is now available! Mustang has several enhancements in the VM and the JDK tools to help identify the symptoms and diagnose memory problems. One typical type of memory problems is memory leak causing continuously growing in heap memory usage. Eventually it may lead to OutOfMemoryError. Another typical type is the application's performance problem with excessive object...
on Feb 15, 2006
Since Java WebStart 1.4 does not work on Linux kernel 2.6, there are many new features in a certain operating system release that are interesting to the customer I am currently working for and some applications they are willing to use require Java 5, we have started testing their main application on Tiger. However, it fails miserably due to two major bugs that have been available since the first...
on Feb 8, 2006
Ten days ago, a survey came out aimed at people who use the automatically generated API documentation for the Java platform. (Many people call this the javadoc, but, strictly speaking, that's just the name of the tool that produces the API doc.) Amy Fowler blogged about the survey back then, but we want still more responses. So, if you haven't already... Please take the javadoc survey! It's...
on Feb 6, 2006
For some time I've been peddling this theory that one of the greatest barriers to Swing adoption is our monolithic API documentation (javadoc). I'm a personal fan of javadoc and rely on it for solving a large percentage of my programming questions, but you could say I know where to look, and that, at least in the Swing case, over the years my brain has learned to block out that 80% which isn't...
on Jan 27, 2006
Treats contained numbers sensible when comparing strings Natural Order(e.g. implemented in Windows XP's file explorer) rfc 1.txtrfc 822.txtrfc 2086.txt            Java's default OrderSomewhat stupid... rfc 1.txtrfc 2086.txtrfc 822.txt            (Kudos to Martin...
on Jan 13, 2006
Few days ago I was listening a client about the framework his company was producing for a long time. Tips about the workflow, security and several other common features of a framework. A special feature gave me a déjà vu: the control of holidays in the financial modules. Every financial calculus is based on working days and every framework I've ever seen in my life had also a module for the...
on Jan 11, 2006
Just in time for the holidays! The Early Draft Review version of the JSR 270 specification, which governs the content of the Java SE 6 “Mustang” release, is now available. JSR 270 is an “Umbrella” JSR, so it doesn’t define specific features itself—instead it lists features defined in other JSRs, or in the concurrent maintenance...
on Dec 21, 2005
In my last blog I explained how to customize the visual feedback provided by JPasswordField. Unfortunately the first option I detailed, specifying a character that takes no space, had a bug in it. This blog discusses the bug and how to fix it. If you want to cut to the chase and run the demo it can be found here. Specifying you want JPasswordField to render a character with no space is as easy...
on Dec 19, 2005
One of the things that keep popping up often is a need to write batch programs that is started from command line. Every single time its always been either reinvent the wheel or copy/paste from old code. So recently decided to put an end to this practice by looking at CLI solution from Apache. CLI is a really nice utility and could be a potential enterprise reusable component. However while...
on Dec 19, 2005
My previous entry about JMX got some real feedback from people that are working on JMX. In appreciation of that, I wrote a little utility in the hope of contributing back to JMX. One of the problems I had was the lack of "weak MBean" support ---- I didn't want the MBeanServer to hold a strong reference to my MBean, because that prevents those objects from GC-ed. Eamonn McManus suggested a...
on Dec 17, 2005
.code { margin: 0.5em 1em; padding: 0.5em; border: thin solid black; background-color: #eee; color: #0000ff; } It has taken me a while to get into java 5 annotations. The reason partly was how late java 5 distributions arrived to the macosx platform (and it's still not the default version). About six months ago this stopped being an issue for me as i am now developing on...
on Nov 24, 2005
Thread dumps are very useful for diagnosing synchronization related problems such as deadlocks on object monitors. Ctrl-\ on Solaris/Linux or Ctrl-Break on Windows has been a common way to get a thread dump of a running application. On Solaris or Linux, you can send a QUIT signal to the target application. The target application in both cases prints a thread dump to the standard output and also...
on Nov 23, 2005
In the Java platform we have tended to focus on adding lots of power and flexibility. That's great, but sometimes that power and flexibility can get in the way of doing common tasks. As part of the Ease-of-Development initiative we have been focusing on simplifying common tasks and getting rid of unnecessary boilerplate code. Here are my five of my favorite cleanups so far: #1: Opening a...
on Nov 13, 2005