To get a list of user accounts on a MySQL server instance, we need to make a SELECT call to the mysql.user table.
First, fire up MySQL in your terminal and login as an administrator account with:
mysql -u root -p
You will be prompted for your root password before being granted access to the
[ read more ]
An example on getting and printing a string from system clipboard in Java in just 2 statements.
Example
import java.awt.*;
import java.awt.datatransfer.*;
class SystemClipboard
{
public static void main(String args[]) throws Exception
{
// Create a Clipboard object using get
[ read more ]
An example on pasting an image that is on system clipboard in Java on a JFrame. Here we've used a JLabel and set the image from the clipboard to it as icon.
Example
// Import for BorderLayout
import java.awt.*;
// Import for JFrame, JLabel
import javax.swing.*;
// Import for Clip
[ read more ]
The basic idea this time is to present a way to form a tag cloud from user input text and text entered in the past. A tag cloud is a visual depiction of user-generated tags, or simply the word content of a site, used typically to describe the content of web sites.
for this we will create an HTML
[ read more ]
Hi last evening i am worry about the thing that i delete data from Cell of the Excel file but when i retrieving data and displaying it was showing me that cell from which i delete data as “null” and that is the Problem for Me …….. Now for that I solve it like that ...
[ read more ]
Hi last evening i am worry about the thing that i delete data from Cell of the Excel file but when i retrieving data and displaying it was showing me that cell from which i delete data as “null” and that is the Problem for Me …….. Now for that I solve it like that ...
[ read more ]
Both Oracle an GlassFish runs by default on port number 8080,results in port conflict
Following are simple steps to change the port number of glassfish server :
Go to the folder where Glassfish is installed.
Locate config folder which is as follows: C:Program Filesglassfish-3.0.1glassfishdo
[ read more ]
Android Development Introduction
Android Development Tutorial (Part 1) (Part 2)
Android Filebased Persistence with Preferences, Filesystem and SD Card
Android ListView and ListActivity
Android Intents
Android SQLite Database and ContentProvider
Android Custom Views
Android Liv
[ read more ]