By doing your job, I assume you mean the technical aspect. Programming, meeting requirements, attending meetings, etc. 

If so, than one of the most effective way would be to work on the social aspect of your job. 

You can meet all of your technical objectives but still get a lower salary than someone with good technical skills but great people skills.

You need to promote yourself to your boss and to your coworkers. Make contacts in the industry. Become a leader among your team. Be the guy people are asking for help when they are stuck. 

People that do these things are usually will usually be perceived favorably by management, thus be seen as more valuable.

Most effective way to increase programmer salary besides just doing your job?
I want to display a message box to show some message in Java, and the box should have three buttons that the user can press such that the program can get value when user presses the button.
