rendered paste body/*
* fenster.java
*
* Created on 25. Oktober 2007, 15:59
*/
package zmeft_patcher;
/**
*
* @author Rico
*/
public class fenster extends javax.swing.JFrame {
/** Creates new form fenster */
public fenster() {
initComponents();
setVisible(true);
}
/** 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 ">
private void initComponents() {
Hauptpanel_Hintergrund = new javax.swing.JPanel();
HeaderGrafik = new javax.swing.JLabel();
FooterGrafik = new javax.swing.JLabel();
MenuBar = new javax.swing.JMenuBar();
Menü = new javax.swing.JMenu();
Einstellungen = new javax.swing.JMenuItem();
jSeparator1 = new javax.swing.JSeparator();
Beenden = new javax.swing.JMenuItem();
Hilfe = new javax.swing.JMenu();
Changelog = new javax.swing.JMenuItem();
jSeparator2 = new javax.swing.JSeparator();
Über = new javax.swing.JMenuItem();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Patcher des Online-Freeshards http://www.zmeft.de");
setBackground(new java.awt.Color(255, 255, 255));
setMinimumSize(new java.awt.Dimension(600, 600));
setName("fenster");
setResizable(false);
Hauptpanel_Hintergrund.setBackground(new java.awt.Color(255, 255, 255));
HeaderGrafik.setIcon(new javax.swing.ImageIcon(getClass().getResource("/zmeft_patcher/zmeft_header.jpg")));
FooterGrafik.setIcon(new javax.swing.ImageIcon(getClass().getResource("/zmeft_patcher/zmeft_footer.jpg")));
javax.swing.GroupLayout Hauptpanel_HintergrundLayout = new javax.swing.GroupLayout(Hauptpanel_Hintergrund);
Hauptpanel_Hintergrund.setLayout(Hauptpanel_HintergrundLayout);
Hauptpanel_HintergrundLayout.setHorizontalGroup(
Hauptpanel_HintergrundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(Hauptpanel_HintergrundLayout.createSequentialGroup()
.addGap(64, 64, 64)
.addComponent(HeaderGrafik, javax.swing.GroupLayout.PREFERRED_SIZE, 457, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(79, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, Hauptpanel_HintergrundLayout.createSequentialGroup()
.addContainerGap(246, Short.MAX_VALUE)
.addComponent(FooterGrafik, javax.swing.GroupLayout.PREFERRED_SIZE, 354, javax.swing.GroupLayout.PREFERRED_SIZE))
);
Hauptpanel_HintergrundLayout.setVerticalGroup(
Hauptpanel_HintergrundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(Hauptpanel_HintergrundLayout.createSequentialGroup()
.addComponent(HeaderGrafik)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 314, Short.MAX_VALUE)
.addComponent(FooterGrafik))
);
Menü.setText("Men\u00fc");
Menü.setFont(new java.awt.Font("Palatino Linotype", 0, 13));
Einstellungen.setFont(new java.awt.Font("Palatino Linotype", 0, 13));
Einstellungen.setText("Einstellungen");
Einstellungen.setToolTipText("Hier gehts zu den allgemeinen Patchereinstellungen ...");
Einstellungen.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
EinstellungenActionPerformed(evt);
}
});
Menü.add(Einstellungen);
Menü.add(jSeparator1);
Beenden.setFont(new java.awt.Font("Palatino Linotype", 0, 13));
Beenden.setText("Beenden");
Beenden.setToolTipText("Klick und weg :)");
Beenden.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
BeendenActionPerformed(evt);
}
});
Menü.add(Beenden);
MenuBar.add(Menü);
Hilfe.setText("Hilfe");
Hilfe.setFont(new java.awt.Font("Palatino Linotype", 0, 13));
Changelog.setFont(new java.awt.Font("Palatino Linotype", 0, 13));
Changelog.setText("Changelog");
Hilfe.add(Changelog);
Hilfe.add(jSeparator2);
Über.setFont(new java.awt.Font("Palatino Linotype", 0, 13));
Über.setText("\u00dcber");
Über.setToolTipText("Versionshinweis, Authorhinweis ...");
Über.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ÜberActionPerformed(evt);
}
});
Hilfe.add(Über);
MenuBar.add(Hilfe);
setJMenuBar(MenuBar);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Hauptpanel_Hintergrund, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Hauptpanel_Hintergrund, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
pack();
}// </editor-fold>
private void ÜberActionPerformed(java.awt.event.ActionEvent evt) {
über ansicht = new über();
}
private void EinstellungenActionPerformed(java.awt.event.ActionEvent evt) {
einstellungen ansicht = new einstellungen();
}
private void BeendenActionPerformed(java.awt.event.ActionEvent evt) {
System.exit(0);
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new fenster().setVisible(true);
}
});
}
// Variables declaration - do not modify
private javax.swing.JMenuItem Beenden;
private javax.swing.JMenuItem Changelog;
private javax.swing.JMenuItem Einstellungen;
private javax.swing.JLabel FooterGrafik;
private javax.swing.JPanel Hauptpanel_Hintergrund;
private javax.swing.JLabel HeaderGrafik;
private javax.swing.JMenu Hilfe;
private javax.swing.JMenuBar MenuBar;
private javax.swing.JMenu Menü;
private javax.swing.JSeparator jSeparator1;
private javax.swing.JSeparator jSeparator2;
private javax.swing.JMenuItem Über;
// End of variables declaration
}