Sunday, December 23, 2007

Day X...

Starting a DHCP Server In Linux
/etc/init.d/dhcpd restart



Importing Resources Contained in a .jar file:

import java.net.*;
import java.awt.*;


String filename
ClassLoader loader = Thread.currentThread().getContextClassLoader();
URL imgURL= loader.getResource(filename);

Toolkit tk = this.getToolkit();
Image jarImage = tk.getImage(new IconImage(imgURL).getImage());