I have created the GUI however, I cannot figure out how to make the Jbuttons generate the coding needed for a binary to decimal conversion of the input in a JTextField. The code is below:
James Wmurphy wrote:I know my formatting isn't the best , but it also shows my level of expertise with dealing with Java on a GUI level. If you could help me format my existing code as well as show me how to convert user input from binary to decimal, it would greatly be appreciated.
Maybe it would be a good idea to not use GUI first -- say just work out a very simple method that will convert a number from one base to another. Once you get that working, then you can attach it to a GUI.