Skip to main content

Good Stuff

Posted by editor on January 18, 2007 at 5:14 AM PST


Copy and paste for ME, finally!

How much do you do with the Java support on your phone? If you've tried to use productivity apps like GMail for Mobile, or Opera Mini, then there's a good chance you've needed to do copy-and-paste at some point, to save you from repetitive text entry on the keypad that was never really meant for text entry in the first place.

Of course, the question then becomes: how do you do it? ME apps don't have a default "Edit" menu with built-in copy-and-paste functionality, nor does the design of the typical phone permit drag-and-drop style gestures. No, this is something you're going to have to build for yourself.

Fortunately, author Biswajit Sarkar has been there, and offers a solution
in today's Feature Article,
Implementing Copy and Paste for the Java ME TextBox . In the article, he shows how to work around surprising problems like inaccurate reporting of the caret position within an ME TextBox, and provides a solution that uses the ME record store to allow data copied from one application to be pasted into another.


In Java Today,

NetBeans 6.0 Milestone 6 is now available for download.
Some of the new features added and tested in Milestone 6 include:
most Java EE features re-added to the build, a UI Gestures Collector that logs users' activities in the IDE, and
memory profiling Improvements. Review the Milestone
6 Report
for a complete overview of what's new.

Each year at JavaOne, the most innovative and most impressive Java projects are celebrated with the Duke's Choice Awards. The search is on for this year's most creative uses of Java, and nominations for the awards are now open. Nominations will be accepted through March 15, with winners selected by James Gosling and the Java technology leadership team. A list of last year's winners is also available.

Nigel Hughes was inspired by the latest Apple UI and has adopted its ideas to create a Carousel Menu (a la Apple TV) in Swing. "While everyone was wrapped up in Steve's reality distortion field during his recent keynote, I was ogling the Apple TV interface. What a fantastic product (I'm getting one of those, just what I need). Anyhow, one of the interface features that I noticed was that they had re-used a carousel to produce a funky menu. Well, I have a carousel component how hard can it be to re-use it to create.... a carousel menu?"


The constantly active Kohsuke Kawaguchi can be found Introducing maven2 java.net skin in today's Weblogs. "Introducing the maven2 java.net skin project , which provides a java.net look & feel skin for maven site plugin, for those of you who use maven2 on java.net."

Edgar Silva takes a look at
Using the Java Source Editor and Syntax highlight in any JEditorPane
"This post shows how to use NetBeans' Java Source Editor with Syntax highlight in any JEditorPane."

Finally, the resurgent Kirill Grouchnikov is
Playing with Color:
"This entry shows how to make the Color object mutable"


In today's Forums,
rah003 has new ideas for SwingX in
Painters, Timers, ... and what's next?:
"Now everybody is busy adding painter support to every possible place in all the components. Chet is busy finishing the timerframework (and the book, i know no need to remind). But what's next? When current work is done it will be much simpler for just anyone have nice graphics in their applications. With timers it will be possible to have animations as well ... just great. But I think this is not the end and the work should go on to make it even easier. What about having something that combines the timer and the painter? Let's call it Effect..."

jeremygwa is looking for advice on cheap server solutions in
regarding inexpensive budget, reasonable performance web server setup:
"I'd like your opinion of an appropriate hardware configuration for a webserver running java enabled web services and cgi. I am on a budget, so I will not be buying "Official" server hardware, more-so, "PC" hardware. Some of the hardware I will purchase will be used. I would like to know which components of a system for this purpose, would be appropriate in concentrating money on."

Finally, whartung is hamstrung by poor performance and would like to start
Precompiling JSPs:
"I have a plea on how and/or what flaming hoops I have to go through to get JSPs precompiled in a EAR/WAR. Right now the only way to manage it is to click on the "Precompile JSPs" checkbox during the deploy. That's all well and good, but on the machine I'm deploying to, this takes almost 20 minutes (and I don't have a lot of JSPs, it's just a slow machine). Once compiled, things run fine, but that deployment is agony (though not as much agony as having every mouse click take 1-2 minutes). So, what I need is some recipe for precompiling the JSPs on a DIFFERENT machine than what is being deployed to. If I could precompile them on my workstation (which is much faster) and then deploy, that would be just peachy."


Current and upcoming Java
Events
:

Registered users can submit event listings for the href="http://www.java.net/events">java.net Events Page using our href="http://today.java.net/cs/user/create/e">events submission form.
All submissions go through an editorial review before being posted to the
site.


Archives and Subscriptions: This blog is delivered weekdays as
the Java
Today RSS feed
. Also, once this page is no longer featured as the
front page of java.net it will be
archived along with other past issues in the href="http://today.java.net/today/archive/">java.net Archive.

Copy and paste for ME, finally!