Click here to Skip to main content
15,923,909 members
Home / Discussions / Java
   

Java

 
GeneralRe: Digital Signature Pin
vivhari5-Sep-09 5:34
vivhari5-Sep-09 5:34 
GeneralRe: Digital Signature Pin
42774805-Sep-09 12:42
42774805-Sep-09 12:42 
QuestionFinding Duplicates:(Loop within a Loop) Pin
squalled3-Sep-09 20:20
squalled3-Sep-09 20:20 
AnswerRe: Finding Duplicates:(Loop within a Loop) Pin
Nagy Vilmos3-Sep-09 21:58
professionalNagy Vilmos3-Sep-09 21:58 
AnswerRe: Finding Duplicates:(Loop within a Loop) Pin
TorstenH.4-Sep-09 2:55
TorstenH.4-Sep-09 2:55 
AnswerRe: Finding Duplicates:(Loop within a Loop) Pin
42774804-Sep-09 8:52
42774804-Sep-09 8:52 
QuestionValidation Pin
hitesh.kalra2-Sep-09 2:07
hitesh.kalra2-Sep-09 2:07 
AnswerRe: Validation Pin
42774802-Sep-09 7:11
42774802-Sep-09 7:11 
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class Validate extends JFrame
{
	TextField t;
	public Validate()
	{
		t= new TextField(10);
		add(t);
		t.addKeyListener(new KeyAdapter() 
		{
			public void keyPressed(KeyEvent e) 
			{
				int key = e.getKeyCode();
				if ((key == KeyEvent.VK_0))
				{
					JOptionPane.showMessageDialog(null,"0 Was Clicked", "Note",JOptionPane.INFORMATION_MESSAGE);
				}
				else
					if((key == KeyEvent.VK_1)||(key == KeyEvent.VK_2)||(key == KeyEvent.VK_3)||(key == KeyEvent.VK_4)||(key == KeyEvent.VK_5)||(key == KeyEvent.VK_6||(key == KeyEvent.VK_7)||(key == KeyEvent.VK_8)||(key == KeyEvent.VK_9)))
					{
						return;
					}
					else
					{
						JOptionPane.showMessageDialog(null,"Invalid Input", "Note",JOptionPane.WARNING_MESSAGE);
						String s = t.getText();
						t.setText(s.replaceAll(e.getKeyChar()+"",""));
						
					}
			}
		}
		);
		setTitle("Validate");
		setLocationRelativeTo(null);
		pack();
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setVisible(true);
	}
	public static void main(String[] args) 
	{
		new Validate();
	}
}

GeneralRe: Validation Pin
David Skelly2-Sep-09 22:24
David Skelly2-Sep-09 22:24 
GeneralRe: Validation Pin
42774803-Sep-09 1:44
42774803-Sep-09 1:44 
GeneralRe: Validation Pin
David Skelly3-Sep-09 2:39
David Skelly3-Sep-09 2:39 
QuestionRunning Blackberry Application........ Pin
shaina223131-Aug-09 21:41
shaina223131-Aug-09 21:41 
AnswerRe: Running Blackberry Application........ Pin
EliottA2-Sep-09 3:00
EliottA2-Sep-09 3:00 
Questionplease help ... Pin
hitesh.kalra30-Aug-09 23:25
hitesh.kalra30-Aug-09 23:25 
AnswerRe: please help ... Pin
Christian Graus2-Sep-09 14:50
protectorChristian Graus2-Sep-09 14:50 
Questionjava coding Pin
hitesh.kalra30-Aug-09 23:20
hitesh.kalra30-Aug-09 23:20 
AnswerRe: java coding Pin
427748030-Aug-09 23:48
427748030-Aug-09 23:48 
QuestionSVD of image using JAMA.. Pin
ankita0529-Aug-09 20:51
ankita0529-Aug-09 20:51 
AnswerRe: SVD of image using JAMA.. Pin
427748030-Aug-09 12:06
427748030-Aug-09 12:06 
GeneralRe: SVD of image using JAMA.. Pin
ankita0530-Aug-09 15:42
ankita0530-Aug-09 15:42 
QuestionRegarding jdk 1.6 features Pin
kirancgi29-Aug-09 20:23
kirancgi29-Aug-09 20:23 
AnswerRe: Regarding jdk 1.6 features Pin
427748030-Aug-09 12:09
427748030-Aug-09 12:09 
Questiongo through an HTML file and create a list of all the bold and italic words Pin
Sadaiyappan29-Aug-09 9:14
Sadaiyappan29-Aug-09 9:14 
AnswerRe: go through an HTML file and create a list of all the bold and italic words Pin
427748030-Aug-09 12:18
427748030-Aug-09 12:18 
QuestionJava code of Vernam Cipher Algorithm Pin
Munna Bhagat28-Aug-09 6:50
Munna Bhagat28-Aug-09 6:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.