Bouncing Balls

Sometimes I like to look back to my projects developped at uni because it remembers me of how difficult it was for us to do anything in Java. Things that now are easy and that you do wihtout thinking, back then they took us hours to understand. It was so frustating when the application wouldn't compile and you had no idea what the exception message meant!!
I know that it might sound commonplace to say that if you study and try hard, you can achieve anything , but it's totaly true and it's what I think of everytime I look back at these useless and simple applications we did in the first years of uni.

That said, here is the video of one of our first projects we were assigned to, the "Bouncing Balls" projects. The goal of the project was to teach us how to use the Java Swing libraries. The nice thing of this project was that there were no particular required specs and we had to be creative to impress the professor with miscellaneous features. All the projects in the class were different one from another :) this is my version....

 

 

Bouncing Balls (part 2)

The other day after writing the article on the Bouncing Ball project, I started looking for the code on some old hard disks I had, and surprisingly I found it. :)

I tried to convert the java application to an applet to post it here on blascone.it but it turned out to be more complex than expected. I managed to run the applet on my local machine disabling one thousand java and browser security checks but it wouldn't work running on a real server.

JAVA APPLETS ARE DEAD! I was very disappointed to not being able to run my small app on my website! I'll give it another try some day but it's a real shame. It's a shame that Sun/Oracle didn't carry on improving java applets technology, didn't solve all those annoying security restriction problems and let the technology die. I understand that html5 and javascript are technologies focused only on the web development and therefor they would be difficult to compete with in terms of applications running on the client side, but Java Applets have the advantage of being written in Java, the most used programming language. 

 

JAVASCRIPT AND HTML5 RULE! Frustrated by my failed experiment on this obsolete technology, I decided to open up to innovation and to refresh and improve my javascript and html5 skills with a new computer graphics project for the web. I will post my "the making of" once I'll finish it. I will probably start with a basic 2D figure and them carry on with a 3D ones.

 

 

28/02 UPDATE

I kinda did it but the security restrictions remained...


There are 2 different methods to bypass the security restrictions, choose the best one for you:

Decrease java security level

  • Click on the Start button and then click on the Control Panel option.
  • In the Control Panel Search enter Java Control Panel.
  • Click on the Java icon to open the Java Control Panel.
  • In the Java Control Panel, click on the Security tab
  • Select Medium Security level.
  • Click Apply.
  • Click OK to save changes made to the Java Control Panel.

Exception Site List

  • Click on the Start button and then click on the Control Panel option.
  • In the Control Panel Search enter Java Control Panel.
  • Click on the Java icon to open the Java Control Panel.
  • In the Java Control Panel, click on the Security tab
  • Click on Edit Site List
  • Add "http://www.blascone.it/bouncingball/" to the list
  • Click OK
  • Click Apply.
  • Click OK to save changes made to the Java Control Panel.

To see the applet in action click here!



Show Comments