Carl Antaki’s blog

May 17, 2007

Useful Java VM switches

Filed under: Java2D, swing, Java — carl @ 6:48 pm

These switches apply to Java 5 and up.

Switch Description
-Dsun.java2d.d3d=false Disables direct3d in case you have a problem in full screen mode, this solves also the bug 4417798
-Xms: ex. -Xms64m Default Java heap size
-Xmx: ex. -Xmx1024m Maximum Java heap size
-XX:+PrintGCdetails Prints the basic GC information
-XX:+PrintGCdetails Prints the detail GC information
-client Uses the client JVM
-server Uses the server JVM

May 9, 2007

JavaFX!

Filed under: Java2D, swing, Java, Uncategorized — carl @ 9:45 pm

Sun announced yesterday that they are building JavaFX their next generation scripting technology which is their answer to Adobe’s Apollo and Microsoft’s Silverlight technology. The beauty of JavaFX is that it’s going to run on Desktops, cell phones, Blue Ray players and other devices.

JavaFX is going to bring Java2D and Swing to the masses.

March 14, 2007

Java Traversal Policy

Filed under: swing, Java — carl @ 11:22 pm

Swing Custom traversal policy is so easy to use check it out:

http://java.sun.com/docs/books/tutorial/uiswing/misc/focus.html

What should be done is to write a class that extends FocusTraversalPolicy and then provide a collection of Components so that we won’t have to implement the class over and over in an application.

« Previous Page

Powered by WordPress