Saturday Apr 15, 2006

Working With MultiView Windows

I have recently been working with the Multiview windows. A multiview provides the tab capability where each tab is a separate component. This is similar to a JTabbedPane. I am going to describe a few things which were subtle. This is the first tip. \* How do you get that little \* to show up when the editor is dirty. This is done for you if you have a SaveCookie in the set of activatedNode. If you are using your DataNode as the activated node, then this will be handled for you. This is useful for more complex editors which have a variety of selected nodes. Remember the activated node controls the property sheet as well. The easiest way to do this is to attach a listener to the NodeDelegate and update the title of the multiview if the cookieset changes.

Saturday Jan 07, 2006

Favorite Netbeans Java Editor Shortcuts

I have been doing some collaborative development and it is interesting to what and learn how other developers use an IDE. Specifically, what keyboard shortcuts are used. I am the first to admit that I am not the editor keyboard shortcut wizard but there are are few that I find useful and use quite a bit (beyond cut and paste of course): Ctrl-E - delete line Alt-Shift-I - This is a fast import and uses the current selection and the classpath to determine the import choices Alt-Shift-F - This fixes imports (adding imports that need to be added and removing unused imports) Ctrl-G - jump to line Alt-Shift-R - refactoring rename. I have committed this to tactile memory so that I try to do this all the time. Ctrl-K / L - matches the previous or next word. I use code completion as well of course.
About

cwebster

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today