Code: Select all
String string=String.valueOf(passwordField);
Code: Select all
String string=String.valueOf(passwordField);
Code: Select all
JButton button=new JButton("button");
JPasswordField passwordField=new JPasswordField(10);
passwordField.addActionListener(this);
public void actionPerformed(ActionEvent e)
{
String s="something";
String string=String.valueOf(passwordField.getPassword());
......................................
else if(e.getSource()==button)
{
if(string.equals(s))
{
System.out.println("something");
}
else
{
System.out.println("something else");
}
}
Code: Select all
String string=String.valueOf(passwordField.getPassword());
Code: Select all
int1=Integer.parseInt(TextField.getText());
int2=Integer.parseInt(TextField2.getText());
int3=Integer.parseInt(TextField3.getText());
int4=(int2*int2)-4*int1*int3;
int5=-int2+Math.sqrt(int4)/2*int1;
int6=-int2-Math.sqrt(int4)/2*int1;
s3=String.valueOf(int5);
s4=String.valueOf(int6);
TextField4.setText(s3);
TextField5.setText(s4);
int2=Integer.parseInt(TextField2.getText().trim());
Code: Select all
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
/public class Main1 extends javax.swing.JFrame {
String s,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13,s14,s15,s16,s17,swrong;
public Main1() {
initComponents();
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
} catch (IllegalAccessException ex) {
ex.printStackTrace();
} catch (UnsupportedLookAndFeelException ex) {
ex.printStackTrace();
} catch (ClassNotFoundException ex) {
ex.printStackTrace();
} catch (InstantiationException ex) {
ex.printStackTrace();
}
SwingUtilities.updateComponentTreeUI(this);
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
} catch (IllegalAccessException ex) {
ex.printStackTrace();
} catch (UnsupportedLookAndFeelException ex) {
ex.printStackTrace();
} catch (ClassNotFoundException ex) {
ex.printStackTrace();
} catch (InstantiationException ex) {
ex.printStackTrace();
}
SwingUtilities.updateComponentTreeUI(jFrame1);
}
private void initComponents() {
Container contentPane;
jFrame1 = new javax.swing.JFrame();
jLabel4 = new JLabel("Ον/μο");
jLabel11 = new JLabel("Τηλέφωνο");
jLabel5 = new JLabel("");
jLabel6 = new JLabel("");
jLabel7 = new JLabel("");
jLabel8 = new JLabel("");
jLabel9 = new JLabel("");
jLabel10 = new JLabel("");
jLabel12 = new JLabel("");
jLabel13 = new JLabel("");
jLabel14 = new JLabel("");
jLabel15 = new JLabel("");
jLabel16 = new JLabel("");
jLabel17 = new JLabel("");
jLabel18 = new JLabel("Περιοχή");
jLabel19 = new JLabel("");
jLabel20 = new JLabel("");
jLabel21 = new JLabel("");
jLabel22 = new JLabel("");
jLabel23 = new JLabel("");
jLabel24 = new JLabel("");
jPanel1 = new JPanel();
jLabel1 = new JLabel("Ον/μο");
jTextField1 = new JTextField(10);
jLabel2 = new JLabel("Τηλέφωνο");
jTextField2 = new JTextField(10);
jButton1 = new JButton("Καταχώριση 1ης");
jButton2 = new JButton("Καταχώριση 2ης");
jButton3 = new JButton("Καταχώριση 3ης");
jButton4 = new JButton("Καταχώριση 4ης");
jButton5 = new JButton("Καταχώριση 5ης");
jButton6 = new JButton("Καταχώριση 6ης");
jLabel3 = new JLabel("Περιοχή");
jTextField3 = new JTextField(10);
jButton7 = new JButton("Τέλος καταχωρίσεων");
contentPane = getContentPane();
jFrame1.getContentPane();
jFrame1.getContentPane().setLayout(null);
Insets insets =jFrame1.getContentPane().getInsets();
jFrame1.setTitle("Επαφές");
jFrame1.setSize(546,359);
jFrame1.setVisible(false);
Dimension size = jLabel4.getPreferredSize();
jLabel4.setFont(new java.awt.Font("MS Sans Serif", 0, 12));
jLabel4.setBounds(30 + insets.left, 15 +insets.top, size.width, size.height);
jFrame1.getContentPane().add(jLabel4);
size=jLabel11.getPreferredSize();
jLabel11.setFont(new java.awt.Font("MS Sans Serif", 0, 12));
jLabel11.setBounds(186 + insets.left, 15 +insets.top, size.width, size.height);
jFrame1.getContentPane().add(jLabel11);
size=jLabel5.getPreferredSize();
jLabel5.setFont(new java.awt.Font("Times New Roman", 1, 12));
jLabel5.setBounds(30 + insets.left, 55 +insets.top, size.width, size.height);
jFrame1.getContentPane().add(jLabel5);
jLabel5.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jLabel5MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jLabel5MouseExited(evt);
}
});
size=jLabel6.getPreferredSize();
jLabel6.setFont(new java.awt.Font("Times New Roman", 1, 12));
jLabel6.setBounds(30 + insets.left, 75 +insets.top, size.width, size.height);
jFrame1.getContentPane().add(jLabel6);
jLabel6.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jLabel6MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jLabel6MouseExited(evt);
}
});
size=jLabel7.getPreferredSize();
jLabel7.setFont(new java.awt.Font("Times New Roman", 1, 12));
jLabel7.setBounds(30 + insets.left, 95 +insets.top, size.width, size.height);
jFrame1.getContentPane().add(jLabel7);
jLabel7.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jLabel7MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jLabel7MouseExited(evt);
}
});
size=jLabel8.getPreferredSize();
jLabel8.setFont(new java.awt.Font("Times New Roman", 1, 12));
jLabel8.setBounds(30 + insets.left, 115 +insets.top, size.width, size.height);
jFrame1.getContentPane().add(jLabel8);
jLabel8.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jLabel8MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jLabel8MouseExited(evt);
}
});
size=jLabel9.getPreferredSize();
jLabel9.setFont(new java.awt.Font("Times New Roman", 1, 12));
jLabel9.setBounds(30 + insets.left, 135 +insets.top, size.width, size.height);
jFrame1.getContentPane().add(jLabel9);
jLabel9.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jLabel9MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jLabel9MouseExited(evt);
}
});
size=jLabel10.getPreferredSize();
jLabel10.setFont(new java.awt.Font("Times New Roman", 1, 12));
jLabel10.setBounds(30 + insets.left, 155 +insets.top, size.width, size.height);
jFrame1.getContentPane().add(jLabel10);
jLabel10.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jLabel10MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jLabel10MouseExited(evt);
}
});
size=jLabel12.getPreferredSize();
jLabel12.setFont(new java.awt.Font("Times New Roman", 1, 12));
jLabel12.setBounds(186 + insets.left, 55 +insets.top, size.width, size.height);
jFrame1.getContentPane().add(jLabel12);
jLabel12.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jLabel12MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jLabel12MouseExited(evt);
}
});
size=jLabel13.getPreferredSize();
jLabel13.setFont(new java.awt.Font("Times New Roman", 1, 12));
jLabel13.setBounds(186 + insets.left, 75 +insets.top, size.width, size.height);
jFrame1.getContentPane().add(jLabel13);
jLabel13.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jLabel13MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jLabel13MouseExited(evt);
}
});
size=jLabel14.getPreferredSize();
jLabel14.setFont(new java.awt.Font("Times New Roman", 1, 12));
jLabel14.setBounds(186 + insets.left, 95 +insets.top, size.width, size.height);
jFrame1.getContentPane().add(jLabel14);
jLabel14.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jLabel14MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jLabel14MouseExited(evt);
}
});
size=jLabel15.getPreferredSize();
jLabel15.setFont(new java.awt.Font("Times New Roman", 1, 12));
jLabel15.setBounds(186 + insets.left, 115 +insets.top, size.width, size.height);
jFrame1.getContentPane().add(jLabel15);
jLabel15.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jLabel15MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jLabel15MouseExited(evt);
}
});
size=jLabel16.getPreferredSize();
jLabel16.setFont(new java.awt.Font("Times New Roman", 1, 12));
jLabel16.setBounds(186 + insets.left, 135 +insets.top, size.width, size.height);
jFrame1.getContentPane().add(jLabel16);
jLabel16.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jLabel16MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jLabel16MouseExited(evt);
}
});
size=jLabel17.getPreferredSize();
jLabel17.setFont(new java.awt.Font("Times New Roman", 1, 12));
jLabel17.setBounds(186 + insets.left, 155 +insets.top, size.width, size.height);
jFrame1.getContentPane().add(jLabel17);
jLabel17.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jLabel17MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jLabel17MouseExited(evt);
}
});
size=jLabel18.getPreferredSize();
jLabel18.setFont(new java.awt.Font("MS Sans Serif", 0, 12));
jLabel18.setBounds(342 + insets.left, 15 +insets.top, size.width, size.height);
jFrame1.getContentPane().add(jLabel18);
size=jLabel19.getPreferredSize();
jLabel19.setFont(new java.awt.Font("Times New Roman", 1, 12));
jLabel19.setBounds(342 + insets.left, 55 +insets.top, size.width, size.height);
jFrame1.getContentPane().add(jLabel19);
jLabel19.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jLabel19MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jLabel19MouseExited(evt);
}
});
size=jLabel20.getPreferredSize();
jLabel20.setFont(new java.awt.Font("Times New Roman", 1, 12));
jLabel20.setBounds(342 + insets.left, 75 +insets.top, size.width, size.height);
jFrame1.getContentPane().add(jLabel20);
jLabel20.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jLabel20MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jLabel20MouseExited(evt);
}
});
size=jLabel21.getPreferredSize();
jLabel21.setFont(new java.awt.Font("Times New Roman", 1, 12));
jLabel21.setBounds(342 + insets.left, 95 +insets.top, size.width, size.height);
jFrame1.getContentPane().add(jLabel21);
jLabel21.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jLabel21MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jLabel21MouseExited(evt);
}
});
size=jLabel22.getPreferredSize();
jLabel22.setFont(new java.awt.Font("Times New Roman", 1, 12));
jLabel22.setBounds(342 + insets.left, 115 +insets.top, size.width, size.height);
jFrame1.getContentPane().add(jLabel22);
jLabel22.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jLabel22MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jLabel22MouseExited(evt);
}
});
size=jLabel23.getPreferredSize();
jLabel23.setFont(new java.awt.Font("Times New Roman", 1, 12));
jLabel23.setBounds(342 + insets.left, 135 +insets.top, size.width, size.height);
jFrame1.getContentPane().add(jLabel23);
jLabel23.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jLabel23MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jLabel23MouseExited(evt);
}
});
size=jLabel24.getPreferredSize();
jLabel24.setFont(new java.awt.Font("Times New Roman", 1, 12));
jLabel24.setBounds(342 + insets.left, 155 +insets.top, size.width, size.height);
jFrame1.getContentPane().add(jLabel24);
jLabel24.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jLabel24MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jLabel24MouseExited(evt);
}
});
getContentPane();
getContentPane().setLayout(null);
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Επαφές");
size=jLabel1.getPreferredSize();
jLabel1.setBounds(10 + insets.left, 20 +insets.top, size.width, size.height);
getContentPane().add(jLabel1);
size=jTextField1.getPreferredSize();
jTextField1.setBounds(43 + insets.left, 19 +insets.top, size.width, size.height);
getContentPane().add(jTextField1);
jTextField1.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jTextField1MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jTextField1MouseExited(evt);
}
});
size=jLabel2.getPreferredSize();
jLabel2.setBounds(10 + insets.left, 48 +insets.top, size.width, size.height);
getContentPane().add(jLabel2);
size=jTextField2.getPreferredSize();
jTextField2.setBounds(63 + insets.left, 47 +insets.top, size.width, size.height);
getContentPane().add(jTextField2);
jTextField2.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jTextField2MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jTextField2MouseExited(evt);
}
});
size=jButton1.getPreferredSize();
jButton1.setBackground(new java.awt.Color(204, 204, 255));
jButton1.setBounds(10 + insets.left, 230 +insets.top, size.width, size.height);
getContentPane().add(jButton1);
jButton1.setActionCommand("ok");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
size=jButton2.getPreferredSize();
jButton2.setBackground(new java.awt.Color(204, 204, 255));
jButton2.setBounds(140 + insets.left, 230 +insets.top, size.width, size.height);
getContentPane().add(jButton2);
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
size=jButton3.getPreferredSize();
jButton3.setBackground(new java.awt.Color(204, 204, 255));
jButton3.setBounds(270 + insets.left, 230 +insets.top, size.width, size.height);
getContentPane().add(jButton3);
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
size=jButton4.getPreferredSize();
jButton4.setBackground(new java.awt.Color(204, 204, 255));
jButton4.setBounds(10 + insets.left, 257 +insets.top, size.width, size.height);
getContentPane().add(jButton4);
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton4ActionPerformed(evt);
}
});
size=jButton5.getPreferredSize();
jButton5.setBackground(new java.awt.Color(204, 204, 255));
jButton5.setBounds(140 + insets.left, 257 +insets.top, size.width, size.height);
getContentPane().add(jButton5);
jButton5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton5ActionPerformed(evt);
}
});
size=jButton6.getPreferredSize();
jButton6.setBackground(new java.awt.Color(204, 204, 255));
jButton6.setBounds(270 + insets.left, 257 +insets.top, size.width, size.height);
getContentPane().add(jButton6);
jButton6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton6ActionPerformed(evt);
}
});
size=jLabel3.getPreferredSize();
jLabel3.setBounds(10 + insets.left, 75 +insets.top, size.width, size.height);
getContentPane().add(jLabel3);
size=jTextField3.getPreferredSize();
jTextField3.setBounds(52 + insets.left, 74 +insets.top, size.width, size.height);
getContentPane().add(jTextField3);
jTextField3.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
jTextField3MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
jTextField3MouseExited(evt);
}
});
size=jButton7.getPreferredSize();
jButton7.setBackground(new java.awt.Color(204, 204, 255));
jButton7.setBounds(230 + insets.left, 72 +insets.top, size.width, size.height);
getContentPane().add(jButton7);
jButton7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton7ActionPerformed(evt);
}
});
private void jLabel24MouseExited(java.awt.event.MouseEvent evt) {
try
{
jLabel10.setForeground(Color.black);
jLabel17.setForeground(Color.black);
jLabel24.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel17MouseExited(java.awt.event.MouseEvent evt) {
try
{
jLabel10.setForeground(Color.black);
jLabel17.setForeground(Color.black);
jLabel24.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel10MouseExited(java.awt.event.MouseEvent evt) {
try
{
jLabel10.setForeground(Color.black);
jLabel17.setForeground(Color.black);
jLabel24.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel24MouseEntered(java.awt.event.MouseEvent evt) {
try
{
jLabel5.setForeground(Color.black);
jLabel12.setForeground(Color.black);
jLabel19.setForeground(Color.black);
jLabel6.setForeground(Color.black);
jLabel13.setForeground(Color.black);
jLabel20.setForeground(Color.black);
jLabel7.setForeground(Color.black);
jLabel14.setForeground(Color.black);
jLabel21.setForeground(Color.black);
jLabel8.setForeground(Color.black);
jLabel15.setForeground(Color.black);
jLabel22.setForeground(Color.black);
jLabel9.setForeground(Color.black);
jLabel16.setForeground(Color.black);
jLabel23.setForeground(Color.black);
jLabel10.setForeground(Color.GRAY);
jLabel17.setForeground(Color.gray);
jLabel24.setForeground(Color.gray);
}
catch(NullPointerException npe)
{
}
}
private void jLabel17MouseEntered(java.awt.event.MouseEvent evt) {
try
{
jLabel5.setForeground(Color.black);
jLabel12.setForeground(Color.black);
jLabel19.setForeground(Color.black);
jLabel6.setForeground(Color.black);
jLabel13.setForeground(Color.black);
jLabel20.setForeground(Color.black);
jLabel7.setForeground(Color.black);
jLabel14.setForeground(Color.black);
jLabel21.setForeground(Color.black);
jLabel8.setForeground(Color.black);
jLabel15.setForeground(Color.black);
jLabel22.setForeground(Color.black);
jLabel9.setForeground(Color.black);
jLabel16.setForeground(Color.black);
jLabel23.setForeground(Color.black);
jLabel10.setForeground(Color.GRAY);
jLabel17.setForeground(Color.gray);
jLabel24.setForeground(Color.gray);
}
catch(NullPointerException npe)
{
}
}
private void jLabel10MouseEntered(java.awt.event.MouseEvent evt) {
try
{
jLabel5.setForeground(Color.black);
jLabel12.setForeground(Color.black);
jLabel19.setForeground(Color.black);
jLabel6.setForeground(Color.black);
jLabel13.setForeground(Color.black);
jLabel20.setForeground(Color.black);
jLabel7.setForeground(Color.black);
jLabel14.setForeground(Color.black);
jLabel21.setForeground(Color.black);
jLabel8.setForeground(Color.black);
jLabel15.setForeground(Color.black);
jLabel22.setForeground(Color.black);
jLabel9.setForeground(Color.black);
jLabel16.setForeground(Color.black);
jLabel23.setForeground(Color.black);
jLabel10.setForeground(Color.GRAY);
jLabel17.setForeground(Color.gray);
jLabel24.setForeground(Color.gray);
}
catch(NullPointerException npe)
{
}
}
private void jLabel23MouseExited(java.awt.event.MouseEvent evt) {
try
{
jLabel9.setForeground(Color.black);
jLabel16.setForeground(Color.black);
jLabel23.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel16MouseExited(java.awt.event.MouseEvent evt) {
try
{
jLabel9.setForeground(Color.black);
jLabel16.setForeground(Color.black);
jLabel23.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel9MouseExited(java.awt.event.MouseEvent evt) {
try
{
jLabel9.setForeground(Color.black);
jLabel16.setForeground(Color.black);
jLabel23.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel23MouseEntered(java.awt.event.MouseEvent evt) {
try
{
jLabel5.setForeground(Color.black);
jLabel12.setForeground(Color.black);
jLabel19.setForeground(Color.black);
jLabel6.setForeground(Color.black);
jLabel13.setForeground(Color.black);
jLabel20.setForeground(Color.black);
jLabel7.setForeground(Color.black);
jLabel14.setForeground(Color.black);
jLabel21.setForeground(Color.black);
jLabel8.setForeground(Color.black);
jLabel15.setForeground(Color.black);
jLabel22.setForeground(Color.black);
jLabel9.setForeground(Color.MAGENTA);
jLabel16.setForeground(Color.magenta);
jLabel23.setForeground(Color.magenta);
jLabel10.setForeground(Color.black);
jLabel17.setForeground(Color.black);
jLabel24.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel16MouseEntered(java.awt.event.MouseEvent evt) {
try
{
jLabel5.setForeground(Color.black);
jLabel12.setForeground(Color.black);
jLabel19.setForeground(Color.black);
jLabel6.setForeground(Color.black);
jLabel13.setForeground(Color.black);
jLabel20.setForeground(Color.black);
jLabel7.setForeground(Color.black);
jLabel14.setForeground(Color.black);
jLabel21.setForeground(Color.black);
jLabel8.setForeground(Color.black);
jLabel15.setForeground(Color.black);
jLabel22.setForeground(Color.black);
jLabel9.setForeground(Color.MAGENTA);
jLabel16.setForeground(Color.magenta);
jLabel23.setForeground(Color.magenta);
jLabel10.setForeground(Color.black);
jLabel17.setForeground(Color.black);
jLabel24.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel9MouseEntered(java.awt.event.MouseEvent evt) {
try
{
jLabel5.setForeground(Color.black);
jLabel12.setForeground(Color.black);
jLabel19.setForeground(Color.black);
jLabel6.setForeground(Color.black);
jLabel13.setForeground(Color.black);
jLabel20.setForeground(Color.black);
jLabel7.setForeground(Color.black);
jLabel14.setForeground(Color.black);
jLabel21.setForeground(Color.black);
jLabel8.setForeground(Color.black);
jLabel15.setForeground(Color.black);
jLabel22.setForeground(Color.black);
jLabel9.setForeground(Color.MAGENTA);
jLabel16.setForeground(Color.magenta);
jLabel23.setForeground(Color.magenta);
jLabel10.setForeground(Color.black);
jLabel17.setForeground(Color.black);
jLabel24.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel22MouseExited(java.awt.event.MouseEvent evt) {
try
{
jLabel8.setForeground(Color.black);
jLabel15.setForeground(Color.black);
jLabel22.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel15MouseExited(java.awt.event.MouseEvent evt) {
try
{
jLabel8.setForeground(Color.black);
jLabel15.setForeground(Color.black);
jLabel22.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel8MouseExited(java.awt.event.MouseEvent evt) {
try
{
jLabel8.setForeground(Color.black);
jLabel15.setForeground(Color.black);
jLabel22.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel22MouseEntered(java.awt.event.MouseEvent evt) {
try
{
jLabel5.setForeground(Color.black);
jLabel12.setForeground(Color.black);
jLabel19.setForeground(Color.black);
jLabel6.setForeground(Color.black);
jLabel13.setForeground(Color.black);
jLabel20.setForeground(Color.black);
jLabel7.setForeground(Color.black);
jLabel14.setForeground(Color.black);
jLabel21.setForeground(Color.black);
jLabel8.setForeground(Color.CYAN);
jLabel15.setForeground(Color.cyan);
jLabel22.setForeground(Color.cyan);
jLabel9.setForeground(Color.black);
jLabel16.setForeground(Color.black);
jLabel23.setForeground(Color.black);
jLabel10.setForeground(Color.black);
jLabel17.setForeground(Color.black);
jLabel24.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel15MouseEntered(java.awt.event.MouseEvent evt) {
try
{
jLabel5.setForeground(Color.black);
jLabel12.setForeground(Color.black);
jLabel19.setForeground(Color.black);
jLabel6.setForeground(Color.black);
jLabel13.setForeground(Color.black);
jLabel20.setForeground(Color.black);
jLabel7.setForeground(Color.black);
jLabel14.setForeground(Color.black);
jLabel21.setForeground(Color.black);
jLabel8.setForeground(Color.CYAN);
jLabel15.setForeground(Color.cyan);
jLabel22.setForeground(Color.cyan);
jLabel9.setForeground(Color.black);
jLabel16.setForeground(Color.black);
jLabel23.setForeground(Color.black);
jLabel10.setForeground(Color.black);
jLabel17.setForeground(Color.black);
jLabel24.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel8MouseEntered(java.awt.event.MouseEvent evt) {
try
{
jLabel5.setForeground(Color.black);
jLabel12.setForeground(Color.black);
jLabel19.setForeground(Color.black);
jLabel6.setForeground(Color.black);
jLabel13.setForeground(Color.black);
jLabel20.setForeground(Color.black);
jLabel7.setForeground(Color.black);
jLabel14.setForeground(Color.black);
jLabel21.setForeground(Color.black);
jLabel8.setForeground(Color.CYAN);
jLabel15.setForeground(Color.cyan);
jLabel22.setForeground(Color.cyan);
jLabel9.setForeground(Color.black);
jLabel16.setForeground(Color.black);
jLabel23.setForeground(Color.black);
jLabel10.setForeground(Color.black);
jLabel17.setForeground(Color.black);
jLabel24.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel21MouseExited(java.awt.event.MouseEvent evt) {
try
{
jLabel7.setForeground(Color.black);
jLabel14.setForeground(Color.black);
jLabel21.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel14MouseExited(java.awt.event.MouseEvent evt) {
try
{
jLabel7.setForeground(Color.black);
jLabel14.setForeground(Color.black);
jLabel21.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel7MouseExited(java.awt.event.MouseEvent evt) {
try
{
jLabel7.setForeground(Color.black);
jLabel14.setForeground(Color.black);
jLabel21.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel21MouseEntered(java.awt.event.MouseEvent evt) {
try
{
jLabel5.setForeground(Color.black);
jLabel12.setForeground(Color.black);
jLabel19.setForeground(Color.black);
jLabel6.setForeground(Color.black);
jLabel13.setForeground(Color.black);
jLabel20.setForeground(Color.black);
jLabel7.setForeground(Color.GREEN);
jLabel14.setForeground(Color.green);
jLabel21.setForeground(Color.green);
jLabel8.setForeground(Color.black);
jLabel15.setForeground(Color.black);
jLabel22.setForeground(Color.black);
jLabel9.setForeground(Color.black);
jLabel16.setForeground(Color.black);
jLabel23.setForeground(Color.black);
jLabel10.setForeground(Color.black);
jLabel17.setForeground(Color.black);
jLabel24.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel14MouseEntered(java.awt.event.MouseEvent evt) {
try
{
jLabel5.setForeground(Color.black);
jLabel12.setForeground(Color.black);
jLabel19.setForeground(Color.black);
jLabel6.setForeground(Color.black);
jLabel13.setForeground(Color.black);
jLabel20.setForeground(Color.black);
jLabel7.setForeground(Color.GREEN);
jLabel14.setForeground(Color.green);
jLabel21.setForeground(Color.green);
jLabel8.setForeground(Color.black);
jLabel15.setForeground(Color.black);
jLabel22.setForeground(Color.black);
jLabel9.setForeground(Color.black);
jLabel16.setForeground(Color.black);
jLabel23.setForeground(Color.black);
jLabel10.setForeground(Color.black);
jLabel17.setForeground(Color.black);
jLabel24.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel7MouseEntered(java.awt.event.MouseEvent evt) {
try
{
jLabel5.setForeground(Color.black);
jLabel12.setForeground(Color.black);
jLabel19.setForeground(Color.black);
jLabel6.setForeground(Color.black);
jLabel13.setForeground(Color.black);
jLabel20.setForeground(Color.black);
jLabel7.setForeground(Color.GREEN);
jLabel14.setForeground(Color.green);
jLabel21.setForeground(Color.green);
jLabel8.setForeground(Color.black);
jLabel15.setForeground(Color.black);
jLabel22.setForeground(Color.black);
jLabel9.setForeground(Color.black);
jLabel16.setForeground(Color.black);
jLabel23.setForeground(Color.black);
jLabel10.setForeground(Color.black);
jLabel17.setForeground(Color.black);
jLabel24.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel20MouseExited(java.awt.event.MouseEvent evt) {
try
{
jLabel6.setForeground(Color.black);
jLabel13.setForeground(Color.black);
jLabel20.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel13MouseExited(java.awt.event.MouseEvent evt) {
try
{
jLabel6.setForeground(Color.black);
jLabel13.setForeground(Color.black);
jLabel20.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel6MouseExited(java.awt.event.MouseEvent evt) {
try
{
jLabel6.setForeground(Color.black);
jLabel13.setForeground(Color.black);
jLabel20.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel20MouseEntered(java.awt.event.MouseEvent evt) {
try
{
jLabel5.setForeground(Color.black);
jLabel12.setForeground(Color.black);
jLabel19.setForeground(Color.black);
jLabel6.setForeground(Color.BLUE);
jLabel13.setForeground(Color.BLUE);
jLabel20.setForeground(Color.BLUE);
jLabel7.setForeground(Color.black);
jLabel14.setForeground(Color.black);
jLabel21.setForeground(Color.black);
jLabel8.setForeground(Color.black);
jLabel15.setForeground(Color.black);
jLabel22.setForeground(Color.black);
jLabel9.setForeground(Color.black);
jLabel16.setForeground(Color.black);
jLabel23.setForeground(Color.black);
jLabel10.setForeground(Color.black);
jLabel17.setForeground(Color.black);
jLabel24.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel13MouseEntered(java.awt.event.MouseEvent evt) {
try
{
jLabel5.setForeground(Color.black);
jLabel12.setForeground(Color.black);
jLabel19.setForeground(Color.black);
jLabel6.setForeground(Color.BLUE);
jLabel13.setForeground(Color.BLUE);
jLabel20.setForeground(Color.BLUE);
jLabel7.setForeground(Color.black);
jLabel14.setForeground(Color.black);
jLabel21.setForeground(Color.black);
jLabel8.setForeground(Color.black);
jLabel15.setForeground(Color.black);
jLabel22.setForeground(Color.black);
jLabel9.setForeground(Color.black);
jLabel16.setForeground(Color.black);
jLabel23.setForeground(Color.black);
jLabel10.setForeground(Color.black);
jLabel17.setForeground(Color.black);
jLabel24.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel6MouseEntered(java.awt.event.MouseEvent evt) {
try
{
jLabel5.setForeground(Color.black);
jLabel12.setForeground(Color.black);
jLabel19.setForeground(Color.black);
jLabel6.setForeground(Color.BLUE);
jLabel13.setForeground(Color.BLUE);
jLabel20.setForeground(Color.BLUE);
jLabel7.setForeground(Color.black);
jLabel14.setForeground(Color.black);
jLabel21.setForeground(Color.black);
jLabel8.setForeground(Color.black);
jLabel15.setForeground(Color.black);
jLabel22.setForeground(Color.black);
jLabel9.setForeground(Color.black);
jLabel16.setForeground(Color.black);
jLabel23.setForeground(Color.black);
jLabel10.setForeground(Color.black);
jLabel17.setForeground(Color.black);
jLabel24.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel19MouseExited(java.awt.event.MouseEvent evt) {
try
{
jLabel5.setForeground(Color.black);
jLabel12.setForeground(Color.black);
jLabel19.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel12MouseExited(java.awt.event.MouseEvent evt) {
try
{
jLabel5.setForeground(Color.black);
jLabel12.setForeground(Color.black);
jLabel19.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel5MouseExited(java.awt.event.MouseEvent evt) {
try
{
jLabel5.setForeground(Color.black);
jLabel12.setForeground(Color.black);
jLabel19.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel19MouseEntered(java.awt.event.MouseEvent evt) {
try
{
jLabel5.setForeground(Color.red);
jLabel12.setForeground(Color.red);
jLabel19.setForeground(Color.red);
jLabel6.setForeground(Color.black);
jLabel13.setForeground(Color.black);
jLabel20.setForeground(Color.black);
jLabel7.setForeground(Color.black);
jLabel14.setForeground(Color.black);
jLabel21.setForeground(Color.black);
jLabel8.setForeground(Color.black);
jLabel15.setForeground(Color.black);
jLabel22.setForeground(Color.black);
jLabel9.setForeground(Color.black);
jLabel16.setForeground(Color.black);
jLabel23.setForeground(Color.black);
jLabel10.setForeground(Color.black);
jLabel17.setForeground(Color.black);
jLabel24.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel12MouseEntered(java.awt.event.MouseEvent evt) {
try
{
jLabel5.setForeground(Color.red);
jLabel12.setForeground(Color.red);
jLabel19.setForeground(Color.red);
jLabel6.setForeground(Color.black);
jLabel13.setForeground(Color.black);
jLabel20.setForeground(Color.black);
jLabel7.setForeground(Color.black);
jLabel14.setForeground(Color.black);
jLabel21.setForeground(Color.black);
jLabel8.setForeground(Color.black);
jLabel15.setForeground(Color.black);
jLabel22.setForeground(Color.black);
jLabel9.setForeground(Color.black);
jLabel16.setForeground(Color.black);
jLabel23.setForeground(Color.black);
jLabel10.setForeground(Color.black);
jLabel17.setForeground(Color.black);
jLabel24.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jLabel5MouseEntered(java.awt.event.MouseEvent evt) {
try
{
jLabel5.setForeground(Color.red);
jLabel12.setForeground(Color.red);
jLabel19.setForeground(Color.red);
jLabel6.setForeground(Color.black);
jLabel13.setForeground(Color.black);
jLabel20.setForeground(Color.black);
jLabel7.setForeground(Color.black);
jLabel14.setForeground(Color.black);
jLabel21.setForeground(Color.black);
jLabel8.setForeground(Color.black);
jLabel15.setForeground(Color.black);
jLabel22.setForeground(Color.black);
jLabel9.setForeground(Color.black);
jLabel16.setForeground(Color.black);
jLabel23.setForeground(Color.black);
jLabel10.setForeground(Color.black);
jLabel17.setForeground(Color.black);
jLabel24.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jTextField3MouseExited(java.awt.event.MouseEvent evt) {
try
{
jLabel3.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jTextField2MouseExited(java.awt.event.MouseEvent evt) {
try
{
jLabel2.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jTextField1MouseExited(java.awt.event.MouseEvent evt) {
try
{
jLabel1.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jTextField3MouseEntered(java.awt.event.MouseEvent evt) {
try
{
jLabel1.setForeground(Color.black);
jLabel2.setForeground(Color.black);
jLabel3.setForeground(Color.red);
}
catch(NullPointerException npe)
{
}
}
private void jTextField2MouseEntered(java.awt.event.MouseEvent evt) {
try
{
jLabel1.setForeground(Color.black);
jLabel2.setForeground(Color.red);
jLabel3.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jTextField1MouseEntered(java.awt.event.MouseEvent evt) {
try
{
jLabel1.setForeground(Color.red);
jLabel2.setForeground(Color.black);
jLabel3.setForeground(Color.black);
}
catch(NullPointerException npe)
{
}
}
private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {
s15=jTextField1.getText();
s16=jTextField2.getText();
s17=jTextField3.getText();
jTextField1.setText("");
jTextField2.setText("");
jTextField3.setText("");
jLabel10.setText(s15);
jLabel17.setText(s16);
jLabel24.setText(s17);
jButton6.setText("Done");
jButton6.setForeground(Color.red);
}
private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {
s14=jTextField1.getText();
s13=jTextField2.getText();
s12=jTextField3.getText();
jTextField1.setText("");
jTextField2.setText("");
jTextField3.setText("");
jLabel9.setText(s14);
jLabel16.setText(s13);
jLabel23.setText(s12);
jButton5.setText("Done");
jButton5.setForeground(Color.red);
}
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
s11=jTextField1.getText();
s10=jTextField2.getText();
s9=jTextField3.getText();
jTextField1.setText("");
jTextField2.setText("");
jTextField3.setText("");
jLabel8.setText(s11);
jLabel15.setText(s10);
jLabel22.setText(s9);
jButton4.setText("Done");
jButton4.setForeground(Color.red);
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
s8=jTextField1.getText();
s7=jTextField2.getText();
s6=jTextField3.getText();
jTextField1.setText("");
jTextField2.setText("");
jTextField3.setText("");
jLabel7.setText(s8);
jLabel14.setText(s7);
jLabel21.setText(s6);
jButton3.setText("Done");
jButton3.setForeground(Color.red);
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
s4=jTextField1.getText();
s3=jTextField2.getText();
s2=jTextField3.getText();
jTextField1.setText("");
jTextField2.setText("");
jTextField3.setText("");
jLabel6.setText(s4);
jLabel13.setText(s3);
jLabel20.setText(s2);
jButton2.setText("Done");
jButton2.setForeground(Color.red);
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
s=jTextField1.getText();
s1=jTextField2.getText();
swrong=jTextField3.getText();
jTextField1.setText("");
jTextField2.setText("");
jTextField3.setText("");
jLabel5.setText(s);
jLabel12.setText(s1);
jLabel19.setText(swrong);
jButton1.setText("Done");
jButton1.setForeground(Color.red);
}
private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {
jFrame1.setVisible(true);
jFrame1.setLocation(100,100);
jFrame1.setSize(546,359);
}
public static void main(String args[]) {
Main1 app = new Main1();
app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
app.setSize(423,328);
app.setVisible(true);
}
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JButton jButton4;
private javax.swing.JButton jButton5;
private javax.swing.JButton jButton6;
private javax.swing.JButton jButton7;
private javax.swing.JFrame jFrame1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel11;
private javax.swing.JLabel jLabel12;
private javax.swing.JLabel jLabel13;
private javax.swing.JLabel jLabel14;
private javax.swing.JLabel jLabel15;
private javax.swing.JLabel jLabel16;
private javax.swing.JLabel jLabel17;
private javax.swing.JLabel jLabel18;
private javax.swing.JLabel jLabel19;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel20;
private javax.swing.JLabel jLabel21;
private javax.swing.JLabel jLabel22;
private javax.swing.JLabel jLabel23;
private javax.swing.JLabel jLabel24;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel7;
private javax.swing.JLabel jLabel8;
private javax.swing.JLabel jLabel9;
private javax.swing.JPanel jPanel1;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField2;
private javax.swing.JTextField jTextField3;
// End of variables declaration
}