Posts

Showing posts from July, 2013

Install Java on Debian based Linux such as Ubuntu, Linux Mint etc ...

First you need to remove openjdk for this run the following command from your terminal sudo apt-get purge openjdk* If you installed java 7 from any other PPA and you are having problem with java then you have to do following steps before installing the PPA menctioned here

Has Apple Really Ever Invented Anything?

Image
A truth about Apple. I am not a Apple hater, Its just that I do not like them much. 

Swing Tutorial - 03 - Creating a TextField and Button and learning Event Listeners

Image
In this tutorial I have tried a new way to explain the code. I have commented the code heavily where ever required. You can get to know that particular method is doing just by reading the comment above it. JButton: This is a class that is used to draw a button on the Panel. On click of this button we perform many different operations such some calculations, Database operations, start/stop an event etc etc. These are one of the most used Swing components. JTextField: Another important Swing component that we need in many purpose of entring any text information. EventListeners: Event Listeners are a way to get a task done on some user click or any user event. It is a large topic so it will discussed with time as these tutorials are made further.