Thursday, December 31, 2009

How to Display Programming Code in Your blog

If you are giving some programming tips in your blogs means you will give sample programs related that article.but if copy and paste sample code from some another location or you will type that

Code

              Most of the time your code won’t display in correct format.if you facing this problem this article will help you.

         

 

 

 

 

 

 

 

 

 

 

 

 

 

Select the programs and Click Quote button in the blogger toolbar.

moz-screenshot-2

Friday, December 25, 2009

Free Blog Templates

Choosing right blog template is important before start blogging,there are lot of blog templates available in number of websites.here we can find few best free blogger & wordpress templates sites.
Lot of free blog templates are available in above url. even you don’t want to do more customization.
We can download lot of free beautiful wordpress themes from the below url.
Simple and more powerful default blogger customized templates are available in the below location.
Most popular minima & rounder's templates are available here.

Thursday, December 24, 2009

Swing Invokelater Example


Here we can see How to write a responsive User interfaces using Swing.
Most post-initialization GUI work naturally occurs in the event-dispatching thread. Once the GUI is visible, most programs are driven by events such as button actions or mouse clicks, which are always handled in the event-dispatching thread. A program that uses separate worker threads to perform GUI-related processing can use invokelater and invokeandwait methods to cause a Runnable object to be run on the event-dispatching thread. 

Tuesday, December 22, 2009

Madras University Results

Some useful links for university results.
Madras University Results, Madras University DDE Results, Madurai Kamaraj University Results, Anna University,Annamalai University Results, Manonmaniam Sundaranar University Results.
IDE-ALL-PG and M.B.A Revaluation Results of June 2009.
check the below link.

How to Execute Shell Script From Java

Here is an example shows how to execute the shell scripts from java programs.

If you want to execute the below program set the java path in Unix environment.

export PATH=$PATH:/usr/jdk1.5.0/bin

export CLASSPATH=$CLASSPATH:/usr/jdk1.5.0/bin

create a shell script like shellscript.sh

#!/bin/bash
clear
echo "Good morning, world."

 

then change the permission for this script.if you execute the shell script you need execute permission.

chmod 777 shellscript.sh

try

./shellscript.sh

From java program

import java.io.IOException;

public class JavaScript {

public static void main(String[] args) {

         try {

                Runtime.getRuntime().exec("/root/shellscript.sh");

                System.out.println("Working Fine");

              } catch (IOException e) {

                   e.printStackTrace();

                                        }

           }

}

Sunday, December 20, 2009

Blog Templates

Blog templates are important for blog to become more popular.For new blogger, they usually start blogging from existing templates available in the blogger or wordpress.

Before you start blogging choose the right template for your blog topic and blog intention.if you like to earn something from blog(using adsense or other ads) means choosing right template is more important,otherwise if you chose a template and started writing about something and later you planning to change means you may lose some widgets or scripts.

There are lot of customized templates are available for BlogSpot and wordpress.

http://www.eblogtemplates.com/

http://webtalks.blogspot.com/2007/04/downlaod-three-column-new-blogger.html

3 column templates are most popular design templates,especially minima series and 3 column rounder series are commonly used blog templates.

 

image

 

image

above templates are well suits for adsense also.

After template selection add some featured widgets for your blog it will useful for you.

wowzio live activity feed widgets and more widgets are available in

wowzio.

related post

http://techieidea.blogspot.com/2009/11/best-blog-widgets.html

or you can use feedjit live widjet.

http://feedjit.com/joinjs/

and add some more suitable widgets for your blog and customize your template as you wish.

Saturday, December 19, 2009

Java Date Format

Below examples explains how to do date format using SimpleDateFormat and how to convert string to date in java.
SimpleDateFormat Example
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class DateFormatExample {
    public static void main(String args[]) {
        Date date = new Date();
        String DATE_FORMAT = "MM:dd:yyyy";
        // or
        // String DATE_FORMAT = "MM/dd/yyyy";
        SimpleDateFormat simDateFormat = new SimpleDateFormat(DATE_FORMAT);
        System.out.println("Today is " + simDateFormat.format(date));
        // or If you want display time with AM/PM
        String TIME_FORMAT = "HH:mm:ss a";
        SimpleDateFormat timeFormat = new SimpleDateFormat(TIME_FORMAT);
        System.out.println("Now time is " + timeFormat.format(date));
        // Today date and Time
        System.out.println("Date and time is " + simDateFormat.format(date)
                + " " + timeFormat.format(date));
        }
}
Convert String to Date


import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class StrToDate {
    public static void main(String[] args) {
        String stri = "18/12/2009";
        DateFormat simDateForm = new SimpleDateFormat("dd/MM/yyyy");
        Date dstr;
        try {
            dstr = (Date) simDateForm.parse(stri);
            System.out.println("Date is" + dstr);
        } catch (ParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
}

Bookmark and Share
Hihera.com
Increase Page Rank Google
TopBlogDir.blogspot.com button
Best Indian websites ranking
Tips for New Bloggers
TopOfBlogs
The Link Exchange - Your ultimate resource for link exchange!

About This Blog

TopOfBlogs

FEEDJIT Live Traffic Feed

  © Blogger template Webnolia by Ourblogtemplates.com 2009

Back to TOP