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

Blogs by topic Blogs and user alexfromsun

• 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 


The problems that are related to the application context might be invisible from the outside of the Swing core libraries, but it has been a big deal for the Swing toolkit developers. Every time when you create a mutable static field in a Swing class you potentially introduce a security whole. It is quite surprising that an ordinary pattern of the Java language becomes a problem. To understand...
on Feb 9, 2012
Swing makes it very easy to control and modify simple components like JLabel or JButton. It gets trickier when you customize a compound component like JTree or JTable. Unlike a simple component, JTable consists of multiple subcomponents like table header, renderer and editor, so actually JTable is not a single component but a container with several descendants. Imagine that you want to customize...
on Sep 7, 2011
In the list of the things that needs improving in Swing, the implementation of listeners takes the first place. The problem is the fact that the order in which listeners are notified is not specified and it is not even guaranteed that your listeners will be notified after the Swing system listeners. Actually all listeners can be mixed together with any possible combination and it leads to two...
on Jun 15, 2011
Generics doesn't work well with arrays. Everybody knows that you can't create a generified array, but not many people really know what it was done this way. A nice article from Brian Goetz helped me to understand the problem when I studied the new features of JDK 5. The arrays in java are covariant when generics are not. The following code clearly shows it: String stringArray[] = new String[1...
on May 5, 2011
Checked exceptions are painful. I could write a long article about it, but there are more than enough good blogs describing this problem. My favorite article is written by Rod Waldhoff. From my point of view the existence of the InvocationTargetException clearly shows the problem. Imagine you call a method which throws an exception, you properly catches it and then you decide to rewrite the...
on Mar 21, 2011
We have all read the "Effective Java" book and know that we should prefer interfaces over abstract classes. This is a known and respected pattern which should be used wherever possible. However the years in the JDK team tauhgt me not to blindly trust to good practices from the world of application programming. A distinctive feature of the JDK is backward compatibility. All programms...
on Mar 11, 2011
I truly love the Swing GUI toolkit, I enjoy its flexibility, opennes and great abilities. I know that some people say that Swing is too difficult to learn, and I partly accept it because it took me several years working in the Swing team to get the whole picture of the AWT, Java 2D and the Swing itself. The Swing history counts more then 10 years and it is definitely not about end. The new...
on Mar 10, 2011
Hello Swing community While the SAF project is on hold, the Swing team welcomes the active development of the alternative implementations of the Swing framework. I found a few promising projects and put the links to them at the SAF project main page: Better Swing Application Framework guts-gui and don't forget about the mature Netbeans Platform I am happy to promote those projects. If...
on Nov 16, 2009