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

It’s after JavaONE and as promised, here is the answer to the performance puzzler with a stack trace. But first a word about JavaONE. The physical layout was the same as last year and as a result, JavaONE suffered from some of the same problems as last year. This year Oracle took a lot of advice from an advisory committee and the result was the conference made very good use of the poor...
on Oct 10, 2011
I was experimenting with Java 7's Locale and ResourceBundle classes recently. Java 7 introduces two new Locale categories: DISPLAY and FORMAT. You can set the default locale for localizable user interface resources independently from the default locale for data Format subclasses. For example, you supposedly can set up a DISPLAY locale to display Spanish (es) resources for the user interface text...
on Sep 18, 2011
I admit that I haven't been particularly active in the i18n or Java standards bodies in the last few years. Pardon me, but I had a wild rumpus in a startup for almost 3 years, then joined Yahoo for a couple years, and BAM! ... during that time, the Unicode Consortium added emoji, and the Oracle Java folks overhauled the once relatively simple java.util.Locale class among other things. That'll...
on Sep 13, 2011
I recently installed Java 7 on my Mac OS X system. Although the installation went smoothly, I did run into one problem that might not be a big issue for you. I didn't go through the hassle of compiling it for myself. Instead, I opted to grab a precompiled JDK from here: http://code.google.com/p/openjdk-osx-build/downloads/list?q=label:Featured Specifically, I chose the OpenJDK 1.7 universal...
on Aug 21, 2011
You know that generics are too hard when you can't even figure out why something does not compile. Found this (simplified example of something that I have encountered): interface Test1<T> { public List<T> getList(); } public void test1(Test1<?> arg) { List<?> result = arg.getList(); } interface Test2<T> { public List&...
on Aug 4, 2011
I had referenced Ted Wise's post Using Java 1.5 and Java 1.4 on Snow Leopard in a project, and happened to notice a comment from a week ago about someone having trouble getting Java 1.4 to work in Mac OS X 10.7/Lion, so I decided to check it out, since I might also run into it later. I'm using Snow Leopard currently, so I used a free utility called unpkg to look at the Java for Mac OS X 10.7...
on Apr 18, 2011

GUI

Welcome java 7 part 3 -NIO 2 JSR 203   So like the coin project, in the NIO 2 there aren't unprecedented features in this e -specification, but now it's possible do some easier work I/Os in java. With the class java.io.Files are possible to perform several operations in simple mode. For that it needs and uses the java.io.file.Path, this interface represents files and...
on Oct 10, 2011
These are the days to be a Java UI developer! For so many years I have dreamt of Java’s return to the client side, and now – at long last – the developers at Oracle are making this dream come true.  Since the late nineties I have been developing a large number of both web based and swing based UIs, and it has always felt like a hard choice between two imperfect sets of...
on Sep 18, 2011
Sometimes I wonder why rather good technology suddenly dies. Does anybody remember InfoBus? JavaBeans? Swing? Java? All of those had been brilliant technologies, enabling programmers doing things really easily. But at one day, news about those technologies just stopped. People tend to say that those technologies "died". Well, what does that mean, and is that true? Let's start with...
on Apr 24, 2011
The first rule of Swing programming is to always interact with Swing components in the Event Dispatch Thread (EDT, for short).  Swing is single-threaded (as a lot of UI toolkits are) and as such it can only makes guarantees about the state of Swing components when interacted with properly on the EDT.  Some Swing methods are thread-safe, such as JComponent.repaint.  Recently, I...
on Jan 19, 2011
I am pleased to announce the release of Apache Pivot 2.0. Apache Pivot is an open-source platform for building installable Internet applications (IIAs) in Java. This major update includes a number of significant enhancements including: Support for dynamic data binding Pivot 1.5 and earlier supported data binding via a load/store model that maps well to client/server applications such as REST...
on Jan 19, 2011

Programming

I talk about java.lang.ref.* in my performance tuning course because these things (along with anything that implements finalize) are more expensive to create than normal objects and require at least two rounds of GC before you're completely rid of them. Of the bunch, that includes Reference, WeakReference, SoftReference and two other private reference classes that get mixed up with...
on Sep 29, 2011
JavaFX 2.0 is not multiplatform! It can't do subpixel antialiasing!! … these were among the reactions to the first beta releases, that I'm not sure to understand as trolling or simple laziness. These mysteries are usually solved with a simple look at JavaFX's public JIRA issue tracking system. The current implementation is still a beta, not even a feature-complete beta, so there are many...
on Jun 18, 2011
It's been a long time, well long in Internet-years, since my last blog on JavaFX. Now I'm approaching JavaFX 2.0 by porting the JavaFX 1.x programs that I had written and blogged about here. These new ports will allow me to evaluate the evolution of the platform. Has the wait been worth it? Porting from JavaFX 1 For my first port I’ve picked JavaFX Balls. (But this blog is not about...
on May 28, 2011

Mobility

 In May Google and Willow Garage announced the first pure-Java implementation of ROS - Willow Garage's Robotic Operating System. Called “rosjava”, the new library is still at alpha level, but it is clear from their forge that active development continues. Android is is well suited for robotic applications with its support of audio, accelerometers, GPS, cameras...
on Sep 24, 2011

Community

Given some information about Java 7, i will now show the imrovements to the latest version.In this article i use the netbeans version 7.0.1, for this you need to download the JDK 7 (the link is below the article). After downloading and installing Netbeans (but during the installation remember to select the JDK 7 path).   The first example will show switch with String, previously...
on Aug 21, 2011
After a long 5 year wait, finally comes the new version of Java,  jdk 7. The entire Java 7 project was divided into two sub-projects: The coin project; which featured a few improvements to the language like switch with strings, mutil try etc. Lamba's project containing some of the most innovative and complex features results in leaving the...
on Aug 11, 2011
Beyond being merely a computer programming language, Java is the most widely used software platform in the entire world. There is a large number of various software solutions that were developed using this technology. Without many people being aware, Java is present in our daily lives in embedded technologies like blue-ray discs and a countless number of sites on the internet that...
on Jul 26, 2011

Testing

Hello guys, This post reflects a thought around a case that I have been experiencing. There a lot of things that involves implementing a spec and one of them is that you need to guarantee that you are not exposing more than it is available on the Javadoc. There are a few static factory methods and no constructors, means public and protected, in our Javadoc scenario. So, you need to guarantee,...
on Apr 13, 2011

Blogging

I know what you are thinking...consulting has always been a service. But the Cloud is making it evolve. Cloud Computing has been one of my favourite topics in the last couple of years. Coming from a sysadmin background I am frequently in awe of how easy it is nowadays to conjure up vast amounts of computing and storage resources out of thin air. Of course I know that its not "out of...
on Feb 16, 2011