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

Recently I have been working on a new Java SE project related to a Sun Connection Technology called Service Tags. I'd like to give a short introduction of the Sun Service Tags technology that you may find various interesting ideas of leveraging it. Sun Service Tags The Sun Service Tags enable automatic discovery of the tagged systems and softwares on your systems or a local network. The JDK and...
on Feb 19, 2008
Scenario version 0.5 is out. For the list of features and enhancements check out Hans's announcement here. One of the things we have done for this and will do for future releases is to provide a webstart extension for Scenario binaries. Using the extension allows for simpler deployment for webstart enabled applications which use Scenario. Instead of hosting Scenario...
on Feb 8, 2008
There has been much discussion on whether Java programmers are becoming dinosaurs, on an evolutionary dead end and overtaken by more nimble mammals. Bruce Tate has long abandoned Java for greener (or redder) pastures. Bruce Eckel has embraced Flex , Bill Venners favors Scala. Python is making inroads in college curricula. What is a Java programmer to do? In this blog, I argue that we need to...
on Jan 8, 2008
I got an OLPC for the holiday season. No, it wasn't for the Horstmann twins—after all, it is one laptop per child, so the child must be myself. I got it through the “give one, get one program”. For $400, I got mine and a much more deserving kid somewhere out there got one as well. (Hurry if you want to get yours—the program ends today.) Twelve years ago, in Chapter 1 of...
on Dec 31, 2007
I would like to discuss some proposed changes in the JColorChooser component. At present, the JColorChooser component contains the following default tabs: * Swatches: the predefined set of colors * HSB: color selection defined by hue, saturation, and brightness using a diagram * RGB: color selection defined by its constituents (Red, Green, and Blue) using a slider My suggestion is to combine the...
on Dec 19, 2007
Earlier I shared the Java/JDK issues that I faced while writing an annotation processor. Today I am going to share my experience of using Maven. The issues have hardly anything to do with the annotation processor itself. If you are curious about what that annotation processor does, please refer to my earlier blog. Now, without wasting much time, let me describe the issues in the order in which I...
on Nov 30, 2007
Correct usage of constrained properties seems still remain unclear for many users. As is the convention in the Java, the IllegalArgumentException is thrown if a method receives illegal arguments which cannot be used to execute the method. However, this approach is not applicable for the set methods, since it is impossible to identify whether all values can be used or not. That is why using the...
on Nov 22, 2007
After the widespread disapproval of Apple’s choice not to ship Java 6 with its latest Leopard OS it has come to my attention that there are more manufacturers that are adopting this anti-Java approach. Today, as I had planned for months now, I went and bought a new laptop to replace my aging Vaio. When it comes to hardware I always go big, so I went a little over my budget and got a brand...
on Nov 2, 2007
Here is an good list of top Java books available for preview on Google Books. Google Books provides scans of thousands of textbooks. The scans are not the best, most books have visible scan defects in them. Even though the scans are not the best, there are some features that just work well. Just like Google Maps, where you can send a link to a map (with a set size, address, etc), with Google...
on Oct 27, 2007
A Potted History of Applets Dion was privy to some news about the latest news on Java Applets. But why a re-birth of applets and how did they get from front page news to an industry footnote? My first experience of applets was from WebRunner, the Java based browser which spread through Sun like wildfire. I was working for Sun in Europe in those days and it was such a step up in ease of use...
on Oct 23, 2007
I allways wandered why there's no generic api defined for trees under the umbrella of java.util.Collections api. And every time I needet to handle tree-structured data I ended up writing quite the same code with slight modifications once again. So I recently started to create an API that is both generic and powerfull enough to never again write a line of code just to handle objects that are...
on Oct 19, 2007
Lets talk about FeatureDescriptor, the superclass for all other descriptors. It enables to add extra metadata to describe the beans. The builder tool could use such metadata to provide enhanced functionality. You can use the getValue(String) method to retrieve metadata. For example: BeanInfo info = Introspector.getBeanInfo(JLabel.class);Object value = info.getBeanDescriptor().getValue("...
on Oct 4, 2007
Are you doing engineering using Java? Or even science? Than you sometimes might need to calculate how objects move under the impression of forces and torques. The following might be for you then... Maybe somebody of you, dear reader, has already tried out my flight simulator FlyingGuns which is part of the Distributed RealTime Simulation project on SourceForge....
on Sep 23, 2007
Say No To Powerpoint I loathe authoring with Powerpoint (or its OpenOffice equivalent). Putting together a presentation requires a horrid amount of mouse clicking and fussing with fonts and formatting. Instead, I use the amazing HTML Slidy. You write your slides in XHTML (I use XMLMind, but any web editor that produces XHTML will do.) Then you add links to the Slidy style sheet...
on Aug 18, 2007
In short, don't rely on the finalize() method as your only cleanup method, especially if it is deleting files. Instead make up a cleanup method (cleanup() works nicely) that lazy deletes things. Here is an example. public class Example {  boolean isCleanedUp = false;    public synchronized void cleanup() {    if (isCleanedUp) return;    // flag as...
on Jul 31, 2007
Open JFX updated OpenJFX, the open source version of Java FX, was just updated. It has lots of improvements and demos, but the biggest thing is the first compiler, which will compile Java FX Script directly into bytecode rather than interpreting it. This is huge, because it makes FX Script a first class Java language, as well as being several orders of magnitude faster than interpretation....
on Jul 20, 2007
This month's version of the Core Java Tech Tips describes Java SE 6 Cookie handling along with Drag and Drop tips for JTree components. These tips have been part of Sun's newsletter program for a long time. Now you have another option for their delivery, and this one might be the most convenient. The Core Java Tech Tips are now available via blog. You can use your browser or favorite blog...
on Jul 2, 2007
I love the enhanced for loop construct introduced in Java 1.5. It makes the code look clean, and saves us from dealing with iterators or array indices. But since it is essentially syntactic sugar, it does create iterators behind the scenes as necessary. This can result in insidious bugs since if the passed collection or the array is null, your for loop will throw a NullPointerException. Here is...
on May 24, 2007
Josh Bloch and Neal Gafter have been doing their wonderful Java Puzzlers shtick at JavaOne for the last 4 years. This year, Bill Pugh has stepped in for Neal to keep the puzzlers puzzling. The puzzles point out all sorts of interesting and exasperating gotchas in the Java language and libraries that linger for ages waiting to humble us all. This year's set of puzzles include a slew of problems...
on May 9, 2007
As noted by various people, including Malcolm Davis, there's a lot of Apple laptops in evidence at the show this year. In particular, a whole slew of them on-stage for the keynote sessions. But where's Apple? Really? For all of Apple's pledges that Java is a first class citizen, Java support on OS X has been tardy, at best. Each new, major release of Java takes many months (as in over a year)...
on May 9, 2007