📄 packageplaypensuccessfulpanel.java
字号:
package org.fife.rtext.plugins.rtextl10ngen;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.IOException;
import java.util.Locale;
import java.text.MessageFormat;
import java.util.ResourceBundle;
import javax.swing.*;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
import org.fife.RUtilities;
import org.fife.rtext.RText;
import org.fife.rtext.RTextUtilities;
import org.fife.ui.app.WizardPluginDialog;
import org.fife.ui.app.WizardDialogInfoPanel;
import org.fife.ui.rtextfilechooser.RDirectoryChooser;
/**
* The panel that tells the user their playpen was successfully packaged.
*
* @author Robert Futrell
* @version 1.0
*/
class PackagePlaypenSuccessfulPanel extends WizardDialogInfoPanel {
private ResourceBundle msg;
private JLabel descLabel;
/*****************************************************************************/
/**
* Constructor.
*
* @param msg The plugin's resource bundle.
*/
public PackagePlaypenSuccessfulPanel(ResourceBundle msg) {
super(msg.getString("Plugin.Wizard.Package.Completed.Header"));
this.msg = msg;
setLayout(new BorderLayout());
JPanel contentPane = new JPanel();
contentPane.setLayout(new BoxLayout(contentPane, BoxLayout.Y_AXIS));
JPanel temp = new JPanel(new BorderLayout());
descLabel = new JLabel("xxxxxxxxxxx");
temp.add(descLabel);//, BorderLayout.WEST);
contentPane.add(temp);
add(contentPane, BorderLayout.NORTH);
}
/*****************************************************************************/
/**
* Called when this panel is displayed in the wizard. This gives the
* panel to do anything "extra" it wants to do, such as disable the
* "Next" button.
*/
public void isDisplayed() {
WizardPluginDialog wizard = getWizard();
File zipFile = (File)wizard.getWizardProperty("ZipFile");
String desc = msg.getString("Plugin.Wizard.Package.Completed.Desc");
desc = MessageFormat.format(desc,
new Object[] { zipFile.getAbsolutePath() });
descLabel.setText(desc);
}
/*****************************************************************************/
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -