Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Java: Moving an Image using AffineTransform class

/*
License for sako adams adamafitini@gmail.com
You can use the examples and the source code any way you want, but
please include a reference to wher

Java: How to use JColorChooser

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class JColorChooserExample extends JFrame
{
    JLabel myLabel;
    Color cur

Java: Create a JLabel component

import javax.swing.*;
public class JLabelTest
 {
  public static void main(String[] args)
   {
   	// Create an object of JLabel class
    JLabel lab

JavaMail: How to use the FileDataSource class to send a file via email

import java.util.*;
import java.io.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
public class EmailsAttachFile
{

Java: Example of an underline and strikethrough text

  import java.awt.*;
  import java.awt.font.TextAttribute;
  import java.text.*;
  import javax.swing.*;
  public class AttributText
		{
		 public st

Java: How to create forms by using swing components

import javax.swing.*;
import java.awt.*;
public class JavaForms
 {
  public static void main(String[] args) {
    JTextField txtName = new JTextField

Java: Filtering a JTable

import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.RowFilter;
import javax.swing.table.Def

Java: Create MDI Application using JDesktopPane class

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class JavaMDI extends JFrame
{
	private JDesktopPane theDesktop;
	public Jav

Java: blur an image using Kernel class.

import java.awt.image.BufferedImage;
import java.awt.image.BufferedImageOp;
import java.awt.image.ConvolveOp;
import java.awt.image.Kernel;
i

Java: How to change JFrame icon

 import java.awt.*;
 import java.awt.event.*;
 import javax.swing.*;
  public class JFrameIcon extends JFrame
  {
  	public JFrameIcon()
  	{

Java: How to Read and execute a script source file

import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import javax.script.ScriptEngine;
import javax.script.Script

Java: Printing Text Component

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JButton;
import java.awt.BorderLayout;
im

JavaMail: Send a text message

import java.util.Properties;
import javax.mail.MessagingException;
import javax.mail.Folder;
import javax.mail.Message;
import javax.mail.PasswordAut

Java: How to pass parameter to JavaScript through Java code

import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
public class ScriptParameter
 {
  pub

JavaMail: How to read Yahoo and Gmail inboxes

import java.util.Properties;
import javax.mail.Authenticator;
import javax.mail.Folder;
import javax.mail.Message;
import javax.mail.PasswordAuthenti