Core Java Technologies Tech Tips(June 2007)

Cookie Handling in Java SE 6

Back in September 2005, the Cookie Management with CookieHandler tip described the J2SE 5.0 support for managing cookies over network connections. The 5.0 release provided the framework for dealing with these little nuggets of information, but the task of doing all the work was left to you, the developer. You only had to follow the defined API, but there was much work that needed to be done to actually get cookie management going well for your programs.

Adding Drop Support with JTree

Over the ages, drag and drop with the Swing component set has changed considerably. Early versions had a basic API in the java.awt.dnd package (with support from java.awt.datatransfer), but you had to define all aspects of the drag gesture, from the initial user clicking to the drop operation. J2SE 1.4 updates to the API improved upon the feature set and was described in an earlier tip: Dragging Text and Images with Swing.

Read the whole article at java.sun.com

DRAGGING TEXT AND IMAGES WITH SWING

“One of the more welcome features of J2SE version 1.4 are the enhancements to the Drag and Drop and data transfer facilities. These facilities are defined in the java.awt.dnd package with some help from the java.awt.datatransfer package. These APIs give you the ability to transfer any object (not just strings) between a Java Runtime Environment (JRE) and itself, another JRE, or an application native to the runtime platform. Earlier versions of J2SE required you to control all aspects of the drag gestures, such as what to do when the user click-drags a mouse over a component and drops it over another component. With the newer release of J2SE, a lot of the work is done for you.”

Read the whole article at java.sun.com .

Microsoft romance

Son of Bill Gates asks his father:

- Dad, I’d like to try to have sex, what should I do?

- That’s simple,sonny. Just take the biggest car from my garage, dress the best suit you have and take the girl into the most deluxe restaurant in the town. Rent a horse chariot in the evening and take her for a trip around the lake. Buy her the biggest bunch of flowers you can buy. Finally rent a president suite and she’ll be yours.And that’s all.

- But Dad! Where are the romantic walks, grazes, reading of poetry in the moonlight, flirting …

- My boy… all this was invented by the Linux folks so that they can have sex for free