package jfconfig;
/**
* Created : Mar 14, 2012
*
* @author pquiring
*/
public class NetworkPanel extends javax.swing.JPanel {
/**
* Creates new form NetworkPanel
*/
public NetworkPanel() {
initComponents();
ConfigApp.This.setTitle("Config : Networking");
}
/**
* 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.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jToolBar1 = new javax.swing.JToolBar();
back = new javax.swing.JButton();
routing = new javax.swing.JButton();
firewall = new javax.swing.JButton();
interfaces = new javax.swing.JButton();
vpn = new javax.swing.JButton();
routing1 = new javax.swing.JButton();
jToolBar1.setRollover(true);
jToolBar1.setBorderPainted(false);
back.setText("<Back");
back.setFocusable(false);
back.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
back.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
back.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
backActionPerformed(evt);
}
});
jToolBar1.add(back);
routing.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jfconfig/jconfig-servers.png"))); // NOI18N
routing.setText("Routing");
routing.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
routing.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
routing.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
routingActionPerformed(evt);
}
});
firewall.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jfconfig/jconfig-servers.png"))); // NOI18N
firewall.setText("Firewall");
firewall.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
firewall.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
firewall.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
firewallActionPerformed(evt);
}
});
interfaces.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jfconfig/jconfig-servers.png"))); // NOI18N
interfaces.setText("Interfaces");
interfaces.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
interfaces.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
interfaces.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
interfacesActionPerformed(evt);
}
});
vpn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jfconfig/jconfig-servers.png"))); // NOI18N
vpn.setText("VPN");
vpn.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
vpn.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
vpn.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
vpnActionPerformed(evt);
}
});
routing1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jfconfig/jconfig-servers.png"))); // NOI18N
routing1.setText("Config");
routing1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
routing1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
routing1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
routing1ActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(interfaces, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(routing1, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(vpn, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(firewall, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(routing, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(150, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(interfaces, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(routing1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(routing, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(firewall, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(vpn, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(131, Short.MAX_VALUE))
);
}// </editor-fold>//GEN-END:initComponents
private void backActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_backActionPerformed
ConfigApp.setPanel(new MainPanel());
}//GEN-LAST:event_backActionPerformed
private void firewallActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_firewallActionPerformed
ConfigApp.setPanel(new FirewallPanel());
}//GEN-LAST:event_firewallActionPerformed
private void routingActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_routingActionPerformed
ConfigApp.setPanel(new RoutingPanel());
}//GEN-LAST:event_routingActionPerformed
private void interfacesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_interfacesActionPerformed
ConfigApp.setPanel(new InterfacePanel());
}//GEN-LAST:event_interfacesActionPerformed
private void vpnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_vpnActionPerformed
ConfigApp.setPanel(new VPNPanel());
}//GEN-LAST:event_vpnActionPerformed
private void routing1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_routing1ActionPerformed
ConfigApp.setPanel(new NetworkConfigPanel());
}//GEN-LAST:event_routing1ActionPerformed
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton back;
private javax.swing.JButton firewall;
private javax.swing.JButton interfaces;
private javax.swing.JToolBar jToolBar1;
private javax.swing.JButton routing;
private javax.swing.JButton routing1;
private javax.swing.JButton vpn;
// End of variables declaration//GEN-END:variables
}