perfsonar-dev - perfsonar: r2453 - in branches/perfsonarui: jars/ui src/org/perfsonar/perfsonarui/flowsa
Subject: perfsonar development work
List archive
perfsonar: r2453 - in branches/perfsonarui: jars/ui src/org/perfsonar/perfsonarui/flowsa
Chronological Thread
- From:
- To:
- Subject: perfsonar: r2453 - in branches/perfsonarui: jars/ui src/org/perfsonar/perfsonarui/flowsa
- Date: Wed, 6 Jun 2007 07:44:36 -0400
Author: gijs
Date: 2007-06-06 07:44:36 -0400 (Wed, 06 Jun 2007)
New Revision: 2453
Added:
branches/perfsonarui/jars/ui/swing-layout-1.0.jar
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSAPanel.java
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/MANIFEST_FLOWSA_plugin.MFT
Log:
Added: branches/perfsonarui/jars/ui/swing-layout-1.0.jar
Property changes on: branches/perfsonarui/jars/ui/swing-layout-1.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSAPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSAPanel.java
2007-06-05 09:29:39 UTC (rev 2452)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/FlowSAPanel.java
2007-06-06 11:44:36 UTC (rev 2453)
@@ -28,2112 +28,1023 @@
// this ui code is generated by Netbeans 5.5
@Override
protected void addWidgets() {
- masterSplitPane = new javax.swing.JSplitPane();
- leftMainPanel = new javax.swing.JPanel();
- lsPanel = new javax.swing.JPanel();
- lsUpdateButton = new javax.swing.JButton();
- lsScrollPane = new javax.swing.JScrollPane();
- lsList = new javax.swing.JList();
- customLsPanel = new javax.swing.JPanel();
- customLsConnectButton = new javax.swing.JButton();
- customLsField = new javax.swing.JTextField();
- customLsAdressLabel = new javax.swing.JLabel();
- rightMainPanel = new javax.swing.JPanel();
- StartMomentPanel = new javax.swing.JPanel();
- momentStartYearComboBox = new javax.swing.JComboBox();
- momentStartMonthComboBox = new javax.swing.JComboBox();
- momentStartDayComboBox = new javax.swing.JComboBox();
- momentStartHourComboBox = new javax.swing.JComboBox();
- momentStartSecondComboBox = new javax.swing.JComboBox();
- momentStartYearLabel = new javax.swing.JLabel();
- momentStartMonthLabel = new javax.swing.JLabel();
- momentStartDayLabel = new javax.swing.JLabel();
- momentStartHourLabel = new javax.swing.JLabel();
- momentStartSecondLabel = new javax.swing.JLabel();
- momentStartUnixLabel = new javax.swing.JLabel();
- momentStartUnixField = new javax.swing.JFormattedTextField();
- queryTabbedPanel = new javax.swing.JTabbedPane();
- rawQueryPanel = new javax.swing.JPanel();
- rawFilterField = new javax.swing.JTextField();
- rawAggregationField = new javax.swing.JTextField();
- rawFilterlabel = new javax.swing.JLabel();
- rawAggregationLabel = new javax.swing.JLabel();
- rawSubmitButton = new javax.swing.JButton();
- rawDataScrollPane = new javax.swing.JScrollPane();
- rawDataTable = new javax.swing.JTable();
- rawExportButton = new javax.swing.JButton();
- rawFieldPanel = new javax.swing.JPanel();
- rawFieldScrollPane = new javax.swing.JScrollPane();
- rawFieldsList = new javax.swing.JList();
- topQueryPanel = new javax.swing.JPanel();
- TopQueryparametersPanel = new javax.swing.JPanel();
- topSubmitButton = new javax.swing.JButton();
- topNumberField = new javax.swing.JTextField();
- topOrderComboBox = new javax.swing.JComboBox();
- topElementLabel = new javax.swing.JLabel();
- topOrderLabel = new javax.swing.JLabel();
- topNumberLabel = new javax.swing.JLabel();
- topElementComboBox = new javax.swing.JComboBox();
- topGroupTransCheckBox = new javax.swing.JCheckBox();
- topGroupTransLabel = new javax.swing.JLabel();
- topExportButton = new javax.swing.JButton();
- topDataScrollPane = new javax.swing.JScrollPane();
- topDataTable = new javax.swing.JTable();
- statQueryPanel = new javax.swing.JPanel();
- statsFlowsLabel = new javax.swing.JLabel();
- statsFlowsTcpLabel = new javax.swing.JLabel();
- statsFlowsUdpLabel = new javax.swing.JLabel();
- statsFlowsIcmpLabel = new javax.swing.JLabel();
- statsFlowsOthersLabel = new javax.swing.JLabel();
- statsFlowsPacketsLabel = new javax.swing.JLabel();
- statsPacketsTcpLabel = new javax.swing.JLabel();
- statsPacketsUdpLabel = new javax.swing.JLabel();
- statsPacketsIcmpLabel = new javax.swing.JLabel();
- statsPacketsOtherLabel = new javax.swing.JLabel();
- statsBytesLabel = new javax.swing.JLabel();
- statsBytesTcpLabel = new javax.swing.JLabel();
- statsBytesUdpLabel = new javax.swing.JLabel();
- statsBytesIcmpLabel = new javax.swing.JLabel();
- statsBytesOtherLabel = new javax.swing.JLabel();
- statsFirstLabel = new javax.swing.JLabel();
- statsLastLabel = new javax.swing.JLabel();
- statsMsecFirstLabel = new javax.swing.JLabel();
- statsMsecLastLabel = new javax.swing.JLabel();
- statsSeqFailLabel = new javax.swing.JLabel();
- statsFlowsField = new javax.swing.JTextField();
- statsFlowsTcpField = new javax.swing.JTextField();
- statsFlowsudpField = new javax.swing.JTextField();
- statsFlowsIcmpField = new javax.swing.JTextField();
- statsFlowsOtherField = new javax.swing.JTextField();
- statsPacketsField = new javax.swing.JTextField();
- statsPacketsTcpField = new javax.swing.JTextField();
- statsPacketsUdpField = new javax.swing.JTextField();
- statsPacketsIcmpField = new javax.swing.JTextField();
- statsPacketsotherField = new javax.swing.JTextField();
- statsBytesField = new javax.swing.JTextField();
- statsBytesTcpField = new javax.swing.JTextField();
- statsBytesUdpField = new javax.swing.JTextField();
- statsBytesIcmpField = new javax.swing.JTextField();
- statsBytesOtherField = new javax.swing.JTextField();
- statsFirstField = new javax.swing.JTextField();
- statsLastField = new javax.swing.JTextField();
- statsMsecFirstField = new javax.swing.JTextField();
- statsMsecLastField = new javax.swing.JTextField();
- statsSeqFailField = new javax.swing.JTextField();
- statsSubmitButton = new javax.swing.JButton();
- endMomentPanel = new javax.swing.JPanel();
- momentEndYearComboBox = new javax.swing.JComboBox();
- momentEndMonthComboBox = new javax.swing.JComboBox();
- momentEndDayComboBox = new javax.swing.JComboBox();
- momentEndHourComboBox = new javax.swing.JComboBox();
- momentEndSecondComboBox = new javax.swing.JComboBox();
- momentEndYearLabel = new javax.swing.JLabel();
- momentEndMonthLabel = new javax.swing.JLabel();
- momentEndDayLabel = new javax.swing.JLabel();
- momentEndHourLabel = new javax.swing.JLabel();
- momentEndSecondLabel = new javax.swing.JLabel();
- momentEndUnixLabel = new javax.swing.JLabel();
- momentEndUnixField = new javax.swing.JFormattedTextField();
- presetPanel = new javax.swing.JPanel();
- presetLoadButton = new javax.swing.JButton();
- presetSelectComboBox = new javax.swing.JComboBox();
- routerPanel = new javax.swing.JPanel();
- routerScrollPane = new javax.swing.JScrollPane();
- routerList = new javax.swing.JList();
- statusPanel = new javax.swing.JPanel();
- statusLabel = new javax.swing.JLabel();
- statusProgressBar = new javax.swing.JProgressBar();
+ masterSplitPane = new javax.swing.JSplitPane();
+ leftMainPanel = new javax.swing.JPanel();
+ lsPanel = new javax.swing.JPanel();
+ lsUpdateButton = new javax.swing.JButton();
+ lsScrollPane = new javax.swing.JScrollPane();
+ lsList = new javax.swing.JList();
+ customLsPanel = new javax.swing.JPanel();
+ customLsConnectButton = new javax.swing.JButton();
+ customLsField = new javax.swing.JTextField();
+ customLsAdressLabel = new javax.swing.JLabel();
+ rightMainPanel = new javax.swing.JPanel();
+ StartMomentPanel = new javax.swing.JPanel();
+ momentStartYearComboBox = new javax.swing.JComboBox();
+ momentStartMonthComboBox = new javax.swing.JComboBox();
+ momentStartDayComboBox = new javax.swing.JComboBox();
+ momentStartHourComboBox = new javax.swing.JComboBox();
+ momentStartSecondComboBox = new javax.swing.JComboBox();
+ momentStartYearLabel = new javax.swing.JLabel();
+ momentStartMonthLabel = new javax.swing.JLabel();
+ momentStartDayLabel = new javax.swing.JLabel();
+ momentStartHourLabel = new javax.swing.JLabel();
+ momentStartSecondLabel = new javax.swing.JLabel();
+ momentStartUnixLabel = new javax.swing.JLabel();
+ momentStartUnixField = new javax.swing.JFormattedTextField();
+ queryTabbedPanel = new javax.swing.JTabbedPane();
+ rawQueryPanel = new javax.swing.JPanel();
+ rawFilterField = new javax.swing.JTextField();
+ rawAggregationField = new javax.swing.JTextField();
+ rawFilterlabel = new javax.swing.JLabel();
+ rawAggregationLabel = new javax.swing.JLabel();
+ rawSubmitButton = new javax.swing.JButton();
+ rawDataScrollPane = new javax.swing.JScrollPane();
+ rawDataTable = new javax.swing.JTable();
+ rawExportButton = new javax.swing.JButton();
+ rawFieldPanel = new javax.swing.JPanel();
+ rawFieldScrollPane = new javax.swing.JScrollPane();
+ rawFieldsList = new javax.swing.JList();
+ topQueryPanel = new javax.swing.JPanel();
+ TopQueryparametersPanel = new javax.swing.JPanel();
+ topSubmitButton = new javax.swing.JButton();
+ topNumberField = new javax.swing.JTextField();
+ topOrderComboBox = new javax.swing.JComboBox();
+ topElementLabel = new javax.swing.JLabel();
+ topOrderLabel = new javax.swing.JLabel();
+ topNumberLabel = new javax.swing.JLabel();
+ topElementComboBox = new javax.swing.JComboBox();
+ topGroupTransCheckBox = new javax.swing.JCheckBox();
+ topGroupTransLabel = new javax.swing.JLabel();
+ topExportButton = new javax.swing.JButton();
+ topDataScrollPane = new javax.swing.JScrollPane();
+ topDataTable = new javax.swing.JTable();
+ statQueryPanel = new javax.swing.JPanel();
+ statsFlowsLabel = new javax.swing.JLabel();
+ statsFlowsTcpLabel = new javax.swing.JLabel();
+ statsFlowsUdpLabel = new javax.swing.JLabel();
+ statsFlowsIcmpLabel = new javax.swing.JLabel();
+ statsFlowsOthersLabel = new javax.swing.JLabel();
+ statsFlowsPacketsLabel = new javax.swing.JLabel();
+ statsPacketsTcpLabel = new javax.swing.JLabel();
+ statsPacketsUdpLabel = new javax.swing.JLabel();
+ statsPacketsIcmpLabel = new javax.swing.JLabel();
+ statsPacketsOtherLabel = new javax.swing.JLabel();
+ statsBytesLabel = new javax.swing.JLabel();
+ statsBytesTcpLabel = new javax.swing.JLabel();
+ statsBytesUdpLabel = new javax.swing.JLabel();
+ statsBytesIcmpLabel = new javax.swing.JLabel();
+ statsBytesOtherLabel = new javax.swing.JLabel();
+ statsFirstLabel = new javax.swing.JLabel();
+ statsLastLabel = new javax.swing.JLabel();
+ statsMsecFirstLabel = new javax.swing.JLabel();
+ statsMsecLastLabel = new javax.swing.JLabel();
+ statsSeqFailLabel = new javax.swing.JLabel();
+ statsFlowsField = new javax.swing.JTextField();
+ statsFlowsTcpField = new javax.swing.JTextField();
+ statsFlowsudpField = new javax.swing.JTextField();
+ statsFlowsIcmpField = new javax.swing.JTextField();
+ statsFlowsOtherField = new javax.swing.JTextField();
+ statsPacketsField = new javax.swing.JTextField();
+ statsPacketsTcpField = new javax.swing.JTextField();
+ statsPacketsUdpField = new javax.swing.JTextField();
+ statsPacketsIcmpField = new javax.swing.JTextField();
+ statsPacketsotherField = new javax.swing.JTextField();
+ statsBytesField = new javax.swing.JTextField();
+ statsBytesTcpField = new javax.swing.JTextField();
+ statsBytesUdpField = new javax.swing.JTextField();
+ statsBytesIcmpField = new javax.swing.JTextField();
+ statsBytesOtherField = new javax.swing.JTextField();
+ statsFirstField = new javax.swing.JTextField();
+ statsLastField = new javax.swing.JTextField();
+ statsMsecFirstField = new javax.swing.JTextField();
+ statsMsecLastField = new javax.swing.JTextField();
+ statsSeqFailField = new javax.swing.JTextField();
+ statsSubmitButton = new javax.swing.JButton();
+ endMomentPanel = new javax.swing.JPanel();
+ momentEndYearComboBox = new javax.swing.JComboBox();
+ momentEndMonthComboBox = new javax.swing.JComboBox();
+ momentEndDayComboBox = new javax.swing.JComboBox();
+ momentEndHourComboBox = new javax.swing.JComboBox();
+ momentEndSecondComboBox = new javax.swing.JComboBox();
+ momentEndYearLabel = new javax.swing.JLabel();
+ momentEndMonthLabel = new javax.swing.JLabel();
+ momentEndDayLabel = new javax.swing.JLabel();
+ momentEndHourLabel = new javax.swing.JLabel();
+ momentEndSecondLabel = new javax.swing.JLabel();
+ momentEndUnixLabel = new javax.swing.JLabel();
+ momentEndUnixField = new javax.swing.JFormattedTextField();
+ presetPanel = new javax.swing.JPanel();
+ presetLoadButton = new javax.swing.JButton();
+ presetSelectComboBox = new javax.swing.JComboBox();
+ routerPanel = new javax.swing.JPanel();
+ routerScrollPane = new javax.swing.JScrollPane();
+ routerList = new javax.swing.JList();
+ statusPanel = new javax.swing.JPanel();
+ statusLabel = new javax.swing.JLabel();
+ statusProgressBar = new javax.swing.JProgressBar();
- setName("MainFrame");
- masterSplitPane.setMinimumSize(new java.awt.Dimension(510,
366));
- lsPanel.setBorder(javax.swing.BorderFactory
- .createTitledBorder("From LS"));
- lsUpdateButton.setText("update");
- lsUpdateButton.addActionListener(new
java.awt.event.ActionListener() {
- public void
actionPerformed(java.awt.event.ActionEvent evt) {
- lsUpdateButtonActionPerformed(evt);
- }
- });
- lsList.setModel(new javax.swing.AbstractListModel() {
- /**
- *
- */
- private static final long serialVersionUID = 0L;
- String[] strings = { "sonar1" };
+ setName("MainFrame");
+ masterSplitPane.setMinimumSize(new java.awt.Dimension(510,
366));
+
lsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("From LS"));
+ lsUpdateButton.setText("update");
+ lsUpdateButton.addActionListener(new
java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent
evt) {
+ lsUpdateButtonActionPerformed(evt);
+ }
+ });
- public int getSize() {
- return strings.length;
- }
+ lsList.setModel(new javax.swing.AbstractListModel() {
+ String[] strings = { "sonar1" };
+ public int getSize() { return strings.length; }
+ public Object getElementAt(int i) { return strings[i]; }
+ });
+ lsScrollPane.setViewportView(lsList);
- public Object getElementAt(int i) {
- return strings[i];
- }
- });
- lsScrollPane.setViewportView(lsList);
+ javax.swing.GroupLayout lsPanelLayout = new
javax.swing.GroupLayout(lsPanel);
+ lsPanel.setLayout(lsPanelLayout);
+ lsPanelLayout.setHorizontalGroup(
+
lsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(lsPanelLayout.createSequentialGroup()
+ .addContainerGap()
+
.addGroup(lsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(lsScrollPane,
javax.swing.GroupLayout.DEFAULT_SIZE, 85, Short.MAX_VALUE)
+ .addComponent(lsUpdateButton))
+ .addContainerGap())
+ );
+ lsPanelLayout.setVerticalGroup(
+
lsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
lsPanelLayout.createSequentialGroup()
+ .addComponent(lsScrollPane,
javax.swing.GroupLayout.DEFAULT_SIZE, 509, Short.MAX_VALUE)
+ .addGap(7, 7, 7)
+ .addComponent(lsUpdateButton,
javax.swing.GroupLayout.PREFERRED_SIZE, 17,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addContainerGap())
+ );
- javax.swing.GroupLayout lsPanelLayout = new
javax.swing.GroupLayout(
- lsPanel);
- lsPanel.setLayout(lsPanelLayout);
- lsPanelLayout
- .setHorizontalGroup(lsPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
- lsPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.addGroup(
-
lsPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
-
.addComponent(
-
lsScrollPane,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
85,
-
Short.MAX_VALUE)
-
.addComponent(
-
lsUpdateButton))
-
.addContainerGap()));
-
lsPanelLayout.setVerticalGroup(lsPanelLayout.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING).addGroup(
- javax.swing.GroupLayout.Alignment.TRAILING,
-
lsPanelLayout.createSequentialGroup().addComponent(
- lsScrollPane,
javax.swing.GroupLayout.DEFAULT_SIZE,
- 509,
Short.MAX_VALUE).addGap(7, 7, 7).addComponent(
- lsUpdateButton,
javax.swing.GroupLayout.PREFERRED_SIZE,
- 17,
javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap()));
+
customLsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Custom
MA"));
+ customLsConnectButton.setText("Connect");
- customLsPanel.setBorder(javax.swing.BorderFactory
- .createTitledBorder("Custom MA"));
- customLsConnectButton.setText("Connect");
+ customLsAdressLabel.setText("address");
- customLsAdressLabel.setText("address");
+ javax.swing.GroupLayout customLsPanelLayout = new
javax.swing.GroupLayout(customLsPanel);
+ customLsPanel.setLayout(customLsPanelLayout);
+ customLsPanelLayout.setHorizontalGroup(
+
customLsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(customLsPanelLayout.createSequentialGroup()
+ .addContainerGap()
+
.addGroup(customLsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(customLsConnectButton,
javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
+ .addComponent(customLsField,
javax.swing.GroupLayout.DEFAULT_SIZE, 85, Short.MAX_VALUE)
+ .addComponent(customLsAdressLabel))
+ .addContainerGap())
+ );
+ customLsPanelLayout.setVerticalGroup(
+
customLsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
customLsPanelLayout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(customLsAdressLabel)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 8,
Short.MAX_VALUE)
+ .addComponent(customLsField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(customLsConnectButton,
javax.swing.GroupLayout.PREFERRED_SIZE, 17,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addContainerGap())
+ );
- javax.swing.GroupLayout customLsPanelLayout = new
javax.swing.GroupLayout(
- customLsPanel);
- customLsPanel.setLayout(customLsPanelLayout);
- customLsPanelLayout
- .setHorizontalGroup(customLsPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
customLsPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.addGroup(
-
customLsPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
-
.addComponent(
-
customLsConnectButton,
-
javax.swing.GroupLayout.Alignment.TRAILING,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE)
-
.addComponent(
-
customLsField,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
85,
-
Short.MAX_VALUE)
-
.addComponent(
-
customLsAdressLabel))
-
.addContainerGap()));
- customLsPanelLayout
- .setVerticalGroup(customLsPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING,
-
customLsPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.addComponent(customLsAdressLabel)
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED,
-
8, Short.MAX_VALUE)
-
.addComponent(
-
customLsField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addComponent(
-
customLsConnectButton,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
17,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addContainerGap()));
+ javax.swing.GroupLayout leftMainPanelLayout = new
javax.swing.GroupLayout(leftMainPanel);
+ leftMainPanel.setLayout(leftMainPanelLayout);
+ leftMainPanelLayout.setHorizontalGroup(
+
leftMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(customLsPanel,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
+ .addComponent(lsPanel,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
+ );
+ leftMainPanelLayout.setVerticalGroup(
+
leftMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
leftMainPanelLayout.createSequentialGroup()
+ .addComponent(lsPanel,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(customLsPanel,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+ );
+ masterSplitPane.setLeftComponent(leftMainPanel);
- javax.swing.GroupLayout leftMainPanelLayout = new
javax.swing.GroupLayout(
- leftMainPanel);
- leftMainPanel.setLayout(leftMainPanelLayout);
- leftMainPanelLayout.setHorizontalGroup(leftMainPanelLayout
-
.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(customLsPanel,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(lsPanel,
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
- leftMainPanelLayout
- .setVerticalGroup(leftMainPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING,
-
leftMainPanelLayout
-
.createSequentialGroup()
-
.addComponent(
-
lsPanel,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE)
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addComponent(
-
customLsPanel,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)));
- masterSplitPane.setLeftComponent(leftMainPanel);
+
StartMomentPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Start
moment"));
+ momentStartYearComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "2007", "2006", "2005",
"2004" }));
- StartMomentPanel.setBorder(javax.swing.BorderFactory
- .createTitledBorder("Start moment"));
- momentStartYearComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
- new String[] { "2007", "2006", "2005", "2004"
}));
+ momentStartMonthComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "January", "February",
"March", "April", "May", "June", "July", "August", "September", "Oktober",
"November", "December" }));
- momentStartMonthComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
- new String[] { "January", "February",
"March", "April", "May",
- "June", "July", "August",
"September", "Oktober",
- "November", "December" }));
+ momentStartDayComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6",
"7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19",
"20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
- momentStartDayComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
- new String[] { "1", "2", "3", "4", "5", "6",
"7", "8", "9",
- "10", "11", "12", "13", "14",
"15", "16", "17", "18",
- "19", "20", "21", "22", "23",
"24", "25", "26", "27",
- "28", "29", "30", "31" }));
+ momentStartHourComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "00", "01", "02", "03", "04",
"05", "06", "07", "08", "09", "10", "11", "14", "15", "16", "17", "20", "22",
"23" }));
- momentStartHourComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
- new String[] { "00", "01", "02", "03", "04",
"05", "06", "07",
- "08", "09", "10", "11", "14",
"15", "16", "17", "20",
- "22", "23" }));
+ momentStartSecondComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "00", "1", "2", "3", "4",
"5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17",
"18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30",
"31", "32", "33", "34", "36", "37", "38", "39", "40", "42", "43", "46", "47",
"48", "51", "52", "53", "54", "55", "56", "57", "58", "59" }));
- momentStartSecondComboBox
- .setModel(new
javax.swing.DefaultComboBoxModel(new String[] {
- "00", "1", "2", "3", "4",
"5", "6", "7", "8", "9",
- "10", "11", "12", "13", "14",
"15", "16", "17", "18",
- "19", "20", "21", "22", "23",
"24", "25", "26", "27",
- "28", "29", "30", "31", "32",
"33", "34", "36", "37",
- "38", "39", "40", "42", "43",
"46", "47", "48", "51",
- "52", "53", "54", "55", "56",
"57", "58", "59" }));
+ momentStartYearLabel.setText("year");
- momentStartYearLabel.setText("year");
+ momentStartMonthLabel.setText("month");
- momentStartMonthLabel.setText("month");
+ momentStartDayLabel.setText("day");
- momentStartDayLabel.setText("day");
+ momentStartHourLabel.setText("hour");
- momentStartHourLabel.setText("hour");
+ momentStartSecondLabel.setText("second");
- momentStartSecondLabel.setText("second");
+ momentStartUnixLabel.setText("unix time");
- momentStartUnixLabel.setText("unix time");
+ momentStartUnixField.setText("1178193663");
- momentStartUnixField.setText("1178193663");
+ javax.swing.GroupLayout StartMomentPanelLayout = new
javax.swing.GroupLayout(StartMomentPanel);
+ StartMomentPanel.setLayout(StartMomentPanelLayout);
+ StartMomentPanelLayout.setHorizontalGroup(
+
StartMomentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(StartMomentPanelLayout.createSequentialGroup()
+ .addContainerGap()
+
.addGroup(StartMomentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
+
.addGroup(StartMomentPanelLayout.createSequentialGroup()
+
.addGroup(StartMomentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(momentStartMonthLabel)
+ .addComponent(momentStartYearLabel)
+ .addComponent(momentStartDayLabel)
+ .addComponent(momentStartHourLabel)
+ .addComponent(momentStartSecondLabel))
+ .addGap(27, 27, 27))
+
.addGroup(StartMomentPanelLayout.createSequentialGroup()
+ .addComponent(momentStartUnixLabel)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
+
.addGroup(StartMomentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
+ .addComponent(momentStartHourComboBox,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(momentStartDayComboBox,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(momentStartMonthComboBox,
javax.swing.GroupLayout.Alignment.LEADING, 0,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(momentStartYearComboBox,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(momentStartSecondComboBox,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(momentStartUnixField,
javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE))
+ .addContainerGap())
+ );
+ StartMomentPanelLayout.setVerticalGroup(
+
StartMomentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(StartMomentPanelLayout.createSequentialGroup()
+
.addGroup(StartMomentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+
.addGroup(StartMomentPanelLayout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(momentStartYearLabel))
+
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
StartMomentPanelLayout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(momentStartYearComboBox,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(StartMomentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(momentStartMonthLabel)
+ .addComponent(momentStartMonthComboBox,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(StartMomentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(momentStartDayLabel)
+ .addComponent(momentStartDayComboBox,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(StartMomentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(momentStartHourLabel)
+ .addComponent(momentStartHourComboBox,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(StartMomentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(momentStartSecondComboBox,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(momentStartSecondLabel))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(StartMomentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(momentStartUnixField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(momentStartUnixLabel))
+ .addContainerGap(48, Short.MAX_VALUE))
+ );
- javax.swing.GroupLayout StartMomentPanelLayout = new
javax.swing.GroupLayout(
- StartMomentPanel);
- StartMomentPanel.setLayout(StartMomentPanelLayout);
- StartMomentPanelLayout
- .setHorizontalGroup(StartMomentPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
StartMomentPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.addGroup(
-
StartMomentPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING)
-
.addGroup(
-
StartMomentPanelLayout
-
.createSequentialGroup()
-
.addGroup(
-
StartMomentPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
-
.addComponent(
-
momentStartMonthLabel)
-
.addComponent(
-
momentStartYearLabel)
-
.addComponent(
-
momentStartDayLabel)
-
.addComponent(
-
momentStartHourLabel)
-
.addComponent(
-
momentStartSecondLabel))
-
.addGap(
-
27,
-
27,
-
27))
-
.addGroup(
-
StartMomentPanelLayout
-
.createSequentialGroup()
-
.addComponent(
-
momentStartUnixLabel)
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
-
.addGroup(
-
StartMomentPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING)
-
.addComponent(
-
momentStartHourComboBox,
-
javax.swing.GroupLayout.Alignment.LEADING,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
momentStartDayComboBox,
-
javax.swing.GroupLayout.Alignment.LEADING,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
momentStartMonthComboBox,
-
javax.swing.GroupLayout.Alignment.LEADING,
-
0,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE)
-
.addComponent(
-
momentStartYearComboBox,
-
javax.swing.GroupLayout.Alignment.LEADING,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
momentStartSecondComboBox,
-
javax.swing.GroupLayout.Alignment.LEADING,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
momentStartUnixField,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
94,
-
Short.MAX_VALUE))
-
.addContainerGap()));
- StartMomentPanelLayout
- .setVerticalGroup(StartMomentPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
StartMomentPanelLayout
-
.createSequentialGroup()
-
.addGroup(
-
StartMomentPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
-
.addGroup(
-
StartMomentPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.addComponent(
-
momentStartYearLabel))
-
.addGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING,
-
StartMomentPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.addComponent(
-
momentStartYearComboBox,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
StartMomentPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
momentStartMonthLabel)
-
.addComponent(
-
momentStartMonthComboBox,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE))))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
StartMomentPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
momentStartDayLabel)
-
.addComponent(
-
momentStartDayComboBox,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
StartMomentPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
momentStartHourLabel)
-
.addComponent(
-
momentStartHourComboBox,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
StartMomentPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
momentStartSecondComboBox,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
momentStartSecondLabel))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
StartMomentPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
momentStartUnixField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
momentStartUnixLabel))
-
.addContainerGap(48, Short.MAX_VALUE)));
+ rawFilterlabel.setText("Filter rule");
- rawFilterlabel.setText("Filter rule");
+ rawAggregationLabel.setText("Aggregation rule");
- rawAggregationLabel.setText("Aggregation rule");
+ rawSubmitButton.setText("Do It");
- rawSubmitButton.setText("Do It");
+
rawDataScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
+ rawDataScrollPane.setAutoscrolls(true);
+ rawDataTable.setModel(new javax.swing.table.DefaultTableModel(
+ new Object [][] {
+ {null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null},
+ {null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null},
+ {null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null},
+ {null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null}
+ },
+ new String [] {
+ "Address Family", "Time first seen", "Msec first
seen", "Protocol", "Src address", "Src port", "Dst address", "Dst port", "Src
AS", "Dst AS", "Input IF", "Output IF", "TCP Flags", "Tos", "Packets", "Title
16"
+ }
+ ) {
+ boolean[] canEdit = new boolean [] {
+ false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false, false
+ };
- rawDataScrollPane
-
.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
- rawDataScrollPane.setAutoscrolls(true);
- rawDataTable.setModel(new javax.swing.table.DefaultTableModel(
- new Object[][] {
- { null, null, null, null,
null, null, null, null, null,
- null, null,
null, null, null, null, null },
- { null, null, null, null,
null, null, null, null, null,
- null, null,
null, null, null, null, null },
- { null, null, null, null,
null, null, null, null, null,
- null, null,
null, null, null, null, null },
- { null, null, null, null,
null, null, null, null, null,
- null, null,
null, null, null, null, null } },
- new String[] { "Address Family", "Time first
seen",
- "Msec first seen",
"Protocol", "Src address",
- "Src port", "Dst address",
"Dst port", "Src AS",
- "Dst AS", "Input IF", "Output
IF", "TCP Flags", "Tos",
- "Packets", "Title 16" }) {
- boolean[] canEdit = new boolean[] { false, false,
false, false,
- false, false, false, false, false,
false, false, false,
- false, false, false, false };
+ public boolean isCellEditable(int rowIndex, int
columnIndex) {
+ return canEdit [columnIndex];
+ }
+ });
+
rawDataTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
+ rawDataTable.setMinimumSize(new java.awt.Dimension(500, 400));
+ rawDataScrollPane.setViewportView(rawDataTable);
- public boolean isCellEditable(int rowIndex, int
columnIndex) {
- return canEdit[columnIndex];
- }
- });
-
rawDataTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
- rawDataTable.setMinimumSize(new java.awt.Dimension(500, 400));
- rawDataScrollPane.setViewportView(rawDataTable);
+ rawExportButton.setText("export to csv");
- rawExportButton.setText("export to csv");
+
rawFieldPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Fields"));
+ rawFieldsList.setModel(new javax.swing.AbstractListModel() {
+ String[] strings = { "Address family", "Timer first
seen", "Msec first seen", "Time last seen", "Msec last seen", "Protocol",
"Source address", "Source port", "Destination address", "Destination port",
"Source AS", "Destination AS", "Input interface", "Output interface", "TCP
flags", "Tos", "Packets", "Bytes" };
+ public int getSize() { return strings.length; }
+ public Object getElementAt(int i) { return strings[i]; }
+ });
+ rawFieldScrollPane.setViewportView(rawFieldsList);
- rawFieldPanel.setBorder(javax.swing.BorderFactory
- .createTitledBorder("Fields"));
- rawFieldsList.setModel(new javax.swing.AbstractListModel() {
- String[] strings = { "Address family", "Timer first
seen",
- "Msec first seen", "Time last seen",
"Msec last seen",
- "Protocol", "Source address", "Source
port",
- "Destination address", "Destination
port", "Source AS",
- "Destination AS", "Input interface",
"Output interface",
- "TCP flags", "Tos", "Packets",
"Bytes" };
+ javax.swing.GroupLayout rawFieldPanelLayout = new
javax.swing.GroupLayout(rawFieldPanel);
+ rawFieldPanel.setLayout(rawFieldPanelLayout);
+ rawFieldPanelLayout.setHorizontalGroup(
+
rawFieldPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(rawFieldPanelLayout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(rawFieldScrollPane,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ );
+ rawFieldPanelLayout.setVerticalGroup(
+
rawFieldPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(rawFieldPanelLayout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(rawFieldScrollPane,
javax.swing.GroupLayout.DEFAULT_SIZE, 225, Short.MAX_VALUE)
+ .addContainerGap())
+ );
- public int getSize() {
- return strings.length;
- }
+ javax.swing.GroupLayout rawQueryPanelLayout = new
javax.swing.GroupLayout(rawQueryPanel);
+ rawQueryPanel.setLayout(rawQueryPanelLayout);
+ rawQueryPanelLayout.setHorizontalGroup(
+
rawQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(rawQueryPanelLayout.createSequentialGroup()
+ .addContainerGap()
+
.addGroup(rawQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+
.addGroup(rawQueryPanelLayout.createSequentialGroup()
+
.addGroup(rawQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
+ .addComponent(rawFilterlabel)
+ .addComponent(rawAggregationLabel))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(rawQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(rawAggregationField,
javax.swing.GroupLayout.DEFAULT_SIZE, 686, Short.MAX_VALUE)
+ .addComponent(rawFilterField,
javax.swing.GroupLayout.DEFAULT_SIZE, 686, Short.MAX_VALUE)))
+
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
rawQueryPanelLayout.createSequentialGroup()
+ .addComponent(rawExportButton)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(rawSubmitButton))
+
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
rawQueryPanelLayout.createSequentialGroup()
+ .addComponent(rawFieldPanel,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(rawDataScrollPane,
javax.swing.GroupLayout.DEFAULT_SIZE, 617, Short.MAX_VALUE)))
+ .addContainerGap())
+ );
+ rawQueryPanelLayout.setVerticalGroup(
+
rawQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(rawQueryPanelLayout.createSequentialGroup()
+ .addContainerGap()
+
.addGroup(rawQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(rawFilterlabel)
+ .addComponent(rawFilterField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(rawQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(rawAggregationLabel)
+ .addComponent(rawAggregationField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(rawQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(rawSubmitButton)
+ .addComponent(rawExportButton))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(rawQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(rawDataScrollPane,
javax.swing.GroupLayout.DEFAULT_SIZE, 273, Short.MAX_VALUE)
+ .addComponent(rawFieldPanel,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
+ .addContainerGap())
+ );
+ queryTabbedPanel.addTab("Raw", rawQueryPanel);
- public Object getElementAt(int i) {
- return strings[i];
- }
- });
- rawFieldScrollPane.setViewportView(rawFieldsList);
+
TopQueryparametersPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Top
query parameters"));
+ topSubmitButton.setText("submit");
- javax.swing.GroupLayout rawFieldPanelLayout = new
javax.swing.GroupLayout(
- rawFieldPanel);
- rawFieldPanel.setLayout(rawFieldPanelLayout);
- rawFieldPanelLayout.setHorizontalGroup(rawFieldPanelLayout
-
.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
rawFieldPanelLayout.createSequentialGroup()
-
.addContainerGap().addComponent(
-
rawFieldScrollPane,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addContainerGap(
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE)));
- rawFieldPanelLayout
- .setVerticalGroup(rawFieldPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
rawFieldPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.addComponent(
-
rawFieldScrollPane,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
225, Short.MAX_VALUE)
-
.addContainerGap()));
+
topNumberField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ topNumberField.setText("10");
- javax.swing.GroupLayout rawQueryPanelLayout = new
javax.swing.GroupLayout(
- rawQueryPanel);
- rawQueryPanel.setLayout(rawQueryPanelLayout);
- rawQueryPanelLayout
- .setHorizontalGroup(rawQueryPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
rawQueryPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.addGroup(
-
rawQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
-
.addGroup(
-
rawQueryPanelLayout
-
.createSequentialGroup()
-
.addGroup(
-
rawQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING)
-
.addComponent(
-
rawFilterlabel)
-
.addComponent(
-
rawAggregationLabel))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
rawQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
-
.addComponent(
-
rawAggregationField,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
686,
-
Short.MAX_VALUE)
-
.addComponent(
-
rawFilterField,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
686,
-
Short.MAX_VALUE)))
-
.addGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING,
-
rawQueryPanelLayout
-
.createSequentialGroup()
-
.addComponent(
-
rawExportButton)
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addComponent(
-
rawSubmitButton))
-
.addGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING,
-
rawQueryPanelLayout
-
.createSequentialGroup()
-
.addComponent(
-
rawFieldPanel,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addComponent(
-
rawDataScrollPane,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
617,
-
Short.MAX_VALUE)))
-
.addContainerGap()));
- rawQueryPanelLayout
- .setVerticalGroup(rawQueryPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
rawQueryPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.addGroup(
-
rawQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
rawFilterlabel)
-
.addComponent(
-
rawFilterField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
rawQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
rawAggregationLabel)
-
.addComponent(
-
rawAggregationField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
rawQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
rawSubmitButton)
-
.addComponent(
-
rawExportButton))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
rawQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
-
.addComponent(
-
rawDataScrollPane,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
273,
-
Short.MAX_VALUE)
-
.addComponent(
-
rawFieldPanel,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE))
-
.addContainerGap()));
- queryTabbedPanel.addTab("Raw", rawQueryPanel);
+ topOrderComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "Flows", "Packets", "Bytes",
"Pps", "Bps", "Bpp" }));
- TopQueryparametersPanel.setBorder(javax.swing.BorderFactory
- .createTitledBorder("Top query parameters"));
- topSubmitButton.setText("submit");
+ topElementLabel.setText("Element");
-
topNumberField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- topNumberField.setText("10");
+ topOrderLabel.setText("Order by");
- topOrderComboBox
- .setModel(new
javax.swing.DefaultComboBoxModel(new String[] {
- "Flows", "Packets", "Bytes",
"Pps", "Bps", "Bpp" }));
+ topNumberLabel.setText("Number");
- topElementLabel.setText("Element");
+ topElementComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "Record", "Srcip", "Dstip",
"Srcport", "Dstport", "Port", "Tos", "Src AS", "Dst AS", "AS", "InIF",
"OutIF", "IF", "Proto" }));
- topOrderLabel.setText("Order by");
+
topGroupTransCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0,
0, 0, 0));
+ topGroupTransCheckBox.setMargin(new java.awt.Insets(0, 0, 0,
0));
- topNumberLabel.setText("Number");
+ topGroupTransLabel.setText("group trans prot");
- topElementComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
- new String[] { "Record", "Srcip", "Dstip",
"Srcport",
- "Dstport", "Port", "Tos",
"Src AS", "Dst AS", "AS",
- "InIF", "OutIF", "IF",
"Proto" }));
+ topExportButton.setText("export to csv");
- topGroupTransCheckBox.setBorder(javax.swing.BorderFactory
- .createEmptyBorder(0, 0, 0, 0));
- topGroupTransCheckBox.setMargin(new java.awt.Insets(0, 0, 0,
0));
+ javax.swing.GroupLayout TopQueryparametersPanelLayout = new
javax.swing.GroupLayout(TopQueryparametersPanel);
+
TopQueryparametersPanel.setLayout(TopQueryparametersPanelLayout);
+ TopQueryparametersPanelLayout.setHorizontalGroup(
+
TopQueryparametersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+
.addGroup(TopQueryparametersPanelLayout.createSequentialGroup()
+ .addContainerGap()
+
.addGroup(TopQueryparametersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+
.addGroup(TopQueryparametersPanelLayout.createSequentialGroup()
+ .addComponent(topNumberLabel)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(topNumberField,
javax.swing.GroupLayout.DEFAULT_SIZE, 67, Short.MAX_VALUE))
+
.addGroup(TopQueryparametersPanelLayout.createSequentialGroup()
+
.addGroup(TopQueryparametersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(topElementLabel)
+ .addComponent(topOrderLabel))
+ .addGap(8, 8, 8)
+
.addGroup(TopQueryparametersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(topOrderComboBox, 0, 66,
Short.MAX_VALUE)
+ .addComponent(topElementComboBox, 0, 66,
Short.MAX_VALUE)))
+ .addComponent(topSubmitButton,
javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.DEFAULT_SIZE, 128, Short.MAX_VALUE)
+
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
TopQueryparametersPanelLayout.createSequentialGroup()
+ .addComponent(topGroupTransLabel,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(topGroupTransCheckBox))
+ .addComponent(topExportButton,
javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.DEFAULT_SIZE, 128, Short.MAX_VALUE))
+ .addContainerGap())
+ );
+ TopQueryparametersPanelLayout.setVerticalGroup(
+
TopQueryparametersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+
.addGroup(TopQueryparametersPanelLayout.createSequentialGroup()
+
.addGroup(TopQueryparametersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(topElementLabel)
+ .addComponent(topElementComboBox,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(TopQueryparametersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(topOrderLabel)
+ .addComponent(topOrderComboBox,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addGap(14, 14, 14)
+
.addGroup(TopQueryparametersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(topNumberLabel)
+ .addComponent(topNumberField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(TopQueryparametersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(topGroupTransLabel)
+ .addComponent(topGroupTransCheckBox))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(topSubmitButton)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(topExportButton)
+ .addContainerGap(160, Short.MAX_VALUE))
+ );
- topGroupTransLabel.setText("group trans prot");
+ topDataTable.setModel(new javax.swing.table.DefaultTableModel(
+ new Object [][] {
+ {null, null, null, null, null, null, null, null,
null, null},
+ {null, null, null, null, null, null, null, null,
null, null},
+ {null, null, null, null, null, null, null, null,
null, null},
+ {null, null, null, null, null, null, null, null,
null, null}
+ },
+ new String [] {
+ "#", "Date first seen", "Duration", "Proto", "Flows",
"Packets", "Bytes", "Pps", "Bps", "Bpp"
+ }
+ ) {
+ boolean[] canEdit = new boolean [] {
+ false, false, false, false, true, true, true, true,
true, true
+ };
- topExportButton.setText("export to csv");
+ public boolean isCellEditable(int rowIndex, int
columnIndex) {
+ return canEdit [columnIndex];
+ }
+ });
+ topDataScrollPane.setViewportView(topDataTable);
- javax.swing.GroupLayout TopQueryparametersPanelLayout = new
javax.swing.GroupLayout(
- TopQueryparametersPanel);
-
TopQueryparametersPanel.setLayout(TopQueryparametersPanelLayout);
- TopQueryparametersPanelLayout
-
.setHorizontalGroup(TopQueryparametersPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
TopQueryparametersPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.addGroup(
-
TopQueryparametersPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
-
.addGroup(
-
TopQueryparametersPanelLayout
-
.createSequentialGroup()
-
.addComponent(
-
topNumberLabel)
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addComponent(
-
topNumberField,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
67,
-
Short.MAX_VALUE))
-
.addGroup(
-
TopQueryparametersPanelLayout
-
.createSequentialGroup()
-
.addGroup(
-
TopQueryparametersPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
-
.addComponent(
-
topElementLabel)
-
.addComponent(
-
topOrderLabel))
-
.addGap(
-
8,
-
8,
-
8)
-
.addGroup(
-
TopQueryparametersPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
-
.addComponent(
-
topOrderComboBox,
-
0,
-
66,
-
Short.MAX_VALUE)
-
.addComponent(
-
topElementComboBox,
-
0,
-
66,
-
Short.MAX_VALUE)))
-
.addComponent(
-
topSubmitButton,
-
javax.swing.GroupLayout.Alignment.TRAILING,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
128,
-
Short.MAX_VALUE)
-
.addGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING,
-
TopQueryparametersPanelLayout
-
.createSequentialGroup()
-
.addComponent(
-
topGroupTransLabel,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE)
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addComponent(
-
topGroupTransCheckBox))
-
.addComponent(
-
topExportButton,
-
javax.swing.GroupLayout.Alignment.TRAILING,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
128,
-
Short.MAX_VALUE))
-
.addContainerGap()));
- TopQueryparametersPanelLayout
-
.setVerticalGroup(TopQueryparametersPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
TopQueryparametersPanelLayout
-
.createSequentialGroup()
-
.addGroup(
-
TopQueryparametersPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
topElementLabel)
-
.addComponent(
-
topElementComboBox,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
TopQueryparametersPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
topOrderLabel)
-
.addComponent(
-
topOrderComboBox,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE))
-
.addGap(14, 14, 14)
-
.addGroup(
-
TopQueryparametersPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
topNumberLabel)
-
.addComponent(
-
topNumberField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
TopQueryparametersPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
-
.addComponent(
-
topGroupTransLabel)
-
.addComponent(
-
topGroupTransCheckBox))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addComponent(topSubmitButton)
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addComponent(topExportButton)
-
.addContainerGap(160, Short.MAX_VALUE)));
+ javax.swing.GroupLayout topQueryPanelLayout = new
javax.swing.GroupLayout(topQueryPanel);
+ topQueryPanel.setLayout(topQueryPanelLayout);
+ topQueryPanelLayout.setHorizontalGroup(
+
topQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(topQueryPanelLayout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(TopQueryparametersPanel,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(topDataScrollPane,
javax.swing.GroupLayout.DEFAULT_SIZE, 635, Short.MAX_VALUE)
+ .addContainerGap())
+ );
+ topQueryPanelLayout.setVerticalGroup(
+
topQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(topQueryPanelLayout.createSequentialGroup()
+ .addContainerGap()
+
.addGroup(topQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(topDataScrollPane,
javax.swing.GroupLayout.DEFAULT_SIZE, 354, Short.MAX_VALUE)
+ .addComponent(TopQueryparametersPanel,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
+ .addContainerGap())
+ );
+ queryTabbedPanel.addTab("Top", topQueryPanel);
- topDataTable.setModel(new javax.swing.table.DefaultTableModel(
- new Object[][] {
- { null, null, null, null,
null, null, null, null, null,
- null },
- { null, null, null, null,
null, null, null, null, null,
- null },
- { null, null, null, null,
null, null, null, null, null,
- null },
- { null, null, null, null,
null, null, null, null, null,
- null } }, new
String[] { "#",
- "Date first seen",
"Duration", "Proto", "Flows",
- "Packets", "Bytes", "Pps",
"Bps", "Bpp" }) {
- boolean[] canEdit = new boolean[] { false, false,
false, false,
- true, true, true, true, true, true };
+ statsFlowsLabel.setText("Flows");
- public boolean isCellEditable(int rowIndex, int
columnIndex) {
- return canEdit[columnIndex];
- }
- });
- topDataScrollPane.setViewportView(topDataTable);
+ statsFlowsTcpLabel.setText("Flows TCP");
- javax.swing.GroupLayout topQueryPanelLayout = new
javax.swing.GroupLayout(
- topQueryPanel);
- topQueryPanel.setLayout(topQueryPanelLayout);
- topQueryPanelLayout
- .setHorizontalGroup(topQueryPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
topQueryPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.addComponent(
-
TopQueryparametersPanel,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addComponent(
-
topDataScrollPane,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
635, Short.MAX_VALUE)
-
.addContainerGap()));
- topQueryPanelLayout
- .setVerticalGroup(topQueryPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
topQueryPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.addGroup(
-
topQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
-
.addComponent(
-
topDataScrollPane,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
354,
-
Short.MAX_VALUE)
-
.addComponent(
-
TopQueryparametersPanel,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE))
-
.addContainerGap()));
- queryTabbedPanel.addTab("Top", topQueryPanel);
+ statsFlowsUdpLabel.setText("Flows UDP");
- statsFlowsLabel.setText("Flows");
+ statsFlowsIcmpLabel.setText("Flows ICMP");
- statsFlowsTcpLabel.setText("Flows TCP");
+ statsFlowsOthersLabel.setText("Flows other");
- statsFlowsUdpLabel.setText("Flows UDP");
+ statsFlowsPacketsLabel.setText("Packets");
- statsFlowsIcmpLabel.setText("Flows ICMP");
+ statsPacketsTcpLabel.setText("Packets TCP");
- statsFlowsOthersLabel.setText("Flows other");
+ statsPacketsUdpLabel.setText("Packets UDP");
- statsFlowsPacketsLabel.setText("Packets");
+ statsPacketsIcmpLabel.setText("Packets ICMP");
- statsPacketsTcpLabel.setText("Packets TCP");
+ statsPacketsOtherLabel.setText("Packets other");
- statsPacketsUdpLabel.setText("Packets UDP");
+ statsBytesLabel.setText("Bytes");
- statsPacketsIcmpLabel.setText("Packets ICMP");
+ statsBytesTcpLabel.setText("Bytes TCP");
- statsPacketsOtherLabel.setText("Packets other");
+ statsBytesUdpLabel.setText("Bytes UDP");
- statsBytesLabel.setText("Bytes");
+ statsBytesIcmpLabel.setText("Bytes ICMP");
- statsBytesTcpLabel.setText("Bytes TCP");
+ statsBytesOtherLabel.setText("Bytes other");
- statsBytesUdpLabel.setText("Bytes UDP");
+ statsFirstLabel.setText("First");
- statsBytesIcmpLabel.setText("Bytes ICMP");
+ statsLastLabel.setText("Last");
- statsBytesOtherLabel.setText("Bytes other");
+ statsMsecFirstLabel.setText("msec first");
- statsFirstLabel.setText("First");
+ statsMsecLastLabel.setText("msec last");
- statsLastLabel.setText("Last");
+ statsSeqFailLabel.setText("Sequence failures");
- statsMsecFirstLabel.setText("msec first");
+ statsFlowsField.setEditable(false);
+
statsFlowsField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsFlowsField.setText("32743934");
- statsMsecLastLabel.setText("msec last");
+ statsFlowsTcpField.setEditable(false);
+
statsFlowsTcpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsFlowsTcpField.setText("28855797");
- statsSeqFailLabel.setText("Sequence failures");
+ statsFlowsudpField.setEditable(false);
+
statsFlowsudpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsFlowsudpField.setText("3640646");
- statsFlowsField.setEditable(false);
-
statsFlowsField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsFlowsField.setText("32743934");
+ statsFlowsIcmpField.setEditable(false);
+
statsFlowsIcmpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsFlowsIcmpField.setText("166385");
- statsFlowsTcpField.setEditable(false);
-
statsFlowsTcpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsFlowsTcpField.setText("28855797");
+ statsFlowsOtherField.setEditable(false);
+
statsFlowsOtherField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsFlowsOtherField.setText("81106");
- statsFlowsudpField.setEditable(false);
-
statsFlowsudpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsFlowsudpField.setText("3640646");
+ statsPacketsField.setEditable(false);
+
statsPacketsField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsPacketsField.setText("145371187");
- statsFlowsIcmpField.setEditable(false);
- statsFlowsIcmpField
-
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsFlowsIcmpField.setText("166385");
+ statsPacketsTcpField.setEditable(false);
+
statsPacketsTcpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsPacketsTcpField.setText("131640619");
- statsFlowsOtherField.setEditable(false);
- statsFlowsOtherField
-
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsFlowsOtherField.setText("81106");
+ statsPacketsUdpField.setEditable(false);
+
statsPacketsUdpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsPacketsUdpField.setText("8769174");
- statsPacketsField.setEditable(false);
-
statsPacketsField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsPacketsField.setText("145371187");
+ statsPacketsIcmpField.setEditable(false);
+
statsPacketsIcmpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsPacketsIcmpField.setText("215350");
- statsPacketsTcpField.setEditable(false);
- statsPacketsTcpField
-
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsPacketsTcpField.setText("131640619");
+ statsPacketsotherField.setEditable(false);
+
statsPacketsotherField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsPacketsotherField.setText("4746044");
- statsPacketsUdpField.setEditable(false);
- statsPacketsUdpField
-
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsPacketsUdpField.setText("8769174");
+ statsBytesField.setEditable(false);
+
statsBytesField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsBytesField.setText("107316849515");
- statsPacketsIcmpField.setEditable(false);
- statsPacketsIcmpField
-
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsPacketsIcmpField.setText("215350");
+ statsBytesTcpField.setEditable(false);
+
statsBytesTcpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsBytesTcpField.setText("101866880996");
- statsPacketsotherField.setEditable(false);
- statsPacketsotherField
-
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsPacketsotherField.setText("4746044");
+ statsBytesUdpField.setEditable(false);
+
statsBytesUdpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsBytesUdpField.setText("2048101988");
- statsBytesField.setEditable(false);
-
statsBytesField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsBytesField.setText("107316849515");
+ statsBytesIcmpField.setEditable(false);
+
statsBytesIcmpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsBytesIcmpField.setText("2048101988");
- statsBytesTcpField.setEditable(false);
-
statsBytesTcpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsBytesTcpField.setText("101866880996");
+ statsBytesOtherField.setEditable(false);
+
statsBytesOtherField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsBytesOtherField.setText("15996576");
- statsBytesUdpField.setEditable(false);
-
statsBytesUdpField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsBytesUdpField.setText("2048101988");
+ statsFirstField.setEditable(false);
+
statsFirstField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsFirstField.setText("3385869955");
- statsBytesIcmpField.setEditable(false);
- statsBytesIcmpField
-
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsBytesIcmpField.setText("2048101988");
+ statsLastField.setEditable(false);
+
statsLastField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsLastField.setText("1170162779");
- statsBytesOtherField.setEditable(false);
- statsBytesOtherField
-
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsBytesOtherField.setText("15996576");
+ statsMsecFirstField.setEditable(false);
+
statsMsecFirstField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsMsecFirstField.setText("166");
- statsFirstField.setEditable(false);
-
statsFirstField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsFirstField.setText("3385869955");
+ statsMsecLastField.setEditable(false);
+
statsMsecLastField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsMsecLastField.setText("0");
- statsLastField.setEditable(false);
-
statsLastField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsLastField.setText("1170162779");
+ statsSeqFailField.setEditable(false);
+
statsSeqFailField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
+ statsSeqFailField.setText("139");
- statsMsecFirstField.setEditable(false);
- statsMsecFirstField
-
.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsMsecFirstField.setText("166");
+ statsSubmitButton.setText("Submit Qeury");
- statsMsecLastField.setEditable(false);
-
statsMsecLastField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsMsecLastField.setText("0");
+ javax.swing.GroupLayout statQueryPanelLayout = new
javax.swing.GroupLayout(statQueryPanel);
+ statQueryPanel.setLayout(statQueryPanelLayout);
+ statQueryPanelLayout.setHorizontalGroup(
+
statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(statQueryPanelLayout.createSequentialGroup()
+ .addGap(29, 29, 29)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
+ .addComponent(statsFlowsLabel)
+ .addComponent(statsFlowsTcpLabel)
+ .addComponent(statsFlowsUdpLabel)
+ .addComponent(statsFlowsIcmpLabel)
+ .addComponent(statsFlowsOthersLabel)
+ .addComponent(statsFlowsPacketsLabel)
+ .addComponent(statsPacketsTcpLabel)
+ .addComponent(statsPacketsUdpLabel)
+ .addComponent(statsPacketsIcmpLabel)
+ .addComponent(statsPacketsOtherLabel))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(statsPacketsotherField,
javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
+ .addComponent(statsPacketsField,
javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
+ .addComponent(statsPacketsUdpField,
javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
+ .addComponent(statsPacketsIcmpField,
javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
+ .addComponent(statsFlowsOtherField,
javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
+ .addComponent(statsFlowsIcmpField,
javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
+ .addComponent(statsFlowsudpField,
javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
+ .addComponent(statsFlowsTcpField,
javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
+ .addComponent(statsPacketsTcpField,
javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
+ .addComponent(statsFlowsField,
javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
+ .addComponent(statsSubmitButton)
+
.addGroup(statQueryPanelLayout.createSequentialGroup()
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
statQueryPanelLayout.createSequentialGroup()
+ .addComponent(statsBytesIcmpLabel)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
+
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
statQueryPanelLayout.createSequentialGroup()
+
.addComponent(statsBytesOtherLabel)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
+
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
statQueryPanelLayout.createSequentialGroup()
+ .addComponent(statsFirstLabel)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
+
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
statQueryPanelLayout.createSequentialGroup()
+ .addComponent(statsLastLabel)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
+
.addGroup(statQueryPanelLayout.createSequentialGroup()
+ .addGap(47, 47, 47)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
+
.addComponent(statsMsecFirstLabel)
+
.addComponent(statsMsecLastLabel))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
+
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
statQueryPanelLayout.createSequentialGroup()
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
+
.addComponent(statsBytesTcpLabel)
+
.addComponent(statsBytesUdpLabel)
+
.addComponent(statsBytesLabel))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
+ .addComponent(statsSeqFailLabel))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
+
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
statQueryPanelLayout.createSequentialGroup()
+ .addComponent(statsBytesField)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
+ .addComponent(statsSeqFailField)
+ .addComponent(statsMsecLastField)
+ .addComponent(statsMsecFirstField)
+ .addComponent(statsBytesUdpField)
+ .addComponent(statsBytesIcmpField)
+ .addComponent(statsBytesOtherField)
+ .addComponent(statsFirstField)
+ .addComponent(statsLastField)
+ .addComponent(statsBytesTcpField,
javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE))))
+ .addGap(383, 383, 383))
+ );
+ statQueryPanelLayout.setVerticalGroup(
+
statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(statQueryPanelLayout.createSequentialGroup()
+ .addContainerGap()
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+
.addGroup(statQueryPanelLayout.createSequentialGroup()
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+
.addGroup(statQueryPanelLayout.createSequentialGroup()
+ .addGap(21, 21, 21)
+ .addComponent(statsFlowsLabel))
+
.addGroup(statQueryPanelLayout.createSequentialGroup()
+ .addGap(25, 25, 25)
+ .addComponent(statsFlowsField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(statsFlowsTcpLabel)
+ .addComponent(statsFlowsTcpField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(statsFlowsudpField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(statsFlowsUdpLabel))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(statsFlowsIcmpField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(statsFlowsIcmpLabel))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(statsFlowsOtherField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(statsFlowsOthersLabel))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(statsPacketsField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(statsFlowsPacketsLabel))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(statsPacketsTcpLabel)
+ .addComponent(statsPacketsTcpField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(statsPacketsUdpField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(statsPacketsUdpLabel))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(statsPacketsIcmpField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(statsPacketsIcmpLabel))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(statsPacketsOtherLabel)
+ .addComponent(statsPacketsotherField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)))
+
.addGroup(statQueryPanelLayout.createSequentialGroup()
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(statsBytesField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(statsBytesLabel))
+ .addGap(10, 10, 10)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(statsBytesTcpLabel)
+ .addComponent(statsBytesTcpField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(statsBytesUdpLabel)
+ .addComponent(statsBytesUdpField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(statsBytesIcmpLabel)
+ .addComponent(statsBytesIcmpField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(statsBytesOtherLabel)
+ .addComponent(statsBytesOtherField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(statsFirstLabel)
+ .addComponent(statsFirstField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(statsLastLabel)
+ .addComponent(statsLastField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(statsMsecFirstField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(statsMsecFirstLabel))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(statsMsecLastField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(statsMsecLastLabel))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(statQueryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(statsSeqFailField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(statsSeqFailLabel))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(statsSubmitButton)))
+ .addContainerGap(87, Short.MAX_VALUE))
+ );
+ queryTabbedPanel.addTab("Statistical", statQueryPanel);
- statsSeqFailField.setEditable(false);
-
statsSeqFailField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
- statsSeqFailField.setText("139");
+
endMomentPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("End
moment"));
+ momentEndYearComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "2007", "2006", "2005",
"2004" }));
- statsSubmitButton.setText("Submit Qeury");
+ momentEndMonthComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "January", "February",
"March", "April", "May", "June", "July", "August", "September", "Oktober",
"November", "December" }));
- javax.swing.GroupLayout statQueryPanelLayout = new
javax.swing.GroupLayout(
- statQueryPanel);
- statQueryPanel.setLayout(statQueryPanelLayout);
- statQueryPanelLayout
- .setHorizontalGroup(statQueryPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.addGap(29, 29, 29)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING)
-
.addComponent(
-
statsFlowsLabel)
-
.addComponent(
-
statsFlowsTcpLabel)
-
.addComponent(
-
statsFlowsUdpLabel)
-
.addComponent(
-
statsFlowsIcmpLabel)
-
.addComponent(
-
statsFlowsOthersLabel)
-
.addComponent(
-
statsFlowsPacketsLabel)
-
.addComponent(
-
statsPacketsTcpLabel)
-
.addComponent(
-
statsPacketsUdpLabel)
-
.addComponent(
-
statsPacketsIcmpLabel)
-
.addComponent(
-
statsPacketsOtherLabel))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
-
.addComponent(
-
statsPacketsotherField,
-
javax.swing.GroupLayout.Alignment.TRAILING,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
114,
-
Short.MAX_VALUE)
-
.addComponent(
-
statsPacketsField,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
114,
-
Short.MAX_VALUE)
-
.addComponent(
-
statsPacketsUdpField,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
114,
-
Short.MAX_VALUE)
-
.addComponent(
-
statsPacketsIcmpField,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
114,
-
Short.MAX_VALUE)
-
.addComponent(
-
statsFlowsOtherField,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
114,
-
Short.MAX_VALUE)
-
.addComponent(
-
statsFlowsIcmpField,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
114,
-
Short.MAX_VALUE)
-
.addComponent(
-
statsFlowsudpField,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
114,
-
Short.MAX_VALUE)
-
.addComponent(
-
statsFlowsTcpField,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
114,
-
Short.MAX_VALUE)
-
.addComponent(
-
statsPacketsTcpField,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
114,
-
Short.MAX_VALUE)
-
.addComponent(
-
statsFlowsField,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
114,
-
Short.MAX_VALUE))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING)
-
.addComponent(
-
statsSubmitButton)
-
.addGroup(
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
-
.addGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING,
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.addComponent(
-
statsBytesIcmpLabel)
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED))
-
.addGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING,
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.addComponent(
-
statsBytesOtherLabel)
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED))
-
.addGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING,
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.addComponent(
-
statsFirstLabel)
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED))
-
.addGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING,
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.addComponent(
-
statsLastLabel)
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED))
-
.addGroup(
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.addGap(
-
47,
-
47,
-
47)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING)
-
.addComponent(
-
statsMsecFirstLabel)
-
.addComponent(
-
statsMsecLastLabel))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED))
-
.addGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING,
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING)
-
.addComponent(
-
statsBytesTcpLabel)
-
.addComponent(
-
statsBytesUdpLabel)
-
.addComponent(
-
statsBytesLabel))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
-
.addComponent(
-
statsSeqFailLabel))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING,
-
false)
-
.addGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING,
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.addComponent(
-
statsBytesField)
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED))
-
.addComponent(
-
statsSeqFailField)
-
.addComponent(
-
statsMsecLastField)
-
.addComponent(
-
statsMsecFirstField)
-
.addComponent(
-
statsBytesUdpField)
-
.addComponent(
-
statsBytesIcmpField)
-
.addComponent(
-
statsBytesOtherField)
-
.addComponent(
-
statsFirstField)
-
.addComponent(
-
statsLastField)
-
.addComponent(
-
statsBytesTcpField,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
130,
-
Short.MAX_VALUE))))
-
.addGap(383, 383, 383)));
- statQueryPanelLayout
- .setVerticalGroup(statQueryPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
-
.addGroup(
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
-
.addGroup(
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.addGap(
-
21,
-
21,
-
21)
-
.addComponent(
-
statsFlowsLabel))
-
.addGroup(
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.addGap(
-
25,
-
25,
-
25)
-
.addComponent(
-
statsFlowsField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
statsFlowsTcpLabel)
-
.addComponent(
-
statsFlowsTcpField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
statsFlowsudpField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
statsFlowsUdpLabel))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
statsFlowsIcmpField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
statsFlowsIcmpLabel))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
statsFlowsOtherField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
statsFlowsOthersLabel))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
statsPacketsField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
statsFlowsPacketsLabel))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
statsPacketsTcpLabel)
-
.addComponent(
-
statsPacketsTcpField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
statsPacketsUdpField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
statsPacketsUdpLabel))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
statsPacketsIcmpField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
statsPacketsIcmpLabel))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
statsPacketsOtherLabel)
-
.addComponent(
-
statsPacketsotherField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)))
-
.addGroup(
-
statQueryPanelLayout
-
.createSequentialGroup()
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
statsBytesField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
statsBytesLabel))
-
.addGap(
-
10,
-
10,
-
10)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
statsBytesTcpLabel)
-
.addComponent(
-
statsBytesTcpField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
statsBytesUdpLabel)
-
.addComponent(
-
statsBytesUdpField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
statsBytesIcmpLabel)
-
.addComponent(
-
statsBytesIcmpField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
statsBytesOtherLabel)
-
.addComponent(
-
statsBytesOtherField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
statsFirstLabel)
-
.addComponent(
-
statsFirstField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
statsLastLabel)
-
.addComponent(
-
statsLastField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
statsMsecFirstField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
statsMsecFirstLabel))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
statsMsecLastField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
statsMsecLastLabel))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
statQueryPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
statsSeqFailField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
statsSeqFailLabel))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addComponent(
-
statsSubmitButton)))
-
.addContainerGap(87, Short.MAX_VALUE)));
- queryTabbedPanel.addTab("Statistical", statQueryPanel);
+ momentEndDayComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6",
"7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19",
"20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
- endMomentPanel.setBorder(javax.swing.BorderFactory
- .createTitledBorder("End moment"));
- momentEndYearComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
- new String[] { "2007", "2006", "2005", "2004"
}));
+ momentEndHourComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "00", "01", "02", "03", "04",
"05", "06", "07", "08", "09", "10", "11", "14", "15", "16", "17", "20", "22",
"23" }));
- momentEndMonthComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
- new String[] { "January", "February",
"March", "April", "May",
- "June", "July", "August",
"September", "Oktober",
- "November", "December" }));
+ momentEndSecondComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "00", "1", "2", "3", "4",
"5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17",
"18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30",
"31", "32", "33", "34", "36", "37", "38", "39", "40", "42", "43", "46", "47",
"48", "51", "52", "53", "54", "55", "56", "57", "58", "59" }));
+ momentEndSecondComboBox.setSelectedIndex(1);
- momentEndDayComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
- new String[] { "1", "2", "3", "4", "5", "6",
"7", "8", "9",
- "10", "11", "12", "13", "14",
"15", "16", "17", "18",
- "19", "20", "21", "22", "23",
"24", "25", "26", "27",
- "28", "29", "30", "31" }));
+ momentEndYearLabel.setText("year");
- momentEndHourComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
- new String[] { "00", "01", "02", "03", "04",
"05", "06", "07",
- "08", "09", "10", "11", "14",
"15", "16", "17", "20",
- "22", "23" }));
+ momentEndMonthLabel.setText("month");
- momentEndSecondComboBox
- .setModel(new
javax.swing.DefaultComboBoxModel(new String[] {
- "00", "1", "2", "3", "4",
"5", "6", "7", "8", "9",
- "10", "11", "12", "13", "14",
"15", "16", "17", "18",
- "19", "20", "21", "22", "23",
"24", "25", "26", "27",
- "28", "29", "30", "31", "32",
"33", "34", "36", "37",
- "38", "39", "40", "42", "43",
"46", "47", "48", "51",
- "52", "53", "54", "55", "56",
"57", "58", "59" }));
- momentEndSecondComboBox.setSelectedIndex(1);
+ momentEndDayLabel.setText("day");
- momentEndYearLabel.setText("year");
+ momentEndHourLabel.setText("hour");
- momentEndMonthLabel.setText("month");
+ momentEndSecondLabel.setText("second");
- momentEndDayLabel.setText("day");
+ momentEndUnixLabel.setText("unix time");
- momentEndHourLabel.setText("hour");
+ momentEndUnixField.setText("1178193664");
- momentEndSecondLabel.setText("second");
+ javax.swing.GroupLayout endMomentPanelLayout = new
javax.swing.GroupLayout(endMomentPanel);
+ endMomentPanel.setLayout(endMomentPanelLayout);
+ endMomentPanelLayout.setHorizontalGroup(
+
endMomentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(endMomentPanelLayout.createSequentialGroup()
+ .addContainerGap()
+
.addGroup(endMomentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
+
.addGroup(endMomentPanelLayout.createSequentialGroup()
+
.addGroup(endMomentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(momentEndMonthLabel)
+ .addComponent(momentEndYearLabel)
+ .addComponent(momentEndDayLabel)
+ .addComponent(momentEndHourLabel)
+ .addComponent(momentEndSecondLabel))
+ .addGap(27, 27, 27))
+
.addGroup(endMomentPanelLayout.createSequentialGroup()
+ .addComponent(momentEndUnixLabel)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
+
.addGroup(endMomentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
+ .addComponent(momentEndHourComboBox,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(momentEndDayComboBox,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(momentEndMonthComboBox,
javax.swing.GroupLayout.Alignment.LEADING, 0,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(momentEndYearComboBox,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(momentEndSecondComboBox,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(momentEndUnixField,
javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE))
+ .addContainerGap())
+ );
+ endMomentPanelLayout.setVerticalGroup(
+
endMomentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(endMomentPanelLayout.createSequentialGroup()
+
.addGroup(endMomentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+
.addGroup(endMomentPanelLayout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(momentEndYearLabel))
+
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
endMomentPanelLayout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(momentEndYearComboBox,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(endMomentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(momentEndMonthLabel)
+ .addComponent(momentEndMonthComboBox,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(endMomentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(momentEndDayLabel)
+ .addComponent(momentEndDayComboBox,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(endMomentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(momentEndHourLabel)
+ .addComponent(momentEndHourComboBox,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(endMomentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(momentEndSecondComboBox,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(momentEndSecondLabel))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+
.addGroup(endMomentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(momentEndUnixField,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(momentEndUnixLabel))
+ .addContainerGap(48, Short.MAX_VALUE))
+ );
- momentEndUnixLabel.setText("unix time");
+
presetPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder("Presets"))));
+ presetLoadButton.setText("load");
- momentEndUnixField.setText("1178193664");
+ presetSelectComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "last 1 minute", "last 2
minutes", "last 5 minutes", "last 10 minutes", "last 30 minutes", "last 60
minutes", "last 120 minutes" }));
- javax.swing.GroupLayout endMomentPanelLayout = new
javax.swing.GroupLayout(
- endMomentPanel);
- endMomentPanel.setLayout(endMomentPanelLayout);
- endMomentPanelLayout
- .setHorizontalGroup(endMomentPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
endMomentPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.addGroup(
-
endMomentPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING)
-
.addGroup(
-
endMomentPanelLayout
-
.createSequentialGroup()
-
.addGroup(
-
endMomentPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
-
.addComponent(
-
momentEndMonthLabel)
-
.addComponent(
-
momentEndYearLabel)
-
.addComponent(
-
momentEndDayLabel)
-
.addComponent(
-
momentEndHourLabel)
-
.addComponent(
-
momentEndSecondLabel))
-
.addGap(
-
27,
-
27,
-
27))
-
.addGroup(
-
endMomentPanelLayout
-
.createSequentialGroup()
-
.addComponent(
-
momentEndUnixLabel)
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
-
.addGroup(
-
endMomentPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING)
-
.addComponent(
-
momentEndHourComboBox,
-
javax.swing.GroupLayout.Alignment.LEADING,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
momentEndDayComboBox,
-
javax.swing.GroupLayout.Alignment.LEADING,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
momentEndMonthComboBox,
-
javax.swing.GroupLayout.Alignment.LEADING,
-
0,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE)
-
.addComponent(
-
momentEndYearComboBox,
-
javax.swing.GroupLayout.Alignment.LEADING,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
momentEndSecondComboBox,
-
javax.swing.GroupLayout.Alignment.LEADING,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
momentEndUnixField,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
94,
-
Short.MAX_VALUE))
-
.addContainerGap()));
- endMomentPanelLayout
- .setVerticalGroup(endMomentPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
endMomentPanelLayout
-
.createSequentialGroup()
-
.addGroup(
-
endMomentPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
-
.addGroup(
-
endMomentPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.addComponent(
-
momentEndYearLabel))
-
.addGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING,
-
endMomentPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.addComponent(
-
momentEndYearComboBox,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
endMomentPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
momentEndMonthLabel)
-
.addComponent(
-
momentEndMonthComboBox,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE))))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
endMomentPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
momentEndDayLabel)
-
.addComponent(
-
momentEndDayComboBox,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
endMomentPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
momentEndHourLabel)
-
.addComponent(
-
momentEndHourComboBox,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
endMomentPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
momentEndSecondComboBox,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
momentEndSecondLabel))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addGroup(
-
endMomentPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.BASELINE)
-
.addComponent(
-
momentEndUnixField,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
momentEndUnixLabel))
-
.addContainerGap(48, Short.MAX_VALUE)));
+ javax.swing.GroupLayout presetPanelLayout = new
javax.swing.GroupLayout(presetPanel);
+ presetPanel.setLayout(presetPanelLayout);
+ presetPanelLayout.setHorizontalGroup(
+
presetPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(presetPanelLayout.createSequentialGroup()
+
.addGroup(presetPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+
.addGroup(presetPanelLayout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(presetSelectComboBox, 0, 165,
Short.MAX_VALUE))
+
.addGroup(presetPanelLayout.createSequentialGroup()
+ .addGap(45, 45, 45)
+ .addComponent(presetLoadButton,
javax.swing.GroupLayout.PREFERRED_SIZE, 98,
javax.swing.GroupLayout.PREFERRED_SIZE)))
+ .addContainerGap())
+ );
+ presetPanelLayout.setVerticalGroup(
+
presetPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(presetPanelLayout.createSequentialGroup()
+ .addComponent(presetSelectComboBox,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(presetLoadButton)
+ .addContainerGap())
+ );
- presetPanel.setBorder(javax.swing.BorderFactory
- .createTitledBorder(javax.swing.BorderFactory
-
.createTitledBorder(javax.swing.BorderFactory
-
.createTitledBorder("Presets"))));
- presetLoadButton.setText("load");
+
routerPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder("Router(s)"))));
+ routerList.setModel(new javax.swing.AbstractListModel() {
+ String[] strings = { "Arthur", "Zaphod", "Ford",
"Trillian" };
+ public int getSize() { return strings.length; }
+ public Object getElementAt(int i) { return strings[i]; }
+ });
+ routerScrollPane.setViewportView(routerList);
- presetSelectComboBox.setModel(new
javax.swing.DefaultComboBoxModel(
- new String[] { "last 1 minute", "last 2
minutes",
- "last 5 minutes", "last 10
minutes", "last 30 minutes",
- "last 60 minutes", "last 120
minutes" }));
+ javax.swing.GroupLayout routerPanelLayout = new
javax.swing.GroupLayout(routerPanel);
+ routerPanel.setLayout(routerPanelLayout);
+ routerPanelLayout.setHorizontalGroup(
+
routerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(routerScrollPane,
javax.swing.GroupLayout.DEFAULT_SIZE, 139, Short.MAX_VALUE)
+ );
+ routerPanelLayout.setVerticalGroup(
+
routerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(routerScrollPane,
javax.swing.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)
+ );
- javax.swing.GroupLayout presetPanelLayout = new
javax.swing.GroupLayout(
- presetPanel);
- presetPanel.setLayout(presetPanelLayout);
- presetPanelLayout
- .setHorizontalGroup(presetPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
presetPanelLayout
-
.createSequentialGroup()
-
.addGroup(
-
presetPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
-
.addGroup(
-
presetPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.addComponent(
-
presetSelectComboBox,
-
0,
-
165,
-
Short.MAX_VALUE))
-
.addGroup(
-
presetPanelLayout
-
.createSequentialGroup()
-
.addGap(
-
45,
-
45,
-
45)
-
.addComponent(
-
presetLoadButton,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
98,
-
javax.swing.GroupLayout.PREFERRED_SIZE)))
-
.addContainerGap()));
- presetPanelLayout
- .setVerticalGroup(presetPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
presetPanelLayout
-
.createSequentialGroup()
-
.addComponent(
-
presetSelectComboBox,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addComponent(presetLoadButton)
-
.addContainerGap()));
+
statusPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("status"));
+ statusLabel.setText("OK");
- routerPanel.setBorder(javax.swing.BorderFactory
- .createTitledBorder(javax.swing.BorderFactory
-
.createTitledBorder(javax.swing.BorderFactory
-
.createTitledBorder("Router(s)"))));
- routerList.setModel(new javax.swing.AbstractListModel() {
- /**
- *
- */
- private static final long serialVersionUID =
647728279728807680L;
- String[] strings = { "Arthur", "Zaphod", "Ford",
"Trillian" };
+ javax.swing.GroupLayout statusPanelLayout = new
javax.swing.GroupLayout(statusPanel);
+ statusPanel.setLayout(statusPanelLayout);
+ statusPanelLayout.setHorizontalGroup(
+
statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(statusPanelLayout.createSequentialGroup()
+
.addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+
.addGroup(statusPanelLayout.createSequentialGroup()
+ .addGap(26, 26, 26)
+ .addComponent(statusProgressBar,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+
.addGroup(statusPanelLayout.createSequentialGroup()
+ .addGap(91, 91, 91)
+ .addComponent(statusLabel)))
+ .addContainerGap(31, Short.MAX_VALUE))
+ );
+ statusPanelLayout.setVerticalGroup(
+
statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
statusPanelLayout.createSequentialGroup()
+
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(statusLabel)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(statusProgressBar,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(52, 52, 52))
+ );
- public int getSize() {
- return strings.length;
- }
+ javax.swing.GroupLayout rightMainPanelLayout = new
javax.swing.GroupLayout(rightMainPanel);
+ rightMainPanel.setLayout(rightMainPanelLayout);
+ rightMainPanelLayout.setHorizontalGroup(
+
rightMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(rightMainPanelLayout.createSequentialGroup()
+ .addContainerGap()
+
.addGroup(rightMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(queryTabbedPanel,
javax.swing.GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
+
.addGroup(rightMainPanelLayout.createSequentialGroup()
+ .addComponent(routerPanel,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(StartMomentPanel,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(25, 25, 25)
+ .addComponent(endMomentPanel,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(23, 23, 23)
+
.addGroup(rightMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
+ .addComponent(presetPanel,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
+ .addComponent(statusPanel,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))))
+ .addContainerGap())
+ );
+ rightMainPanelLayout.setVerticalGroup(
+
rightMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(rightMainPanelLayout.createSequentialGroup()
+ .addContainerGap()
+
.addGroup(rightMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
+ .addComponent(StartMomentPanel,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
+
.addGroup(rightMainPanelLayout.createSequentialGroup()
+ .addComponent(presetPanel,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(statusPanel,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addComponent(routerPanel,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(endMomentPanel,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(queryTabbedPanel)
+ .addContainerGap())
+ );
+ masterSplitPane.setRightComponent(rightMainPanel);
- public Object getElementAt(int i) {
- return strings[i];
- }
- });
- routerScrollPane.setViewportView(routerList);
-
- javax.swing.GroupLayout routerPanelLayout = new
javax.swing.GroupLayout(
- routerPanel);
- routerPanel.setLayout(routerPanelLayout);
- routerPanelLayout.setHorizontalGroup(routerPanelLayout
-
.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(routerScrollPane,
-
javax.swing.GroupLayout.DEFAULT_SIZE, 139,
- Short.MAX_VALUE));
- routerPanelLayout.setVerticalGroup(routerPanelLayout
-
.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(routerScrollPane,
-
javax.swing.GroupLayout.DEFAULT_SIZE, 213,
- Short.MAX_VALUE));
-
- statusPanel.setBorder(javax.swing.BorderFactory
- .createTitledBorder("status"));
- statusLabel.setText("OK");
-
- javax.swing.GroupLayout statusPanelLayout = new
javax.swing.GroupLayout(
- statusPanel);
- statusPanel.setLayout(statusPanelLayout);
- statusPanelLayout
- .setHorizontalGroup(statusPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
statusPanelLayout
-
.createSequentialGroup()
-
.addGroup(
-
statusPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
-
.addGroup(
-
statusPanelLayout
-
.createSequentialGroup()
-
.addGap(
-
26,
-
26,
-
26)
-
.addComponent(
-
statusProgressBar,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE))
-
.addGroup(
-
statusPanelLayout
-
.createSequentialGroup()
-
.addGap(
-
91,
-
91,
-
91)
-
.addComponent(
-
statusLabel)))
-
.addContainerGap(31, Short.MAX_VALUE)));
- statusPanelLayout
- .setVerticalGroup(statusPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
javax.swing.GroupLayout.Alignment.TRAILING,
-
statusPanelLayout
-
.createSequentialGroup()
-
.addContainerGap(
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE)
-
.addComponent(statusLabel)
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addComponent(
-
statusProgressBar,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addGap(52, 52, 52)));
-
- javax.swing.GroupLayout rightMainPanelLayout = new
javax.swing.GroupLayout(
- rightMainPanel);
- rightMainPanel.setLayout(rightMainPanelLayout);
- rightMainPanelLayout
- .setHorizontalGroup(rightMainPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
rightMainPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.addGroup(
-
rightMainPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
-
.addComponent(
-
queryTabbedPanel,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
832,
-
Short.MAX_VALUE)
-
.addGroup(
-
rightMainPanelLayout
-
.createSequentialGroup()
-
.addComponent(
-
routerPanel,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE)
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addComponent(
-
StartMomentPanel,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addGap(
-
25,
-
25,
-
25)
-
.addComponent(
-
endMomentPanel,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addGap(
-
23,
-
23,
-
23)
-
.addGroup(
-
rightMainPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING,
-
false)
-
.addComponent(
-
presetPanel,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE)
-
.addComponent(
-
statusPanel,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE))))
-
.addContainerGap()));
- rightMainPanelLayout
- .setVerticalGroup(rightMainPanelLayout
- .createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(
-
rightMainPanelLayout
-
.createSequentialGroup()
-
.addContainerGap()
-
.addGroup(
-
rightMainPanelLayout
-
.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING,
-
false)
-
.addComponent(
-
StartMomentPanel,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE)
-
.addGroup(
-
rightMainPanelLayout
-
.createSequentialGroup()
-
.addComponent(
-
presetPanel,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addComponent(
-
statusPanel,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE))
-
.addComponent(
-
routerPanel,
-
javax.swing.GroupLayout.PREFERRED_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.PREFERRED_SIZE)
-
.addComponent(
-
endMomentPanel,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
javax.swing.GroupLayout.DEFAULT_SIZE,
-
Short.MAX_VALUE))
-
.addPreferredGap(
-
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-
.addComponent(queryTabbedPanel)
-
.addContainerGap()));
- masterSplitPane.setRightComponent(rightMainPanel);
-
- javax.swing.GroupLayout layout = new
javax.swing.GroupLayout(this);
- setLayout(layout);
- layout.setHorizontalGroup(layout.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING).addGroup(
- javax.swing.GroupLayout.Alignment.TRAILING,
-
layout.createSequentialGroup().addContainerGap().addComponent(
- masterSplitPane,
javax.swing.GroupLayout.DEFAULT_SIZE,
- 987,
Short.MAX_VALUE).addContainerGap()));
- layout.setVerticalGroup(layout.createParallelGroup(
-
javax.swing.GroupLayout.Alignment.LEADING).addGroup(
-
layout.createSequentialGroup().addContainerGap().addComponent(
- masterSplitPane,
javax.swing.GroupLayout.DEFAULT_SIZE,
- 690,
Short.MAX_VALUE).addContainerGap()));
- java.awt.Dimension screenSize =
java.awt.Toolkit.getDefaultToolkit()
- .getScreenSize();
- setBounds((screenSize.width - 1021) / 2, (screenSize.height -
744) / 2,
- 1021, 744);
+ javax.swing.GroupLayout layout = new
javax.swing.GroupLayout(this);
+ setLayout(layout);
+ layout.setHorizontalGroup(
+
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
layout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(masterSplitPane,
javax.swing.GroupLayout.DEFAULT_SIZE, 987, Short.MAX_VALUE)
+ .addContainerGap())
+ );
+ layout.setVerticalGroup(
+
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(layout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(masterSplitPane,
javax.swing.GroupLayout.DEFAULT_SIZE, 690, Short.MAX_VALUE)
+ .addContainerGap())
+ );
+ java.awt.Dimension screenSize =
java.awt.Toolkit.getDefaultToolkit().getScreenSize();
+ setBounds((screenSize.width-1021)/2,
(screenSize.height-744)/2, 1021, 744);
}
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/MANIFEST_FLOWSA_plugin.MFT
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/MANIFEST_FLOWSA_plugin.MFT
2007-06-05 09:29:39 UTC (rev 2452)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/MANIFEST_FLOWSA_plugin.MFT
2007-06-06 11:44:36 UTC (rev 2453)
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
+#Class-Path: jars/ui/swing-layout-1.0.jar
Ant-Version: Apache Ant 1.6.2
Specification-Title: PerfsonarUI extensions
Specification-Version: 0.01
- perfsonar: r2453 - in branches/perfsonarui: jars/ui src/org/perfsonar/perfsonarui/flowsa, svnlog, 06/06/2007
Archive powered by MHonArc 2.6.16.