Converting from decimal to Hex and Binary

I am currently making a calculator that also has the function of converting the current decimal number in the text field to Binary or Hex.

at this point i come to a slump have got everything done except the final conversion. could any of you give this destroyed brain a helping hand.
Who is Participating?
gothteddyAuthor Commented:
I am using the Mindprod link fargo gave, but i still fail to see what is wrong with this...

else if (actionCommand.equals("Binary"))
                  result = Integer.praseInt(ioField.getText());
                  ioField.setText(Integer.toString(result, 2));

i get the error

---------- Java Compiler ---------- cannot find symbol
symbol  : method praseInt(java.lang.String)
location: class java.lang.Integer
                  result = Integer.praseInt(ioField.getText());
1 error

Output completed (1 sec consumed) - Normal Termination

any ideas, i already import java.lang.*
result = Integer.praseInt(ioField.getText());
should be
 result = Integer.parseInt(ioField.getText());

spelling mistake
gothteddyAuthor Commented:
thanks for your help :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.