📄 owndetailsdialog.java
字号:
package openicq.gui;import java.awt.Dimension;import javax.swing.JFrame;import openicq.Start;import org.javalib.dynamic.localize.Localizable;import org.javalib.gui.model.SettingsDialogModel;import org.javalib.gui.model.SettingsDisplayPanel;import org.javalib.util.TitledList;/** * The <code>OwnDetailsDialog</code> class is the basic dialog to view and * change the own details. * @author Hansgeorg Schwibbe * @copyright 2004 */public class OwnDetailsDialog extends SettingsDialogModel implements Localizable{ protected static TitledList localized = Start.env.getLocalizedList(); protected OwnDetailsPanel ownDetailsPanel; /** * Initializes a new instance of the class <code>OwnDetailsDialog</code>. * @param parent the parent frame */ public OwnDetailsDialog(JFrame parent) { super(parent, ((String[]) localized.get("menubar"))[2], false, 0.25); } /** * (non-Javadoc) * @see org.javalib.gui.model.SettingsDialogModel#action_saveSettings() */ protected void action_saveSettings() { super.action_saveSettings(); } /** * Sets the focus on the close button. */ public void focusCloseButton() { super.jButtonClose.requestFocus(); } /** * (non-Javadoc) * @see org.javalib.gui.model.SettingsDialogModel#getCloseButtonText() */ protected String getCloseButtonText() { return ((String[]) localized.get("stdButtons"))[3]; } /** * (non-Javadoc) * @see org.javalib.gui.model.SettingsDialogModel#getDialogSize() */ protected Dimension getDialogSize() { return new Dimension(420, 290); } /** * (non-Javadoc) * @see org.javalib.gui.model.SettingsDialogModel#getDisplayPanels() */ protected SettingsDisplayPanel[] getDisplayPanels() { ownDetailsPanel = new OwnDetailsPanel(this); return new SettingsDisplayPanel[] { ownDetailsPanel }; } /** * (non-Javadoc) * @see org.javalib.gui.model.SettingsDialogModel#getSelectedIndex() */ protected int getSelectedIndex() { return 0; } /** * (non-Javadoc) * @see org.javalib.dynamic.localize.Localizable#localize() */ public void localize() { synchronized (Start.env) { localized = Start.env.getLocalizedList(); this.setTitle(((String[]) localized.get("menubar"))[2]); } this.setCloseButtonText(this.getCloseButtonText()); this.setDisplayPanels(this.getDisplayPanels()); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -