// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 19/01/2006 16:51:15
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   pr1.java

import java.applet.Applet;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JComboBox;

public class pr1 extends Applet
    implements ActionListener
{

    public pr1()
    {
        f = new Font("TimesRoman", 1, 14);
        tt = new JComboBox();
        kk = new Label(" ");
        rez = new Label("");
        rez1 = new Label("");
        d1 = new Label(" ");
        d2 = new Label(" ");
    }

    public void init()
    {
        tt.addItem(" ");
        tt.addItem("int");
        tt.addItem("short int");
        tt.addItem("long int");
        tt.addItem("unsigned short int");
        tt.addItem("unsigned int");
        tt.addItem("unsigned long int");
        tt.addItem("float");
        tt.addItem("double");
        tt.addItem("long double");
        tt.addItem("char");
        tt.addItem("bool");
        tt.addItem("long");
        tt.setBackground(Color.white);
        add(tt);
        setFont(f);
        tt.setFont(f);
        Panel w = new Panel();
        Panel e = new Panel();
        kk.setBackground(Color.white);
        add(kk);
        add(rez);
        add(d1);
        add(d2);
        add(rez1);
        tt.addActionListener(this);
        kk.setForeground(Color.blue);
        tt.setBounds(20, 7, 233, 23);
        kk.setBounds(170, 35, 83, 20);
        rez.setBounds(170, 60, 83, 20);
        rez1.setBounds(170, 80, 83, 20);
        d1.setBounds(20, 35, 140, 20);
        d1.setForeground(Color.blue);
        d2.setBounds(20, 60, 140, 20);
        d2.setForeground(Color.blue);
        rez.setForeground(Color.red);
        rez1.setForeground(Color.red);
        setLayout(new BorderLayout(50, 50));
        add("West", w);
        add("East", e);
    }

    public void actionPerformed(ActionEvent e)
    {
        int rt = tt.getSelectedIndex();
        switch(rt)
        {
        case 0: // '\0'
            kk.setBackground(Color.white);
            kk.setText(" ");
            kk.setForeground(Color.white);
            rez.setBackground(Color.white);
            rez.setText("");
            d1.setText("");
            d2.setText("");
            rez1.setBackground(Color.white);
            rez1.setText("");
            break;

        case 1: // '\001'
            kk.setBackground(Color.pink);
            kk.setText("2 ili 4");
            kk.setForeground(Color.red);
            rez.setBackground(Color.pink);
            rez.setText("32767  ili");
            d1.setText("broi baitove");
            d2.setText("maksimalno chislo");
            rez1.setBackground(Color.pink);
            rez1.setText("2147483647");
            break;

        case 2: // '\002'
            kk.setBackground(Color.pink);
            kk.setText("2");
            kk.setForeground(Color.red);
            rez.setBackground(Color.pink);
            rez.setText("32767");
            d1.setText("broi baitove");
            d2.setText("maksimalno chislo");
            rez1.setBackground(Color.white);
            rez1.setText("");
            break;

        case 3: // '\003'
            kk.setBackground(Color.pink);
            kk.setText("4");
            kk.setForeground(Color.red);
            rez.setBackground(Color.pink);
            rez.setText("2147483647");
            d1.setText("broi baitove");
            d2.setText("maksimalno chislo");
            rez1.setBackground(Color.white);
            rez1.setText("");
            break;

        case 4: // '\004'
            kk.setBackground(Color.pink);
            kk.setText("2");
            kk.setForeground(Color.red);
            rez.setBackground(Color.pink);
            rez.setText("65535");
            d1.setText("broi baitove");
            d2.setText("maksimalno chislo");
            rez1.setBackground(Color.white);
            rez1.setText("");
            break;

        case 5: // '\005'
            kk.setBackground(Color.pink);
            kk.setText("2");
            kk.setForeground(Color.red);
            rez.setBackground(Color.pink);
            rez.setText("4294967295");
            d1.setText("broi baitove");
            d2.setText("maksimalno chislo");
            rez1.setBackground(Color.white);
            rez1.setText("");
            break;

        case 6: // '\006'
            kk.setBackground(Color.pink);
            kk.setText("4");
            kk.setForeground(Color.red);
            rez.setBackground(Color.pink);
            rez.setText("4294967295");
            d1.setText("broi baitove");
            d2.setText("maksimalno chislo");
            rez1.setBackground(Color.white);
            rez1.setText("");
            break;

        case 7: // '\007'
            kk.setBackground(Color.pink);
            kk.setText("4");
            kk.setForeground(Color.red);
            rez.setBackground(Color.pink);
            rez.setText("3.4e+38");
            d1.setText("broi baitove");
            d2.setText("maksimalno chislo");
            rez1.setBackground(Color.white);
            rez1.setText("");
            break;

        case 8: // '\b'
            kk.setBackground(Color.pink);
            kk.setText("8");
            kk.setForeground(Color.red);
            rez.setBackground(Color.pink);
            rez.setText("1.74e+308");
            d1.setText("broi baitove");
            d2.setText("maksimalno chislo");
            rez1.setBackground(Color.white);
            rez1.setText("");
            break;

        case 9: // '\t'
            kk.setBackground(Color.pink);
            kk.setText("10");
            kk.setForeground(Color.red);
            rez.setBackground(Color.white);
            rez.setText("");
            d1.setText("broi baitove");
            d2.setText("");
            rez1.setBackground(Color.white);
            rez1.setText("");
            break;

        case 10: // '\n'
            kk.setBackground(Color.pink);
            kk.setText("1");
            kk.setForeground(Color.red);
            rez.setBackground(Color.white);
            rez.setText("");
            d1.setText("broi baitove");
            d2.setText("");
            rez1.setBackground(Color.white);
            rez1.setText("");
            break;

        case 11: // '\013'
            kk.setBackground(Color.pink);
            kk.setText("2");
            kk.setForeground(Color.red);
            rez.setBackground(Color.white);
            rez.setText("");
            d1.setText("broi baitove");
            d2.setText("");
            rez1.setBackground(Color.white);
            rez1.setText("");
            break;

        case 12: // '\f'
            kk.setBackground(Color.pink);
            kk.setText("4");
            kk.setForeground(Color.red);
            rez.setBackground(Color.white);
            rez.setText("");
            d1.setText("broi baitove");
            d2.setText("");
            rez1.setBackground(Color.white);
            rez1.setText("");
            break;
        }
        repaint();
    }

    private static final int a0 = 0;
    private static final int a1 = 1;
    private static final int a2 = 2;
    private static final int a3 = 3;
    private static final int a4 = 4;
    private static final int a5 = 5;
    private static final int a6 = 6;
    private static final int a7 = 7;
    private static final int a8 = 8;
    private static final int a9 = 9;
    private static final int a10 = 10;
    private static final int a11 = 11;
    private static final int a12 = 12;
    Font f;
    JComboBox tt;
    String dc;
    Panel w;
    Panel e;
    Label kk;
    Label rez;
    Label rez1;
    Label d1;
    Label d2;
}