Posts

get System Time in java code Example

How to get System Time in java code Example. public static String getSystemTime()     {         DateFormat df = DateFormat.getTimeInstance(3);         df.setTimeZone(TimeZone.getDefault());         String sec = new String("" + df.getCalendar().get(13));         String min = new String("" + df.getCalendar().get(12));         String hr = new String("" + df.getCalendar().get(11));         if(sec.length() < 2)             sec = "0" + sec;         if(min.length() < 2)             min = "0" + min;         if(hr.length() < 2)         ...

Open color dialog box in applet java code

How to open color dialog box in applet java code. public class ColorDialog extends Dialog {     public ColorDialog(Frame p)     {         super(p, "Color Dialog", true);         OK_button = new Button("OK");         Cancel_button = new Button("Cancel");         OK_Cancel = new Panel();         init();         show();     }     public ColorDialog(Frame p, Color c)     {         super(p, "Color Dialog", true);         OK_button = new Button("OK");         Cancel_button = new Button("Cancel");         OK_Cancel = new Panel();         init();         color_panel.setCurColor(c);      ...

check string is number or not in java code example

  check string is number or not in java code example public boolean isStrNumber(String str){           try{               Integer.parseInt(str);           } catch(NumberFormatException nfe) {           return false;           }           return true;           }

java Expert Solutions: How to Make Signed (Trust) Applet.

How to Make Signed (Trust) Applet. : "Step to Make Signed (Trust) Applet. C:\>keytool -genkey -alias signMyAppt -validity 365 Enter keystore password:qwerty1234 What is your f..."

java Expert Solutions: How to capture finger prints in java

How to capture finger prints in java : "Java code for capture finger prints. NBioBSPJNI.FIR_HANDLE hSavedFIR; hSavedFIR = bsp.new FIR_HANDLE(); bsp.Enroll(hSavedFIR, null); // E..."

java Expert Solutions: How to compare two finger prints file in java

How to compare two finger prints file in java : "Steps for compare two finger print files. // Make obj of NBioBSPJNI NBioBSPJNI bsp = new NBioBSPJNI(); // Make two obj for two files. N..."

java.lang.UnsupportedClassVersionError major.minor version 49.0

java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main (Unsupported major.minor version 49.0) Solution:-      If you are using 1.5 version of java so please update 1.6 version of java For Eclipse 3.1 setting. Right click on your project --> Popup window will be opend --> select java build path in left side navigation bar --> Click JRE System LIbrary --> edit button --> Choose Alternate JRE: and click on Installed JREs... button. --> new Popup will be opened --> Click JRE home directory: browse... button --> and select java 1.6.0 directory. --> Write JRE name --> Click Ok button. --> Select your new jre and click ok button. --> then Select Alternate JRE from drop down list. --> Click on Finish.

Recent Post

Recent Posts Widget