Janitha

JAVA NETBEANS TUTORIALS

Wikipedia

Search results

Sunday, March 3, 2013

Computer Shutdown Using java - Netbeans JAVA Shutdown Code

try {
            String shutdownCmd = "shutdown -s";
    Process child = Runtime.getRuntime().exec(shutdownCmd);
   
        } catch (IOException ex) {
            Logger.getLogger(shutdown.class.getName()).log(Level.SEVERE, null, ex);
        }




Saturday, February 9, 2013

java Date and Calender for Netbeans Palette

jcalender Components

jcalender jar file - http://www.ziddu.com/download/21553278/jcalender.zip.html

  • J Calender
  • J Date Chooser
  • J Day Chooser
  • J Locale Chooser
  • J Month Chooser
  • J Spin Field
  • J Year Chooser

 

  


Tools --> Palette --> Swing/AWT/ Components


Click --> new category --> write a name
 

Click -->  Add From Jar -->Choose a Jar file (jcalender-1.4) --> Click Next -->
        Highlight All components ---> Click Next ---> Select the category(Which you have created)
         --->  Click  Finished

                   
 

Finally You can see like this ------------------------------   ##
  • J Calender
  • J Date Chooser
  • J Day Chooser
  • J Locale Chooser
  • J Month Chooser
  • J Spin Field
  • J Year Chooser