Java-Swing UI Types

For desired [Among available types :P ] look and feel for your Java-swing application, you may set like below..

UIManager.setLookAndFeel (UIManager.getSystemLookAndFeelClassName ());
setLookAndFeel() method takes a String argument   which is one of below available look and feel:

  1. ·         UIManager.getSystemLookAndFeelClassName (); //Windows style..
  2. ·         UIManager.getCrossPlatformLookAndFeelClassName();//Java swing standard
  3. ·         "" //Moti style.

Happy coding :)

Jyotishya Desktop application

My first-public-free-software application developed using Java :)

Everything starts @ Jyotishya. []

More stuffs are on the way..

So..keep peeping and share yours too... ;)

Happy coding :)

Java : system / Environment properties

There was a need to determine the OS on which my application is running. So come across system properties method in java. Sharing the same with you..

       * I could able to get below properties..!!
, sun.boot.library.path, java.vm.version, java.vm.vendor,
  java.vendor.url,  path.separator,, file.encoding.pkg,, user.script,,  sun.os.patch.level,, user.dir, java.runtime.version,
  java.awt.graphicsenv,  java.endorsed.dirs, os.arch,,
  line.separator, java.vm.specification.vendor, user.variant,, sun.jnu.encoding, java.library.path,,
  java.class.version,, os.version, user.home,
  user.timezone, java.awt.printerjob, file.encoding,
  java.specification.version, java.class.path,,
  java.vm.specification.version,,  java.home,, user.language, java.specification.vendor,
  awt.toolkit,,  java.version, java.ext.dirs,
  java.vendor, file.separator,  java.vendor.url.bug,,
  sun.cpu.endian, sun.desktop, sun.cpu.isalist
      private static void printSystemProperties(){
            Properties properties=System.getProperties();
            String key;
            Enumeration keys=properties.keys();
                  System.out.println("key :"+key);
                  System.out.println("value :"+properties.getProperty(key));
Happy coding :)