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

📄 ptool$1$sdl.java

📁 该系统是B/S结构的
💻 JAVA
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   PTool.java

package paintchat.util;

import java.awt.*;
import java.awt.event.*;
import java.io.File;
import java.util.EventObject;

// Referenced classes of package paintchat.util:
//            PTool

class SDL extends Dialog
    implements ActionListener, ItemListener
{

    private TextField edit;
    private Choice choice;
    private Button bo_san;
    private String str_kaku;
    private String str_lists[];
    private String list_hint;
    private File file_list;
    public String res;

    public void actionPerformed(ActionEvent actionevent)
    {
        try
        {
            if(actionevent.getSource() == bo_san)
            {
                File file = PTool.fileDialog(this, str_kaku, false);
                if(file == null)
                {
                    return;
                } else
                {
                    edit.setText(file.getCanonicalPath());
                    return;
                }
            }
            res = edit.getText();
            PTool.listSave(file_list, list_hint, str_lists, res);
            dispose();
        }
        catch(Throwable throwable)
        {
            throwable.printStackTrace();
        }
    }

    public void itemStateChanged(ItemEvent itemevent)
    {
        edit.setText((String)itemevent.getItem());
    }

    protected void processWindowEvent(WindowEvent windowevent)
    {
        if(windowevent.getID() == 201)
            dispose();
    }

    public SDL(String s, String s1, String s2, String s3, String s4, String s5, boolean flag)
    {
        super(PTool.getPFrame(), s != null ? s : "書き込むか選択", true);
        file_list = new File("cnf/list.cf");
        res = null;
        setLayout(new GridLayout(4, 1, 4, 4));
        enableEvents(64L);
        if(s2 == null)
            s2 = " 実行 ";
        str_kaku = s5 != null ? s5 : "";
        list_hint = s3;
        str_lists = PTool.listLoad(file_list, list_hint);
        choice = new Choice();
        choice.setCursor(Cursor.getPredefinedCursor(12));
        if(str_lists != null)
        {
            for(int i = 0; i < str_lists.length; i++)
                choice.addItem(str_lists[i]);

        }
        bo_san = new Button("参照");
        bo_san.setEnabled(flag);
        Panel panel = new Panel(new BorderLayout(1, 1));
        panel.add(choice, "Center");
        panel.add(bo_san, "East");
        Label label = new Label(s1);
        String s6;
        if(s4 == null)
            s6 = PTool.getClipboard();
        else
            s6 = s4;
        choice.insert(s6, 0);
        edit = new TextField(s6, 5);
        add(label, 0);
        add(edit, 1);
        add(panel, 2);
        Panel panel1 = new Panel(new FlowLayout(1, 1, 1));
        Button button = new Button(s2);
        panel1.add(button);
        add(panel1, 3);
        choice.addItemListener(this);
        bo_san.addActionListener(this);
        button.addActionListener(this);
        edit.addActionListener(this);
    }
}

⌨️ 快捷键说明

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