Useful Things
- to change language and country use: -Duser.language=es -Duser.country=ES in the VM Options field.
- instead of setting font directly we can overwrite: javax.swing.plaf.metal.DefaultMetalTheme, see jdictionary
- If we perform a raw SQL select statement, we don't get uncommited objects.
- CLOSE_CURSORS_AT_COMMIT: So if you want avoid these problems, and if you want to use JDBC in a truly portable way, make sure you close your result sets when you are done with them.
- Operation sorting algorithm is handled by org.objectstyle.cayenne.map.EntitySorter instance. By default this is an instance of AshwoodEntitySorter concrete class which does the sorting based on object graph dependency analysis. Inserts go first in this algorithm. You can provide your own sorter via DataNode.setEntitySorter(..).
- Find deadlocks: Linux or Solaris Ctrl+ and windows Ctrl+Break
- or use 'kill –QUIT' if deadlock
- link via: {@link #fct(Parameter1, Parameter2)} and inherit doc via /** @inheritDoc */ in java doc.
- in netbeans: add library instead of "Jar" if you have additional sources for the jar-file
- Why can't my dialog receive the event generated when the user hits the Escape key? This worked until I ported to release 1.4.
If your dialog contains a text field, it may be consuming the event. (Prior to release 1.4.0, the text field didn't get the focus.)
If you want to get the Escape event regardless of whether a component consumes it, you should use a KeyEventDispatcher.
If you want to get the Escape event only if a component hasn't consumed it, then register a key binding on any JComponent in the JDialog, using the WHEN_IN_FOCUSED_WINDOW input map. For more information, see the How to Use Key Bindings page. (Taken from java.sun.com)
- Patch your running application!
See http://www.fasterj.com/articles/hotpatch1.shtml