Binary Shift Applet
[[Home] [Java] [HTML] [Tabs] [About Me] [Disclaimer] [All Downloads] [Contact]
[Tutorials] [Applets] [SCJP Objectives] [Mock Exam] [Question Bank] [Links]

 

 

A new & improved version of Voodoo Bytes is available here, please update your bookmarks and links !

 

 

 


 

You need to know

  • This applet only works for integer values & not long or float
  • You can substitute Integer.MAX_VALUE , ByTe.MiN_VaLuE , etc for numbers (not case sensitive)
  • Hitting enter in a field or "Get Bytes" will give binary equivalents & if all is set the result is shown
  • Changing the shift operator changes the result & the corresponding binary field instantly
  • If you see "Plz enter a valid number" in any of the fields , that means the number you entered is not a valid integer
  • If you see an e-mail id some exception must have occurred in which case please mail me the number you entered in the fields
  • If the layout fucks up after a reload , refresh or hide then you'll have to wait for me to understand the layout managers or you could lay out the fields & buttons & I could put the rest in for you.

Fields/Buttons:

  • Enter number here : This field is where you put the  number you wanna shift
  • Get Bytes : This button gets the binary equivalent of any permissible integer value
  • Menu : This gives you a choice of the shift operators
  • Shift by what value : This is where you enter the number of times you wanna shift
  • Go : Once both the fields are set , hitting this button shows the result
  • Result : This is where the result shows . You can also enter a valid number in this field & hit enter or Get Bytes to see the binary equivalent
  • + : this button increments the "Shift by what value" field by one
  • - : this button decrements the "Shift by what value" field by one

 

Known Problem's

When the reload button is hit in Netscape Navigator the Layout screws up. I know the source of the problem, it'll be tackled as soon as I get some time to read & understand layout managers.

Credits

Anurag Dwivedi for his suggestion to add a Mouse Listener to the text field

Ravish Kumar for his suggestion to chage the color

 

Download Applet - Source code available in zip file

 

 

[Home] [Java] [HTML] [Tabs] [About Me] [Disclaimer] [All Downloads] [Contact]
[Tutorials] [Applets] [SCJP Objectives] [Mock Exam] [Question Bank] [Links]


Counter