From 5b464c92f140c156e8df13c0d0caeac3e56eef97 Mon Sep 17 00:00:00 2001
From: 7u83 <7u83@maiol.ru>
Date: Mon, 26 Dec 2016 01:32:17 +0100
Subject: [PATCH] Some testing...
---
nbproject/project.properties | 3 +-
src/Gui/MainWin.form | 27 ++++++-----------
src/Gui/MainWin.java | 30 +++++++------------
src/Gui/OrderBook.form | 44 ++++++++++++++++++++++++++++
src/Gui/OrderBook.java | 56 ++++++++++++++++++++++++++++++++++++
5 files changed, 121 insertions(+), 39 deletions(-)
create mode 100644 src/Gui/OrderBook.form
create mode 100644 src/Gui/OrderBook.java
diff --git a/nbproject/project.properties b/nbproject/project.properties
index 00fd43a..ac749d8 100644
--- a/nbproject/project.properties
+++ b/nbproject/project.properties
@@ -31,7 +31,8 @@ endorsed.classpath=
excludes=
includes=**
jar.compress=false
-javac.classpath=
+javac.classpath=\
+ ${libs.absolutelayout.classpath}
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
diff --git a/src/Gui/MainWin.form b/src/Gui/MainWin.form
index c28a2d4..c9613bc 100644
--- a/src/Gui/MainWin.form
+++ b/src/Gui/MainWin.form
@@ -1,6 +1,6 @@
-
diff --git a/src/Gui/MainWin.java b/src/Gui/MainWin.java
index f44e77e..b629a6c 100644
--- a/src/Gui/MainWin.java
+++ b/src/Gui/MainWin.java
@@ -29,12 +29,12 @@ public class MainWin extends javax.swing.JFrame {
@SuppressWarnings("unchecked")
// //GEN-BEGIN:initComponents
private void initComponents() {
+ java.awt.GridBagConstraints gridBagConstraints;
jScrollPane1 = new javax.swing.JScrollPane();
jList1 = new javax.swing.JList<>();
jButton1 = new javax.swing.JButton();
- jButton2 = new javax.swing.JButton();
- jButton3 = new javax.swing.JButton();
+ orderBook2 = new Gui.OrderBook();
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
@@ -55,18 +55,13 @@ public class MainWin extends javax.swing.JFrame {
});
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
- getContentPane().setLayout(new java.awt.GridLayout(4, 64));
-
- jButton2.setText("Helo");
- getContentPane().add(jButton2);
-
- jButton3.setText("jButton3");
- jButton3.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton3ActionPerformed(evt);
- }
- });
- getContentPane().add(jButton3);
+ getContentPane().setLayout(new java.awt.GridBagLayout());
+ gridBagConstraints = new java.awt.GridBagConstraints();
+ gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
+ gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
+ gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
+ gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
+ getContentPane().add(orderBook2, gridBagConstraints);
jMenu1.setText("File");
@@ -97,10 +92,6 @@ public class MainWin extends javax.swing.JFrame {
// TODO add your handling code here:
}//GEN-LAST:event_jButton1ActionPerformed
- private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
- // TODO add your handling code here:
- }//GEN-LAST:event_jButton3ActionPerformed
-
/**
* @param args the command line arguments
*/
@@ -142,13 +133,12 @@ public class MainWin extends javax.swing.JFrame {
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton1;
- private javax.swing.JButton jButton2;
- private javax.swing.JButton jButton3;
private javax.swing.JList jList1;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenu jMenu2;
private javax.swing.JMenuBar jMenuBar1;
private javax.swing.JMenuItem jMenuItem1;
private javax.swing.JScrollPane jScrollPane1;
+ private Gui.OrderBook orderBook2;
// End of variables declaration//GEN-END:variables
}
diff --git a/src/Gui/OrderBook.form b/src/Gui/OrderBook.form
new file mode 100644
index 0000000..76200d0
--- /dev/null
+++ b/src/Gui/OrderBook.form
@@ -0,0 +1,44 @@
+
+
+
diff --git a/src/Gui/OrderBook.java b/src/Gui/OrderBook.java
new file mode 100644
index 0000000..dd5ac20
--- /dev/null
+++ b/src/Gui/OrderBook.java
@@ -0,0 +1,56 @@
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package Gui;
+
+/**
+ *
+ * @author 7u83 <7u83@mail.ru>
+ */
+public class OrderBook extends javax.swing.JPanel {
+
+ /**
+ * Creates new form OrderBook
+ */
+ public OrderBook() {
+ initComponents();
+ }
+
+ /**
+ * This method is called from within the constructor to initialize the form.
+ * WARNING: Do NOT modify this code. The content of this method is always
+ * regenerated by the Form Editor.
+ */
+ @SuppressWarnings("unchecked")
+ // //GEN-BEGIN:initComponents
+ private void initComponents() {
+
+ jScrollPane1 = new javax.swing.JScrollPane();
+ jTable1 = new javax.swing.JTable();
+
+ setLayout(new java.awt.GridLayout());
+
+ jTable1.setModel(new javax.swing.table.DefaultTableModel(
+ new Object [][] {
+ {null, null, null, null},
+ {null, null, null, null},
+ {null, null, null, null},
+ {null, null, null, null}
+ },
+ new String [] {
+ "Title 1", "Title 2", "Title 3", "Title 4"
+ }
+ ));
+ jScrollPane1.setViewportView(jTable1);
+
+ add(jScrollPane1);
+ }// //GEN-END:initComponents
+
+
+ // Variables declaration - do not modify//GEN-BEGIN:variables
+ private javax.swing.JScrollPane jScrollPane1;
+ private javax.swing.JTable jTable1;
+ // End of variables declaration//GEN-END:variables
+}