public void actionPerformed(ActionEvent e)
{
boolean blnGotResponse=false;
while(!blnGotResponse)
{
InputBox ibNewBalance=new InputBox(mwcMain, "Enter the new balance for card "+((CardPaneController)mwcMain.getSelectedTab()).getCard().getName(), "The field balance is obligatory!");
ibNewBalance.setTitle("New balance...");
DecimalFormat nfDec=new DecimalFormat("##0.00");
ibNewBalance.setDefaultString(nfDec.format(mwcMain.getSelectedTab().getCard().getInitialBalance()));
ibNewBalance.setCheckEmpty(true);
ibNewBalance.setVisible(true);
if(ibNewBalance.getResult()!=null)
{
try
{
double dblNewBalance=Double.parseDouble(ibNewBalance.getResult().replace(',', '.'));
mwcMain.getSelectedTab().getCard().setInitialBalance(dblNewBalance);
mwcMain.getSelectedTab().UpdateBalance();
blnGotResponse=true;
}
catch(NumberFormatException ex)