Internet Explorer 7, 8 (IE 7, 8) HTML-5 Video tag support: Play your video in a tricky way.

HTML5 Video tag supports on IE 8HTML-5 is resourceful in many ways but most of the browsers don’t support it. You may know that IE 8 and IE-7 doesn’t support HTML-5 <video> tag. But I have got a solution to play video file (ogv format) in a tricky way. The process is tricky but not too much smart. I have given the code below.

Just copy the given code and paste it in your notepad and save it as HTML file. Now run the HTML file you will get the result. If you use Mozilla Firefox 3.6.13 (or later) you will get the accurate result. I have given below the images which I have tested on my pc using  IE-8 and Mozilla Firefox 3.6.13 browser.

Read more of this post

JTable cell Color: How to color your JTable individual cell background.

JTable Individual cell colorHere I am going to share with you a little solution by which you can color the background of individual JTable cell. In the following code I colored the cell’s background in click event i.e when you will click on the JTable Cell the background of that cell will be red. This solution is just to give you a basic idea; you can modify it as your own.  The code is given below.

 

Read more of this post

BCS Test Preparation: Fill in the gaps || Question and Answer

BCS exam Bangladesh Preparation If you are preparing yourself for Bangladesh Civil   Service (BCS) professional exam  then this section will be helpful for you. Here I have shared with you some fill in the blanks with appropriate preposition which will help you to boost your preparation.  This section is also helpful for Bank Job Recruitment exam, Government or Non-Government Recruitment exam and also for students.

How to: Facebook Like button on your WordPress free blog post.

Facebook like button, WordPress,If you are passionate with WordPress and like to express yourself, then you may also want others also like your blog. Facebook like button is a great tool by which readers can express their likings to your post.Here I am sharing with you the procedure about How to use Facebook like button at the end of your blog post.

 

 

Facebook like button, WordPress,

 

Read more of this post

JTable Cell Click Event: Click on the JTable Cell and show the Value of that cell.

Sometimes while programming we may need to check and show the value of JTable Cell in click event.

Here, in the given example, I did the coding in such a way that while clicking on a cell of  JTable

It will show the value of that JTable cell in MessageDialog Box.

Code Example:

import java.awt.*;

import java.awt.event.*;

import javax.swing.*;

import javax.swing.table.*;

