ResourceBundle example
import java.util.ResourceBundle;
public class PopupWindow {
private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle("messages");
// ....
// ....
String message = RESOURCE_BUNDLE.getString("my.message.key");
// ....
// ....
}