public int bid(Card trump, int min, int max, int notAllowedToBid) {
String suffix = "";
if(notAllowedToBid > -1) {
suffix = " (not allowed to bid " + notAllowedToBid + ") ";
}
PromptDialog dialog = new PromptDialog(LanguageFactory.getInstance().getString(MessageId.xsBid, "playerName", getName()), LanguageFactory.getInstance().getString(MessageId.whatDoYouWantToBid) + suffix, "", true, 0, round, notAllowedToBid);
Point location = jFrame.getLocation();
Dimension size = jFrame.getSize();
Dimension dialogSize = dialog.getSize();
dialog.setLocation((int)(location.getX() + size.getWidth() / 2.0 - dialogSize.getWidth() / 2.0), (int)(location.getY() + size.getHeight()/2.0 - dialogSize.getHeight()/2.0));
dialog.prompt();
int bid = dialog.getIntValue();
return bid;
}