📄 gameoptionsdialog.java
字号:
/*
* GameOptionsDialog.java
*
* Created on 1 listopad 2005, 13:31
*/
package net.sf.jawp.gui.client;
import net.sf.jawp.api.domain.JAWPOptions;
/**
*
* @author jarek
*/
public class GameOptionsDialog extends javax.swing.JDialog
{
/**
*
*/
private static final long serialVersionUID = 1L;
private final GameOptionsPanel gameOptionsPanel;
/** Creates new form GameOptionsDialog */
public GameOptionsDialog(final java.awt.Frame parent, final boolean modal)
{
super(parent, modal);
this.gameOptionsPanel = new GameOptionsPanel(this);
initComponents();
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
private void initComponents()
{
optionsPanelView = this.gameOptionsPanel;
getContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.X_AXIS));
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
getContentPane().add(optionsPanelView);
pack();
}
// </editor-fold>//GEN-END:initComponents
/**
* @param args the command line arguments
*/
public static void main(final String[] args)
{
java.awt.EventQueue.invokeLater(new Runnable()
{
public void run()
{
new GameOptionsDialog(new javax.swing.JFrame(), true).setVisible(true);
System.exit(0);
}
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JPanel optionsPanelView;
// End of variables declaration//GEN-END:variables
public final JAWPOptions getOptions()
{
return this.gameOptionsPanel.getOptions();
}
public final String getGameName()
{
return this.gameOptionsPanel.getGameName();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -