« duben 2005 »
PoÚtStČtSoNe
    
 
       
Today

Navigation

Speaker Profile
Roumen's Weblog
Login
Sun Bloggers
Technorati Profile

Am I popular?

Today's Page Hits: 136

Contacts

Name: Roman Strobl
E-mail: roman dot strobl
at sun dot com

NetBeans

Java Sites

Javalobby
The Server Side
Java Tips
Java Blogs
java.net
java.sun.com
java.cz

Blogs

NetBeans:
Geertjan
Brian Leonard
Gregg Sporar
Lukas Hasik
Ludovic Champenois
Vincent Brabant
Alexis Moussine-Pouchkine
Jullion-Ceccarelli
Tom Ball
Tim Boudreau
Jesse Glick
Petr Blaha
Ruth Kusterer
Jara Uhrik
xzajo
Jan Lahoda
James Branam
nbextras.org

Sun:
Kazem - bug cartoons ;-)
Tor Norbye
Romain Guy
James Gosling
Chief Gaming Officer
Bill Vass
Jim Grisanzio
Jonathan Schwartz

Planets:
Planet Netbeans
Planet Sun
Planet Eclipse

Other:
netbeans-blog.org
Joel Spolsky
Bruce Eckel

License info

Creative Commons License
This work is licensed under a Creative Commons License.

Recent Entries

Map of visits

Locations of visitors to this page
« Previous day (Apr 10, 2005) | Main | Next day (Apr 11, 2005) »
20050411 Pondělí duben 11, 2005
Another Guy from Prague Blogging

In case you haven't mentioned yet we have another NetBeans blogger from Prague. Welcome Geertjan to Sun's blogging world! He's Dutch, a member of the documentation team and he writes about the mysteries of writing web applications in NetBeans. He started blogging shortly after me and the amount of posts he produced so far is quite impressive.

Message for the others: think about joining us! Why? Take a look at this and this. We have lots of interesting ideas to share and it would be selfish to keep them for ourselves :-)
Editing Tip for Lazy Programmers

When writing tests it can be handy to have long descriptive method names. If your test suite fails, you can see immediately from the report what went wrong. On the other hand writing these long names can be really painful so when writing them it's mostly better to cut&paste the name then to write it.

With NetBeans, there is another nice possibility. Instead of writing the long method name you can just write the beginning of it and press Ctrl-K. The rest of the name is generated for you. If there are conflicts you can cycle through the list of names starting by the string you wrote (Ctrl-L is for cycling backwards). Here is an example - the yellow line is important:


Before Ctrl-K


After Ctrl-K


On the first screenshot I am about to add the test method name into the suite. Normally I would have to write it (ugh!) or use mouse or keyboard to cut&paste it. By pressing Ctrl-K I have it there immediately! You can use it for any purpose, I chose writing tests just as an example. Works also great for variables or any other longer strings you use several times in one file.


    Disclaimer: The contents of my blog represent my personal opinions which may differ from official views of my employer, Sun Microsystems.