Thursday, October 14, 2010

My Search Tool

This is a program written in java that searches a file in the specific directory or in a Drive.... code:: //Search.java import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.table.*; import java.util.*; import java.io.*; class Search implements ActionListener,Runnable { JFrame mainFrame; JPanel rightPanel,mainPanel; JPanel leftPanel; JTextField tf1,tf2; JButton jb; int sw; int sh; JTable table; DefaultTableModel...

Tuesday, October 5, 2010

Pointers vs References...

Why java use references not pointers?????To get the answer of this we have to go the low level that is the memory allocation for the object....Where the Object is stored???A quick answer::an Object is stored on the heap??what is the Heap???The heap is a large block of memory that Java uses to store objects........How the things are Happening?????When a new object is created, the necessary amount of space is set aside for it in the heap. The new operator...

compilation gotcha in java6 vs java7

Compiling all the files in a folder for a java programmer is a routine job ,,so what we do we go to required directory and say javac*.java and all the java files get compiled...now suppose we are at e:\javapro and we want to compile all the java files present in f:\javapro so what we will do,,we will go to f:\javapro in the prompt ,and then we will say javac *.java....this is what what we do when we are using upto java7now from java7 we can compile all the files in the different folders form the different location....again suppose we are at e:\javapro...

Monday, October 4, 2010

Table Viewer

This is Table viewer by which you can see the records of your table in your dsn with a scrollbar provided at the bottom of the frame....Enter your DSN::Now your can see the Name of the tables present in your dsn,select the table and go....This is how you will see the recordes in your table.....Your can download this from::Downl...

Sunday, October 3, 2010

VirtualDosPrompt

This is the Virtual Dos Prompt created in java,having functionality like compiling the java files,running the class file ,seeing the directory,renaming the file or directory,and some thing more,,you can use help command to see the list of command available...... code:: import javax.swing.*; import java.awt.event.*; import java.awt.event.KeyEvent; import java.awt.*; import javax.swing.text.*; import java.awt.event.*; import java.awt.image.*; import...