Monthly Archives: January 2008

Google Code Prettify

Google Code prettify can be used to highlight a piece of code that may be of the language C,Java,Html,Javascript,xml,CSS, etc in your webpage. i.e If you want to publish your piece of code through Internet (as I do), this tool is going to be very much useful. You can download it freely from here. How [...]

Input fields in Java Swing

Including a JButton:   // Name of this file should be simplejbutton.java import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*;public class simplejbutton extends JApplet { JButton B = new JButton(“Click”); public void init() { Container cp = getContentPane(); cp.setLayout(null); cp.add(B); B.setBounds(10,10,100,20); B.setActionCommand(“B”); B.addActionListener(mylistener); } // ActionListener for Button private ActionListener mylistener = new ActionListener() { [...]

Files in a Folder (VBA)

This Excel sheet can be used to get a list of files in a folder into a column of the Excel sheet. Preview: You just need to give the path of the folder in the text box and press enter. This works as simple as a browser. Download: Code for getting the file and folder [...]