class SimpleTableTest extends JFrame

                {

private JPanel topPanel ;

private JTable table;

private JScrollPane scrollPane;

private String[] columnNames= new String[3];

private String[][] dataValues=new String[3][3] ;
Read more of this post

Bank job solutions: Fill in the blanks For Students, Written Examination, MCQ & Quiz Purpose

Bank Job Written TestHere I  have shared some more fill in the blanks which will assist you to boost your knowledge.If you are preparing yourself for the bank job or any other  recruitment exam, then this section is for you. Helpful for Students, Bank Recruitment examination, Written Test, Job and Interview,MCQ and Quiz purpose. Not only English portion, in Recruitment exam  some questions related to basic computer knowledge also arrives. So, you have to make yourself prepare in that way.

Java :How to know in which Row and Column I have clicked on JTable

In this post I have shared you the solution about how to know in which Row and Column of JTable I have clicked.

According to the solution, wherever you have clicked on the JTable the result will be shown using

Message Dialog Box (Check the OUTPUT picture below).

 

Code Example:

import java.awt.*;

import java.awt.event.*;

import javax.swing.*;

import javax.swing.table.*;

class SimpleTableTest extends JFrame

                {

private JPanel topPanel ;

private JTable table;

private JScrollPane scrollPane;

private String[] columnNames= new String[3];

private String[][] dataValues=new String[3][3] ;

public SimpleTableTest()

    {

setTitle(“JTable Cell Click”);

setSize(300,300);

topPanel= new JPanel();

topPanel.setLayout(new BorderLayout());

getContentPane().add(topPanel);

setDefaultCloseOperation(EXIT_ON_CLOSE);

columnNames=new String[] {“Column 1″ , “Column 2″ , “Column 3″};

 dataValues = new String[][]   {

                                    {“1″,”2″,”3″},

                                    {“4″,”5″,”6″},

                                    {“7″,”8″,”9″}

                                          };

 TableModel model=new myTableModel();

 table =new JTable( );

 table.setRowHeight(50);

 table.setModel(model);

 scrollPane=new JScrollPane(table);

  topPanel.add(scrollPane,BorderLayout.CENTER);   

  table.addMouseListener(new java.awt.event.MouseAdapter()

            {

public void mouseClicked(java.awt.event.MouseEvent e)

{

int row=table.rowAtPoint(e.getPoint());

int col= table.columnAtPoint(e.getPoint());

JOptionPane.showMessageDialog(null,”You have Clicked on Column :” +(col+1)+ ” : and Row : ” +(row+1));

System.out.println(table.getValueAt(row,col).toString());

}

}

);

}

            public class myTableModel extends DefaultTableModel

                                                {

                                                    myTableModel( )

                                                 {

                                                  super(dataValues,columnNames);

                                                  System.out.println(“Inside myTableModel”);

                                                 }

                                                public boolean isCellEditable(int row,int cols)

                                                 {

                                   return false;                                                                                         

                                                }

                                                }         

            public static void main(String args[])

            {

            SimpleTableTest mainFrame=new SimpleTableTest();

            mainFrame.setVisible(true);

            }         

                 }
OUTPUT:

JTable Row and Column Click

WordPress free blog Favicon icon: Show your favorite image on the address bar.

Are you exploring yourself with WordPress free blog? Then it’s the time to explore you more.

Yes, I am also using self hosted WordPress free blog and was trying to make my free blog site more efficient.

I was trying for a long time to use my favorite image (as Favicon icon) on my free WordPress blog.

Any idea about Favicon icon?? Ok…Favicon is a small image which is shown in the left most side of the URL in our browser address bar.

I have got various links and sites but, I didn’t get any solution for the Self Hosted WordPress free blog.

At last I got the solution and I am going to share it with you.

What you have to do????  Just follow the steps…..

First: Login to your WordPress free blog account.

 Wordpress Login screen

Second: Then Select    Settings->General      

Wordpress General Settings

Third: in the General Settings page   find out the Blog Picture/Icon (Upper right hand side of the page)

Then choose the image file using Choose File button and then click Upload Image.

Wordpress blog/picture icon

Fourth: After clicking the Upload Image button, you will get a new window from where you have to crop the image by clicking Crop Image button.

Wordpress image crop

Wordpress image crop

Fifth: You are done Go to Settings->General you will get your image as below

Wordpress Blog/Picture Icon after Crop 

Sixth:  Wait and Check it to your browser….  Note:  Before checking clear the cache / history/ temporary internet files of your browser otherwise you will found your uploaded image (Favicon) is not appearing in the address bar.  Or, you can use different browser to check your WordPress free blog site with new Favicon icon.

 

 

 

I am trying to make my WordPress free blog more effective. Hope I will let you inform about more useful information.

All About Basic Fill in the Blanks with Appropriate Prepositions.

I am related to him.

She met me on Friday.

Tamim is occupied with his books.

The house is made of brick.

Gazi went away before dinner.

The book is being read by him.

I can not agree with your proposal.

Paul is destitude of any friend.

Read more of this post

Web Development: How to show another webpage or blog in your own blog or page.

 

I have found two solutions to show another webpage into your own blog or webpage.

Solution-1: Using   iframe:

 

Here is the code just paste it in your blog or page.

 

<center>

<iframe name=”Wordpress” src=”http://www.freesmsinfo.wordpress.com” frameborder=”0″ scrolling=”auto” height=”200″ width=”500″> <href=”http://www.freesmsinfo.wordpress.com”></a>

</iframe>

</center>

 

Important Notes on iframe:

This solution is better for those who are using   free WordPress blog or BlogSpot, whatever it is, and want to show other blog or page into theirs.

In various forums I found that the content of the page displayed    by   iframe will not be indexed by Google so   it is not SEO friendly

iframe may  also used to show adds on your page or blog.

Solution-2: Using   PHP:

 The following code is SEO friendly and the page displayed by using  PHP  include() function, will be indexed by Google.

<div>

<?php include(“menu.php”); ?>

</div>

Follow

Get every new post delivered to your Inbox.

Join 639 other followers