Source Code : Your own Resource Bundle based on ListResourceBundle
Java Is Open Source Programming Language You Can Download From Java and Java Libraries From http://www.oracle.com.
Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://www.oracle.com.
Click Here or search from google with Libraries Name you get jar file related it
Your own Resource Bundle based on ListResourceBundle
import java.awt.*;
import java.util.*;
public class SampleResourceBundle extends ListResourceBundle {
public Object [][] getContents() {
return contents;
}
static final Object [][] contents = {
{"okButton", new Button("OK")},
{"negativeInteger", new Integer(-1)},
{"textString", "Thank you for reading our book"}
};
}
/////////
public class SimpleResourceBundle_it extends SimpleResourceBundle {
public Object handleGetObject(String key) {
if (key.equals("AMMessage")) return "Buona mattina";
if (key.equals("PMMessage")) return "Buona sera";
return null;
}
}
/////////
Thank with us