⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 n.txt

📁 手机QQ原代码,有喜欢的朋友可以大量的下载,我不要钱的哦
💻 TXT
字号:
import javax.microedition.lcdui.*;

public class n
    implements CommandListener, g
{

    public Command d;
    public Command a_javax_microedition_lcdui_Command_fld;
    public Command e;
    public Command f;
    public Command b;
    public Command c;
    private long a_long_fld;
    private String a_java_lang_String_fld;
    private TextBox a_javax_microedition_lcdui_TextBox_fld;
    private r a_r_fld;
    private List a_javax_microedition_lcdui_List_fld;
    private Displayable a_javax_microedition_lcdui_Displayable_fld;

    public n()
    {
        d = null;
        a_javax_microedition_lcdui_Command_fld = null;
        e = null;
        f = null;
        b = null;
        c = null;
        a_long_fld = 0L;
        a_java_lang_String_fld = null;
        a_javax_microedition_lcdui_TextBox_fld = null;
        a_javax_microedition_lcdui_List_fld = null;
        a_javax_microedition_lcdui_Displayable_fld = null;
        d = new Command(KQQMIDlet.a_k_static_fld.av, 4, 1);
        a_javax_microedition_lcdui_Command_fld = new Command(KQQMIDlet.a_k_static_fld.ba, 2, 2);
        e = new Command(KQQMIDlet.a_k_static_fld.Y, 4, 1);
        f = new Command(KQQMIDlet.a_k_static_fld.B, 1, 3);
        b = new Command(KQQMIDlet.a_k_static_fld.v, 1, 4);
        c = new Command(KQQMIDlet.a_k_static_fld.Y, 4, 1);
        a_javax_microedition_lcdui_TextBox_fld = new TextBox(KQQMIDlet.a_k_static_fld.y, "", 100, 0);
        a_javax_microedition_lcdui_TextBox_fld.addCommand(d);
        a_javax_microedition_lcdui_TextBox_fld.addCommand(a_javax_microedition_lcdui_Command_fld);
        a_javax_microedition_lcdui_TextBox_fld.addCommand(f);
        a_javax_microedition_lcdui_TextBox_fld.addCommand(b);
        a_javax_microedition_lcdui_TextBox_fld.setCommandListener(this);
    }

    private void b()
    {
        if(a_r_fld == null)
        {
            a_r_fld = new r(this);
            a_r_fld.addCommand(c);
            a_r_fld.addCommand(a_javax_microedition_lcdui_Command_fld);
            a_r_fld.setCommandListener(this);
        }
        KQQMIDlet.a_javax_microedition_lcdui_Display_static_fld.setCurrent(a_r_fld);
    }

    private void a()
    {
        if(a_javax_microedition_lcdui_List_fld == null)
        {
            a_javax_microedition_lcdui_List_fld = new List(KQQMIDlet.a_k_static_fld.v, 3, KQQMIDlet.a_k_static_fld.b, null);
            a_javax_microedition_lcdui_List_fld.addCommand(a_javax_microedition_lcdui_Command_fld);
            a_javax_microedition_lcdui_List_fld.setCommandListener(this);
        }
        KQQMIDlet.a_javax_microedition_lcdui_Display_static_fld.setCurrent(a_javax_microedition_lcdui_List_fld);
    }

    public void a(long l, boolean flag)
    {
        if(flag)
        {
            if(a_java_lang_String_fld.length() > 100)
            {
                a_java_lang_String_fld = a_java_lang_String_fld.substring(0, 100);
            }
            a_javax_microedition_lcdui_TextBox_fld.setString(a_java_lang_String_fld);
        } else
        {
            a_javax_microedition_lcdui_Displayable_fld = KQQMIDlet.a_javax_microedition_lcdui_Display_static_fld.getCurrent();
            a_long_fld = l;
            a_javax_microedition_lcdui_TextBox_fld.setString("");
        }
        KQQMIDlet.a_javax_microedition_lcdui_Display_static_fld.setCurrent(a_javax_microedition_lcdui_TextBox_fld);
    }

    private void c()
    {
        a_java_lang_String_fld = a_javax_microedition_lcdui_TextBox_fld.getString();
        if(a_java_lang_String_fld.length() < 1)
        {
            KQQMIDlet.a_KQQMIDlet_static_fld.a(KQQMIDlet.a_k_static_fld.aP, KQQMIDlet.a_k_static_fld.aT, AlertType.ERROR, a_javax_microedition_lcdui_TextBox_fld);
            return;
        }
        if(a_r_fld != null)
        {
            a_java_lang_String_fld = a_r_fld.a(a_java_lang_String_fld);
        }
        KQQMIDlet.a_u_static_fld.b(String.valueOf(a_long_fld), i.b(a_java_lang_String_fld), this);
        KQQMIDlet.a_d_static_fld.d();
        KQQMIDlet.a_ac_static_fld.c(String.valueOf(a_long_fld), a_java_lang_String_fld);
        KQQMIDlet.a_ab_static_fld.a(a_long_fld);
        KQQMIDlet.a_m_static_fld.c();
    }

    public void commandAction(Command command, Displayable displayable)
    {
        if(command == d)
        {
            c();
        } else
        if(command == e)
        {
            a(0L, true);
        } else
        if(command == a_javax_microedition_lcdui_Command_fld)
        {
            if(displayable == a_javax_microedition_lcdui_TextBox_fld)
            {
                if(a_javax_microedition_lcdui_Displayable_fld == null)
                {
                    KQQMIDlet.a_d_static_fld.d();
                } else
                {
                    KQQMIDlet.a_javax_microedition_lcdui_Display_static_fld.setCurrent(a_javax_microedition_lcdui_Displayable_fld);
                }
            } else
            {
                KQQMIDlet.a_javax_microedition_lcdui_Display_static_fld.setCurrent(a_javax_microedition_lcdui_TextBox_fld);
            }
        } else
        if(command == f)
        {
            b();
        } else
        if(command == b)
        {
            a();
        } else
        if(command == List.SELECT_COMMAND)
        {
            int j = a_javax_microedition_lcdui_List_fld.getSelectedIndex();
            a_java_lang_String_fld = a_javax_microedition_lcdui_TextBox_fld.getString() + KQQMIDlet.a_k_static_fld.b[j];
            a(0L, true);
        } else
        if(command == c)
        {
            a_r_fld.keyPressed(a_r_fld.getKeyCode(8));
        }
    }

    public void b(String s, String s1)
    {
        String s2 = i.a("CMD", s1).toUpperCase();
        String s3 = i.a("RES", s1);
        if(s2.equals("CLTMSG") && s3.equals("0"))
        {
            KQQMIDlet.a_m_static_fld.b(KQQMIDlet.a_k_static_fld.an);
        } else
        if(s3.equals("20"))
        {
            KQQMIDlet.a_KQQMIDlet_static_fld.a(true);
        } else
        {
            i.a("sendmsg-wrongresponse\uFF1A" + s1);
        }
    }

    public void c(String s, String s1)
    {
        i.a("SendMsg-handleHttpError:" + s1);
    }

    public static String a(n n1, String s)
    {
        return n1.a_java_lang_String_fld = s;
    }

    public static TextBox a(n n1)
    {
        return n1.a_javax_microedition_lcdui_TextBox_fld;
    }

    // Unreferenced inner class r

/* anonymous class */
    class r extends Canvas
    {

        public String a_java_lang_String_array1d_fld[] = {
            "/:O", "/:~", "/:*", "/:|", "/8-)", "/:<", "/:$", "/:X", "/:Z", "/:'(", 
            "/:-|", "/:@", "/:P", "/:D", "/:)", "/:(", "/:+", "/:#", "/:Q", "/:T", 
            "/;P", "/;-D", "/;d", "/;o", "/:g", "/|-)", "/:!", "/:L", "/:>", "/:;", 
            "/;f", "/:-S", "/?", "/:x", "/;@", "/:8", "/;!", "/!!!", "/xx", "/bye", 
            "/go", "/shake", "/love", "/jump", "/find", "/&&", "/pig", "/cat", "/dog", "/hug", 
            "/$", "/(!)", "/cup", "/cake", "/li", "/bome", "/kn", "/footb", "/music", "/shit", 
            "/coffee", "/eat", "/pill", "/rose", "/fade", "/kiss", "/heart", "/break", "/meeting", "/gift", 
            "/phone", "/time", "/email", "/TV", "/sun", "/moon", "/strong", "/weak", "/share", "/v", 
            "/<D>", "/<J>", "/<H>", "/<M>", "/<QQ>", "/<L>", "/<O>", "/<B>", "/<U>", "/<W>", 
            "/<!!>", "/<~>", "/<Z>", "/<*>", "/<00>", "/<11>"
        };
        public short a_short_array1d_fld[];
        public int f;
        public int e;
        public int a_int_array2d_fld[][] = {
            {
                8, 12
            }, {
                8, 12
            }, {
                10, 10
            }
        };
        public int s;
        public int k;
        public int c;
        public int r;
        public int p;
        public int q;
        public int j;
        public int t;
        public int d;
        public int a_int_fld;
        public int o;
        public int l;
        public int h;
        public int u;
        public int i;
        public int n;
        public int b;
        public int g;
        public final int m;
        private final n a_n_fld;

        public void paint(Graphics g1)
        {
            int i1 = 0;
            int j1 = 0;
            int k1 = 0;
            int l1 = 0;
            g1.setColor(KQQMIDlet.a_m_static_fld.a_int_array2d_fld[KQQMIDlet.a_m_static_fld.R][0]);
            g1.fillRect(i1, j1, i, n);
            g1.setColor(m.q);
            k1 = o + f;
            l1 = l + f;
            int i2 = b + 1;
            int j2 = g + 1;
            int k2 = i2 <= j ? 0 : i2 - j;
            int l2 = j2 <= t ? 0 : j2 - t;
            h = k2;
            u = l2;
            boolean flag = false;
            for(int j3 = l2; j3 < a_int_fld; j3++)
            {
                for(int k3 = k2; k3 < d; k3++)
                {
                    i1 = k1 + k3 * e;
                    j1 = l1 + (j3 - l2) * e;
                    int i3 = j3 * d + k3;
                    if(i3 < c.c_short_static_fld)
                    {
                        g1.drawImage(KQQMIDlet.a_m_static_fld.a_c_fld.c_javax_microedition_lcdui_Image_array1d_fld[i3], i1, j1, 20);
                    }
                }

            }

            if(i2 == j)
            {
                if(j2 >= t)
                {
                    g1.drawRect((k1 + (b - k2) * e) - 2 * f, (l1 + (g - l2) * e) - 2 * f, e, e);
                } else
                {
                    g1.drawRect((k1 + (b - k2) * e) - 2 * f, (l1 + (g - l2) * e) - f, e, e);
                }
            } else
            if(j2 >= t)
            {
                g1.drawRect((k1 + (b - k2) * e) - f, (l1 + (g - l2) * e) - 2 * f, e, e);
            } else
            {
                g1.drawRect((k1 + (b - k2) * e) - f, (l1 + (g - l2) * e) - f, e, e);
            }
            i1 = k1 + ((b - k2) + 1) * e;
            j1 = l1 + ((g - l2) + 1) * e;
            Font font = g1.getFont();
            String s1 = a_java_lang_String_array1d_fld[g * d + b];
            int l3 = font.stringWidth(s1) + 4;
            int i4 = font.getHeight() + 4;
            if(i1 > i - l3)
            {
                i1 = (k1 + (b - k2) * e) - l3 - 2;
            }
            if(j1 > n - i4)
            {
                j1 = (l1 + (g - l2) * e) - i4 - 2;
            }
            g1.setColor(0xffffe1);
            g1.fillRect(i1, j1, l3, i4);
            g1.setColor(0);
            g1.drawString(s1, i1 + 2, j1 + 2, 20);
            g1.drawRect(i1, j1, l3 - 1, i4 - 1);
        }

        private int a(int i1, int j1)
        {
            if(i1 <= o || j1 <= l || i1 >= p + o || j1 >= q + l)
            {
                i.a("y = " + j1 + "iconAreaH = " + q + "iconStartX = " + h);
                return m;
            } else
            {
                b = h + (i1 - o) / e;
                g = u + (j1 - l) / e;
                return g * d + b;
            }
        }

        public void pointerPressed(int i1, int j1)
        {
            if(a(i1, j1) == m)
            {
                i.a("PT in blank");
                return;
            } else
            {
                i.a("PT in emotion");
                repaint();
                return;
            }
        }

        public void pointerDragged(int i1, int j1)
        {
        }

        public void pointerReleased(int i1, int j1)
        {
            int k1 = a(i1, j1);
            if(k1 < c.c_short_static_fld)
            {
                n.a(a_n_fld, n.a(a_n_fld).getString() + a_java_lang_String_array1d_fld[k1]);
                a_n_fld.a(0L, true);
            }
        }

        public void keyPressed(int i1)
        {
            int j1;
            if(KQQMIDlet.a_int_static_fld == 0 && i1 == -5)
            {
                j1 = 8;
            } else
            {
                j1 = getGameAction(i1);
            }
            switch(j1)
            {
            case 3: // '\003'
            case 4: // '\004'
            case 7: // '\007'
            default:
                break;

            case 1: // '\001'
                if(g > 0)
                {
                    g--;
                    repaint();
                }
                break;

            case 6: // '\006'
                if(g < a_int_fld - 1 && (g + 1) * d + b < c.c_short_static_fld)
                {
                    g++;
                    repaint();
                }
                break;

            case 2: // '\002'
                if(b > 0)
                {
                    b--;
                    repaint();
                }
                break;

            case 5: // '\005'
                if(b < d - 1 && g * d + (b + 1) < c.c_short_static_fld)
                {
                    b++;
                    repaint();
                }
                break;

            case 8: // '\b'
                n.a(a_n_fld, n.a(a_n_fld).getString() + a_java_lang_String_array1d_fld[g * d + b]);
                a_n_fld.a(0L, true);
                break;
            }
        }

        public String a(String s1)
        {
            char ac1[] = new char[2];
            ac1[0] = i.a;
            for(int i1 = 0; i1 < c.c_short_static_fld; i1++)
            {
                ac1[1] = (char)(a_short_array1d_fld[i1] + c.b);
                String s2 = new String(ac1);
                s1 = i.a(s1, 0, a_java_lang_String_array1d_fld[i1], s2);
            }

            return s1;
        }

            public 
            {
                a = n.this;
                a = new short[c.c];
                f = 1;
                e = c.c + f;
                s = 0;
                k = 1;
                c = 2;
                r = 0;
                h = 0;
                u = 0;
                m = c.a + 1;
                boolean flag = false;
                for(int i1 = 0; i1 < c.a; i1++)
                {
                    short word0 = c.a[i1];
                    if(word0 < c.c)
                    {
                        a[word0] = (short)i1;
                    }
                }

                i = getWidth();
                n = getHeight();
                if(i >= a[c][0] * e)
                {
                    r = c;
                    j = a[r][0];
                    t = n / e;
                } else
                if(i >= a[k][0] * e)
                {
                    r = k;
                    j = a[r][0];
                    t = n / e;
                } else
                {
                    r = s;
                    j = i / e;
                    t = n / e;
                }
                d = a[r][0];
                a = a[r][1];
                p = d * e;
                q = a * e;
                o = i <= p ? 0 : (i - p) / 2 - 0;
                l = n <= q ? 0 : (n - q) / 2 - 0;
            }
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -