Skip to main content

Posts

Notepad++ Compile and Run Java Programs

Notepad++ is a great file editor. It has many features. The most important feature which I like about Notepad++ is its light weight. It loads up so quickly, that's great. It also provides syntax highlighting for many languages. I use notepad++ to edit general files as well as my simple Java programs. Although notepad++ provides functionality to run external programs, I prefer NppJavaTools plugin to compile and run Java programs using notepad++. You can download NppJavaTools plugin from this page - NppJavaTools . Installation Installation of plugins in notepad++ is very simple process. All you have to do is copy plugin dll into plugins folder of notepad++ installation directory and restart the notepad++. Features This plugin provides following features, Compile and run your Java files within Notepad++ Set custom hotkeys for compiling and running Java Code Library support Compile and Run This function allows you to run your Java programs to compile and run from N...

Windows Media Player Transparent Seek Bar How To

If you are a Visual C++ programmer or you have learnt Visual C++, you might have seen and wondered how Windows Media Player Seek Bar is designed. Well, I have always wondered about it before today.. The Seek bar which Windows Media Player is a transparent seek bar. It uses a gradient fill from bottom to top. When you are playing some video in Windows Media Player, you can see the video running behind this seek bar. Many times I tried to design a control like this, where a control is transparent and the control which is placed behind this control should be visible. Although I never succeeded in this one, but I tried it a lot of times. Today when I was listening to songs using Windows Media Player(!!), I saw when I click on the area near to seek bar Windows Media Player's main window gets de-activated. The technique behind the transparent seek bar is to create a separate top level window. This second top level window should be a Layered Window , you can read more about Layer...

Valentines Day Screen Saver

Few years back when I was in college I used to get huge amount of time to learn new technologies. In those days once I was trying to learn DirectX programming using Visual C++. I started with few tutorials and learnt a lot about the DirectX programming. At that time I designed my first screen saver using DirectX and Visual C++ which was Falling Hearts screen saver. Every time valentines day comes close, I still get many mails regarding this screen saver. Some of them are to modify the screen saver, some of them are for the download link and some of them are Thank you mail. Well, I am happy about it but as said earlier I wrote it long time back and neither I have source code for it anymore with me to modify it nor the time. To download the screen saver please visit Softpedia at  http://www.softpedia.com/get/Desktop-Enhancements/Screensavers/Valentine-Screensaver-CM.shtml After this screen saver I wrote another small and very simple game using DirectX, here is the video for i...

GWT Amazing Toolkit from Google

When GWT was first launched, I read some articles and followed some basic(very basic) tutorials of GWT but left it after a few days as didn't get the time to follow it. Now after a long break I again got the chance to learn and use it again. After following first few tutorials and after watching the demo applications which I built using GWT, I have became the fan of it. It's an awesome toolkit from Google. The most amazing feature of it is that you write the code in Java and it will convert it into highly optimized JavaScript which will run on almost all the browsers!!

CodeVed - Tutorials for beginners to professionals

While its been a long time I haven't posted any article on this blog, that's because I was busy setting up the new website which is the official(my :-) ) place for the tutorials on the various programming languages. www.codeved.com - is the new website where I will be posting all the tutorials related to Java basics, core Java and advanced Java.

Long running task?? SwingWorker to help

I don't know how many people or any one now uses Swing for designing applications in Java. But while reading Java docs in my free time I came across this class called SwingWorker, now many of who work/had worked in Swing might be saying "Whats new in this class"!! Well, nothing is new in there but this class is new for me coz I never worked in Swing, but in my college days I was working on a project using Swing called Visual Java. A NetBeans kind of software, I stopped working on it when I came to know that its already there.. :) Coming back to SwingWorker. I am writing this post for this class is because this class is really a handy for those who are developing or starting to develop applications using Swing. While developing any software if there is any long running task, we put it in a separate thread, Background thread. So SwingWorker provides us the same functionality adding some methods where we can put our UI manipulation code. Both the classes provide doInBac...

Java Tools Plugin for Notepad++ Update

This post and the plugin is outdated. Please use plugin from  this link  which is updated and allows customization of shortcut key mappings and much more . This post is regarding the update for Notepad++ plugin which I wrote to use compile and execute Java programs from the Notepad++ editor itself. I have updated the plugin so that user can customize the shortcut keys assigned for compiling and executing the programs. Following image shows simple Settings dialog where you can customize the shortcut keys mapping. Although user can customize the keys but to apply them Notepad++ must be restarted. Well, I tried but in Notepad++, there is no way to change mapping after initialization process of plugin.. Click here to download the plugin.