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

📄 exitstrategypane.java

📁 编辑视频文件
💻 JAVA
字号:
/* * File:     ExitStrategyPane.java * Project:  MPI Linguistic Application * Date:     02 May 2007 * * Copyright (C) 2001-2007  Max Planck Institute for Psycholinguistics * * 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 mpi.eudico.client.annotator.gui;import mpi.eudico.client.annotator.ElanLocale;import java.awt.GridBagConstraints;import java.awt.GridBagLayout;import java.awt.Insets;import javax.swing.JCheckBox;import javax.swing.JLabel;import javax.swing.JPanel;/** * An info panel that informs the user that ELAN's close/exit behavior  has * been changed after version 2.6.3. Up to that version "Exit" would  only * close the window. If it was the last window System.exit() was called. The * new behavior is that there is a separate Close item and Exit closes all * windows and quits the application.  There is a checkbox that lets the user * choose not to be warned again. * * @author Han Sloetjes, MPI */public class ExitStrategyPane extends JPanel {    private JLabel messageLabel;    private JCheckBox showAgainCB;    /**     * Creates a new ExitStrategyPane instance     */    public ExitStrategyPane() {        super();        initComponents();    }    private void initComponents() {        messageLabel = new JLabel("<html>" +                ElanLocale.getString("Frame.ElanFrame.Exit.Warn1") + "<br>" +                ElanLocale.getString("Frame.ElanFrame.Exit.Warn2") + "</html>");        showAgainCB = new JCheckBox(ElanLocale.getString("Message.DontShow"));        setLayout(new GridBagLayout());        GridBagConstraints gbc = new GridBagConstraints();        gbc.insets = new Insets(3, 6, 10, 6);        gbc.fill = GridBagConstraints.HORIZONTAL;        gbc.weightx = 1.0;        add(messageLabel, gbc);        gbc.gridy = 1;        add(showAgainCB, gbc);    }    /**     * Returns whether the user wishes to be warned again or not.     *     * @return true if the "don't show again" checkbox is checked     */    public boolean getDontShowAgain() {        return showAgainCB.isSelected();    }}

⌨️ 快捷键说明

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