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

Blogs by topic: Swing

• 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 


Swing

Hello again friends! Prompted by an excellent question from wrandelshofer in the comments section of my recent Swing Drag and Drop blog entry, I'm jumping on the opportunity to tell you more about the enhancements made in Mustang. In particular, I'd like to talk about how these changes have enabled location-sensitive Drag and Drop. In order to clarify the concept, I'll paraphrase the...
on Jan 17, 2006
Do the toto! Shortly before the holidays, I had the opportunity to visit a customer site in the wonderful city of Montreal, Canada. I was an eater of excellent food, a seer of new sites, and a lucky fan at Centre Bell when the Montreal Canadians won their first overtime shootout under the new NHL rules! And that was just in the off hours. I also truly enjoyed myself during the day in the...
on Jan 16, 2006
Well, I've got more than 30 comments for the previous blog. It's high time to summarize them and make up a conclusion. There are two separate enhancements were suggested in comments: Make compiler move Swing methods to EDT automatically Invent something to make finding out-of-EDT methods invocations easier Making Swing methods threadsafe, simple case Really, if you call Swing method out from...
on Jan 12, 2006
Many Thanks! An expression that my friend and Swing Team colleague in Russia, Michael Knyazev, offers to me; and one I'd like to extend to you now. It's been seven months since my first blog, with it's goofy play on words, discussion of Swing's improved drag gesture, and my promise that I'd write about more exciting Drag and Drop enhancements shortly. Seven months is slightly longer than I...
on Jan 2, 2006
Every experienced Swing developer knows that Swing components must be accessed from Event Dispatch Thread (EDT) only. Working with JComponents from any other thread may lead to unpredictable result. Consider the following code: import javax.swing.*; import java.awt.*; public class BadCode { public static void main(String args[]) { createGui(); } private static void createGui...
on Nov 23, 2005
It's been a lot of publications about adding "close" button to a tabbedPane, all solutions suggested are really inventive and not easy to find. But we are gonna talk about Mustang "tabComponents feature" because it is the most preferable and clear solution for JTabbedPane customizing. Since 1.6 three new methods added to JTabbedPane: we can put a component to a tab with help of public void...
on Nov 9, 2005
Have you ever tried to display something within a Swing JList only to be disappointed at the displayed text for that object? Swing JList components don't always display the text you'd like for a specific object list...at least not by default. You can control the text that JList displays by creating a custom ListCellRenderer. Read Customize Your JList Display for more information.
on Nov 5, 2005
I received an email from one of my good friends in the Java internationalization group at Sun. He's asking for feedback on how his group should fix a bidirectional text layout bug in Swing. His email explains it quite well, so I quote it below. Please allow me to solicit your opinions on a bidi problem in Swingthat we have been facing for a long time.  The problem is regarding the default...
on Nov 2, 2005
Recently I came across one interesting bug 4413412 which seems to discover very odd Swing behaviors and really looks like a bug. The problem is that JLabel seems to be transparent for MouseEvents so its parent can catch mouseClick event if we click on this label. But after setting a tooltip this label stop passing MouseEvents trough and JFrame mouseListener doesn't get notified any more when...
on Oct 24, 2005
A long time ago I came to understand that human-computer-interface specialists studied what people mean when they say "the computer/application/widget/etc is 'slow'". What's meant is that the response time between the user doing something, and the widget responding to the doing, takes longer than the user expects. "Slow", then, means unresponsive. If the response time takes longer than a given...
on Oct 13, 2005
Swing Sightings is a showcase for good quality Swing applications. The latest issue is no exception, having a slew of great looking and useful applications.
on Aug 23, 2005
Around June of last year I first became aquainted with the JDNC project. As a professional Swing application developer, I was very interested in an open source project that would make my job easier. It was clear to me that JDNC was positioned at the right time to make a huge impact on rich client application development. Swing is an excellent UI toolkit. It provides clean abstractions between the...
on Aug 10, 2005
Long, long, long time no post. A job change and a two-year-old will do that to you. On today's menu: how to make a JRootPane subclass that can pop itself in and out of JInternalFrames and JFrames. Let's dive right in. Background Different people have different ideas on how an application should work when it can open many different documents of many different types at the same time, and, most...
on Jun 20, 2005
One small step for Shan, one exciting leap for Swing drag and drop. Fantastic! The java.net folks kindly set me up a place to share my thoughts, I sit down and begin typing, and out comes a play on the monumental Neil Armstrong quote. I consider: "Why would I start my blog space with a goofy play on words, appearing to compare Swing drag and drop to humankind landing on the moon?" Well, the...
on Jun 7, 2005
J2SE 1.5 introduced a brand new look and feel called Synth. As you might already know, this look and feel is really a skin engine based on XML files. You can use it to easily create a new look and feel for your applications without having to struggle with Swing's UI delegates. The XML file format also allows you to easily generate new skins on the fly. You can give the users the power to...
on May 31, 2005
It's been a while since I posted my original weblog on why some developers aren't shipping Swing apps, and it's gotten over a hundred responses! This makes me happy because it means there are a lot of you out there who really care about desktop Java and want to ship good apps. It's our goal to make Swing the best way to write a quality desktop application, so all of this feedback is great....
on May 9, 2005
In one of the more popular commercial look and feels, Alloy, the default focused button has nice animation effect - its inner border fades in and out in cycles. In Macinstosh OSX, the default button has pulsating effect to visually indicate that the corresponding action will be taken when the user hits the "Enter" key. The underlying code is not very complicated, although there are few spots for...
on May 6, 2005
I wrote a prototype replacement for the Wizards API in NetBeans - trying very hard to create something clean and easy to use, especially one which didn't require the user of the API to write any more code than absolutely necessary. It's now a project on java.net and I'd love to get some feedback. The ideas are pretty simple: A wizard does not alter its environment until finish() is called You...
on Apr 17, 2005
The book is done and I'm up to my ears in Windows bugs so I thought I'd take a break and work on some Mac stuff. There are a few features I've always wanted from Java and needed anyway for another side project (I've got about 3 dozen, of course). The result is a few teeny, tiny classes I've added to the new JDIC Misc project. This project is meant as a catchall for small APIs, things that require...
on Apr 11, 2005
Like a few other vocal bloggers, I attended the recent Microsoft Technical Summit (a.k.a. Developer Influential Seminar, a.k.a. Java/.NET Interop Event). I was warned beforehand that MS serves a lot of kool-aid at these events, and that's no joke -- I think they spiked the punchbowl. I've waited to blog my own impressions until I've had a chance to digest what I've seen and let the "Wow"...
on Apr 9, 2005