Posts

Showing posts from January, 2009

JDK1.3 Documentation

this jdk document very useful for swt programs... becoz swt gadget is using the jdk version 3.... http://java.sun.com/j2se/1.3/docs/api/

Creating war file using Process and Runtime class........

import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class CreateWar { public static void main(String[]args) { String temp="c:/createbat.bat";// have command in batch file commands are cd:/ , c:/ , jar -cvf c:/test.war -C c:/lookup // these lines are very important. jar-cvf is used to create the war file. BufferedReader br = executeProgram(temp); String line = new String(); try { while ((line = br.readLine()) != null) { System.out.println(line); } } catch (IOException e) { System.out.println("The Files are Failed"); e.printStackTrace(); } } private static BufferedReader executeProgram (String pgm) { System.out.println("pgm "+pgm); // creating war file by using the runtime and process class.... Runtime r = Runtime.getRuntime(); ...

jasper report tutorial

see this link for jasper report tutorial..... http://www.docstoc.com/docs/2139263/Jasper-Report-Tutorial http://www.cise.ufl.edu/~otopsaka/CIS4301/ReportDemo/ReportFromJava.html

animating progress bar--- creating according to the installation

the following code , which shows hot use the progressbar in the java swing... it uses the swing worker to animate its progress while installing or doing some updations.... refer this link for further doubts... swingworker:http://java.sun.com/docs/books/tutorial/uiswing/concurrency/simple.html /** this class progress is used to create to update the value by swing worker to the process method. this class type is mentioned in the swing worker it has two type of parameter, first shows the done method, and it should be overridden. the second parameter specifies the this call, and u should override the process method.. */ private static class Progress { private final double barValue; Progress(double barValue) { this.barValue = barValue; } } private class processTask extends SwingWorker { @Override protected Void doInBackground() throws Exception { progressBar.setIndeterminate(false); ...