Posts tagged java

Web page invoker using java

Hi,
as a programmer there are a lot of problems to face. Fortunately, solutions exist no matter how big is the problem. In my case efficiency is not that big deal, so please ignore the algorithms complexity and other geekly stuff
The problem that made me write this article is:
We have a folder (A) [...]

Binary, Octal, Decimal and Hexadecimal converter(Java)

I was working on a simple project that simulate CPU registers, where users can use an assembly-like commands to issue some process while watching changes on the virtual CPU registers.
you may visit it using this link: http://www.doitmyway.net/2010/02/21/cpu-registers-simulator-educational-project/
In fact CPU data are in binary, although users may want to read those data in different format. So [...]

CPU registers simulator (educational project)

Computer organization and assembly course was one of the best courses I took. As a computer scientist it opens the world of imagination in my mind so I started to see bits dancing in front of my eyes
3 years passed since that day, I still can remember how our doctor was explaining the [...]

my batch Image Converter using java imageIO

how many times you wanted to convert a batch of images from jpg/gif/png/ico to  jpg/gif/png/ico?
this happens to me very rarely, still i want to solve this problem my way.
Once i was surfing the net and i found a software called “batch image converter”. it was a simple one. really i liked it so i decided [...]

add jFileChooserFilter to your java code

Hi,
Today I am going to show the way to use JFileChooser with FileNameExtensionFilter. This is very useful for building user friendly applications. FileNameExtensionFilter is used to tell which files extentions are allowed for the jFileChooser. This will make files with specific extensions appear and all other files disappear from the jfilechooser dialog.
First of all we [...]

convert images using java imageIO

Hi all,
I learned how to use java ImageIO to convert images formats. It makes me happy, so I wanted to share my experience with all of you.
As NetBeans told me, ImageIO is a class containing static convenience methods for locating ImageReaders and ImageWriters, and performing simple encoding and decoding. ImageIO supports most common formats such [...]

java imageBox (0.0.6)

hi all,
this is the new virsion of java imageBox. it is numbered as 0.0.6.
compared to older versions, this one has more flexiblity. add to that, it supports design time image rendering.
you can download it from this link: imagebox(0.0.6)
here are the steps to add imageBox to your netBeans project:

create new project
add new Jframe to [...]

playing music using java audioClip

Hi all,

I was thinking of a way to play audio in java. I am using NetBeans, so it did not take me more than five (Ctrl-Space) until I figured out the way.

Today we will discuss creating of simple audio player which can play a (WAV) file.

There are many ways to play audio in java. The [...]

Create configuration file for your application

Hi all,

Today I am going about making a configuration file for your application. Such file can enhance your product quality.

First we need the definition of a configuration file. As its name says, a configuration file is a file used to store configuration of programs. Simple example is your desktop background. Each time you start [...]

simple program to detect prime numbers

hi all,
a prime number is a natural number that has exactly two distinct natural number divisors: 1 and itself.
just for fun, i spend some times on this java applet. give it an integer and it will tell weather it is a prime or not.
Download: isprime

Your browser is not Java enabled.