copyinfoframe.java
来自「JavaExplorer是一个独立于平台的浏览器」· Java 代码 · 共 115 行
JAVA
115 行
/** * File and FTP Explorer * Copyright 2002 * BOESCH Vincent * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */package javaexplorer.gui.internal;import java.awt.*;import java.awt.event.*;import java.util.Vector;import javaexplorer.Launcher;import javaexplorer.model.*;import javaexplorer.io.copy.*;import javaexplorer.ressource.*;import javaexplorer.util.options.Options;import javax.swing.*;import javax.swing.border.*;import javax.swing.event.ListSelectionEvent;import javax.swing.event.ListSelectionListener;/** *@author BOESCH Vincent *@created 21 janvier 2002 *@version 3.3 */public class CopyInfoFrame extends JInternalFrame implements CopyManager, ActionListener, ListSelectionListener, Runnable { int cuts = Options.getOptions().getCutsForCopy(); private JPanel jpanelCopyList = new JPanel(); private JPanel jpanelCopyButton = new JPanel(); private JPanel jpanelCopyDetail = new JPanel(); private JButton jbtHide = new JButton(); private TitledBorder titledBorder1; private JList copyList = new JList(); private JScrollPane jsp = null; private JButton jbtDelete = new JButton(); private JButton jbtDeleteFinished = new JButton(); private Thread thdPool = null; //Nombre de copies en cours private int currentRunningCopies = 0; public long sleepTime = 2000; JLabel jlblXFileSrc = new JLabel(""); JLabel jlblXFileDest = new JLabel(""); JLabel jlblXFileLength = new JLabel(""); JLabel jlblXFilePercent = new JLabel(""); GridLayout gridLayoutInfo = new GridLayout(4, 1, 5, 10); JPanel jpanelInfo = new JPanel(); JPanel jpanelCopy = new JPanel(); private JButton jbtCancelCopy = new JButton(); private JButton jbtRetryCopy = new JButton(); private GridLayout gridLayoutCopy = new GridLayout(cuts, 1, 10, 10); private JProgressBar[] tb_progressBar = new JProgressBar[cuts]; private Vector copyElements = new Vector(); private Launcher _launcher = null; /** * Constructeur objet JInfoFrame * *@param showOnStart Description of the * Parameter */ public CopyInfoFrame(Launcher launcher) { super("Copy Info", true, true, false, false); _launcher = launcher; try { jbInit(); } catch (Exception e) { javaexplorer.util.Log.addError(e); } thdPool = new Thread(this); thdPool.start(); } public void updateOptions(){ boolean visible = this.isVisible(); if( visible ){ setVisible(false); } int oldcuts = cuts; int newcuts = Options.getOptions().getCutsForCopy(); if( newcuts != oldcuts ){ //Si un process est en cours, alors on attend pour mettre
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?