File src/menu/DirMenu.form changed (mode: 100644) (index bf2efc6..14cf9e1) |
46 |
46 |
<Layout> |
<Layout> |
47 |
47 |
<DimensionLayout dim="0"> |
<DimensionLayout dim="0"> |
48 |
48 |
<Group type="103" groupAlignment="0" attributes="0"> |
<Group type="103" groupAlignment="0" attributes="0"> |
49 |
|
<Group type="102" alignment="0" attributes="0"> |
|
|
49 |
|
<Group type="102" attributes="0"> |
50 |
50 |
<EmptySpace max="-2" attributes="0"/> |
<EmptySpace max="-2" attributes="0"/> |
51 |
51 |
<Group type="103" groupAlignment="0" attributes="0"> |
<Group type="103" groupAlignment="0" attributes="0"> |
52 |
|
<Component id="jLabel1" max="32767" attributes="0"/> |
|
53 |
|
<Group type="102" attributes="0"> |
|
54 |
|
<Component id="jButton1" min="-2" max="-2" attributes="0"/> |
|
55 |
|
<EmptySpace min="-2" pref="78" max="-2" attributes="0"/> |
|
|
52 |
|
<Component id="jLabel1" pref="239" max="32767" attributes="0"/> |
|
53 |
|
<Component id="jLabel2" alignment="0" max="32767" attributes="0"/> |
|
54 |
|
<Group type="102" alignment="0" attributes="0"> |
|
55 |
|
<Component id="jButton3" min="-2" max="-2" attributes="0"/> |
|
56 |
|
<EmptySpace max="32767" attributes="0"/> |
56 |
57 |
<Component id="jButton2" min="-2" max="-2" attributes="0"/> |
<Component id="jButton2" min="-2" max="-2" attributes="0"/> |
57 |
|
<EmptySpace min="0" pref="14" max="32767" attributes="0"/> |
|
58 |
58 |
</Group> |
</Group> |
59 |
|
<Component id="jLabel2" alignment="0" max="32767" attributes="0"/> |
|
60 |
59 |
</Group> |
</Group> |
61 |
60 |
<EmptySpace max="-2" attributes="0"/> |
<EmptySpace max="-2" attributes="0"/> |
62 |
61 |
</Group> |
</Group> |
|
71 |
70 |
<Component id="jLabel2" min="-2" max="-2" attributes="0"/> |
<Component id="jLabel2" min="-2" max="-2" attributes="0"/> |
72 |
71 |
<EmptySpace type="separate" max="-2" attributes="0"/> |
<EmptySpace type="separate" max="-2" attributes="0"/> |
73 |
72 |
<Group type="103" groupAlignment="3" attributes="0"> |
<Group type="103" groupAlignment="3" attributes="0"> |
74 |
|
<Component id="jButton1" alignment="3" min="-2" max="-2" attributes="0"/> |
|
75 |
73 |
<Component id="jButton2" alignment="3" min="-2" max="-2" attributes="0"/> |
<Component id="jButton2" alignment="3" min="-2" max="-2" attributes="0"/> |
|
74 |
|
<Component id="jButton3" alignment="3" min="-2" max="-2" attributes="0"/> |
76 |
75 |
</Group> |
</Group> |
77 |
76 |
<EmptySpace pref="19" max="32767" attributes="0"/> |
<EmptySpace pref="19" max="32767" attributes="0"/> |
78 |
77 |
</Group> |
</Group> |
|
82 |
81 |
<SubComponents> |
<SubComponents> |
83 |
82 |
<Component class="javax.swing.JLabel" name="jLabel1"> |
<Component class="javax.swing.JLabel" name="jLabel1"> |
84 |
83 |
<Properties> |
<Properties> |
85 |
|
<Property name="text" type="java.lang.String" value="Текущая директория:"/> |
|
|
84 |
|
<Property name="text" type="java.lang.String" value="Выберите каталог с исходными файлами:"/> |
86 |
85 |
</Properties> |
</Properties> |
87 |
86 |
</Component> |
</Component> |
88 |
87 |
<Component class="javax.swing.JLabel" name="jLabel2"> |
<Component class="javax.swing.JLabel" name="jLabel2"> |
|
90 |
89 |
<Property name="text" type="java.lang.String" value=" "/> |
<Property name="text" type="java.lang.String" value=" "/> |
91 |
90 |
</Properties> |
</Properties> |
92 |
91 |
</Component> |
</Component> |
93 |
|
<Component class="javax.swing.JButton" name="jButton1"> |
|
|
92 |
|
<Component class="javax.swing.JButton" name="jButton2"> |
94 |
93 |
<Properties> |
<Properties> |
95 |
|
<Property name="text" type="java.lang.String" value="Назад"/> |
|
|
94 |
|
<Property name="text" type="java.lang.String" value="Изменить"/> |
96 |
95 |
</Properties> |
</Properties> |
97 |
96 |
<Events> |
<Events> |
98 |
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/> |
|
|
97 |
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton2ActionPerformed"/> |
99 |
98 |
</Events> |
</Events> |
100 |
99 |
</Component> |
</Component> |
101 |
|
<Component class="javax.swing.JButton" name="jButton2"> |
|
|
100 |
|
<Component class="javax.swing.JButton" name="jButton3"> |
102 |
101 |
<Properties> |
<Properties> |
103 |
|
<Property name="text" type="java.lang.String" value="Изменить"/> |
|
|
102 |
|
<Property name="text" type="java.lang.String" value="Назад"/> |
104 |
103 |
</Properties> |
</Properties> |
105 |
104 |
<Events> |
<Events> |
106 |
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton2ActionPerformed"/> |
|
|
105 |
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton3ActionPerformed"/> |
107 |
106 |
</Events> |
</Events> |
108 |
107 |
</Component> |
</Component> |
109 |
108 |
</SubComponents> |
</SubComponents> |
File src/menu/DirMenu.java changed (mode: 100644) (index 6a651d3..db96852) |
... |
... |
public class DirMenu extends javax.swing.JDialog { |
20 |
20 |
/** |
/** |
21 |
21 |
* Creates new form DirMenu |
* Creates new form DirMenu |
22 |
22 |
*/ |
*/ |
|
23 |
|
|
|
24 |
|
|
23 |
25 |
public DirMenu(MainMenu parent) { |
public DirMenu(MainMenu parent) { |
24 |
26 |
this.parent = parent; |
this.parent = parent; |
25 |
27 |
initComponents(); |
initComponents(); |
26 |
28 |
this.jLabel2.setText(this.parent.getRootDir()); |
this.jLabel2.setText(this.parent.getRootDir()); |
27 |
29 |
setLocationRelativeTo(parent); |
setLocationRelativeTo(parent); |
|
30 |
|
|
28 |
31 |
} |
} |
29 |
32 |
|
|
|
33 |
|
|
30 |
34 |
/** |
/** |
31 |
35 |
* This method is called from within the constructor to initialize the form. |
* This method is called from within the constructor to initialize the form. |
32 |
36 |
* WARNING: Do NOT modify this code. The content of this method is always |
* WARNING: Do NOT modify this code. The content of this method is always |
|
... |
... |
public class DirMenu extends javax.swing.JDialog { |
39 |
43 |
jPanel1 = new javax.swing.JPanel(); |
jPanel1 = new javax.swing.JPanel(); |
40 |
44 |
jLabel1 = new javax.swing.JLabel(); |
jLabel1 = new javax.swing.JLabel(); |
41 |
45 |
jLabel2 = new javax.swing.JLabel(); |
jLabel2 = new javax.swing.JLabel(); |
42 |
|
jButton1 = new javax.swing.JButton(); |
|
43 |
46 |
jButton2 = new javax.swing.JButton(); |
jButton2 = new javax.swing.JButton(); |
|
47 |
|
jButton3 = new javax.swing.JButton(); |
44 |
48 |
|
|
45 |
49 |
setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); |
setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); |
46 |
50 |
|
|
47 |
|
jLabel1.setText("Текущая директория:"); |
|
|
51 |
|
jLabel1.setText("Выберите каталог с исходными файлами:"); |
48 |
52 |
|
|
49 |
53 |
jLabel2.setText(" "); |
jLabel2.setText(" "); |
50 |
54 |
|
|
51 |
|
jButton1.setText("Назад"); |
|
52 |
|
jButton1.addActionListener(new java.awt.event.ActionListener() { |
|
|
55 |
|
jButton2.setText("Изменить"); |
|
56 |
|
jButton2.addActionListener(new java.awt.event.ActionListener() { |
53 |
57 |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
54 |
|
jButton1ActionPerformed(evt); |
|
|
58 |
|
jButton2ActionPerformed(evt); |
55 |
59 |
} |
} |
56 |
60 |
}); |
}); |
57 |
61 |
|
|
58 |
|
jButton2.setText("Изменить"); |
|
59 |
|
jButton2.addActionListener(new java.awt.event.ActionListener() { |
|
|
62 |
|
jButton3.setText("Назад"); |
|
63 |
|
jButton3.addActionListener(new java.awt.event.ActionListener() { |
60 |
64 |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
61 |
|
jButton2ActionPerformed(evt); |
|
|
65 |
|
jButton3ActionPerformed(evt); |
62 |
66 |
} |
} |
63 |
67 |
}); |
}); |
64 |
68 |
|
|
|
... |
... |
public class DirMenu extends javax.swing.JDialog { |
69 |
73 |
.addGroup(jPanel1Layout.createSequentialGroup() |
.addGroup(jPanel1Layout.createSequentialGroup() |
70 |
74 |
.addContainerGap() |
.addContainerGap() |
71 |
75 |
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
72 |
|
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
|
|
76 |
|
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 239, Short.MAX_VALUE) |
|
77 |
|
.addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
73 |
78 |
.addGroup(jPanel1Layout.createSequentialGroup() |
.addGroup(jPanel1Layout.createSequentialGroup() |
74 |
|
.addComponent(jButton1) |
|
75 |
|
.addGap(78, 78, 78) |
|
76 |
|
.addComponent(jButton2) |
|
77 |
|
.addGap(0, 14, Short.MAX_VALUE)) |
|
78 |
|
.addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) |
|
|
79 |
|
.addComponent(jButton3) |
|
80 |
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
|
81 |
|
.addComponent(jButton2))) |
79 |
82 |
.addContainerGap()) |
.addContainerGap()) |
80 |
83 |
); |
); |
81 |
84 |
jPanel1Layout.setVerticalGroup( |
jPanel1Layout.setVerticalGroup( |
|
... |
... |
public class DirMenu extends javax.swing.JDialog { |
87 |
90 |
.addComponent(jLabel2) |
.addComponent(jLabel2) |
88 |
91 |
.addGap(18, 18, 18) |
.addGap(18, 18, 18) |
89 |
92 |
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
90 |
|
.addComponent(jButton1) |
|
91 |
|
.addComponent(jButton2)) |
|
|
93 |
|
.addComponent(jButton2) |
|
94 |
|
.addComponent(jButton3)) |
92 |
95 |
.addContainerGap(19, Short.MAX_VALUE)) |
.addContainerGap(19, Short.MAX_VALUE)) |
93 |
96 |
); |
); |
94 |
97 |
|
|
|
... |
... |
public class DirMenu extends javax.swing.JDialog { |
125 |
128 |
else return; |
else return; |
126 |
129 |
}//GEN-LAST:event_jButton2ActionPerformed |
}//GEN-LAST:event_jButton2ActionPerformed |
127 |
130 |
|
|
128 |
|
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed |
|
|
131 |
|
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed |
129 |
132 |
// back |
// back |
130 |
133 |
this.setVisible(false); |
this.setVisible(false); |
131 |
|
parent.setVisible(true); |
|
132 |
|
}//GEN-LAST:event_jButton1ActionPerformed |
|
133 |
|
|
|
|
134 |
|
parent.setVisible(true); |
|
135 |
|
}//GEN-LAST:event_jButton3ActionPerformed |
|
136 |
|
|
134 |
137 |
|
|
135 |
138 |
// Variables declaration - do not modify//GEN-BEGIN:variables |
// Variables declaration - do not modify//GEN-BEGIN:variables |
136 |
|
private javax.swing.JButton jButton1; |
|
137 |
139 |
private javax.swing.JButton jButton2; |
private javax.swing.JButton jButton2; |
|
140 |
|
private javax.swing.JButton jButton3; |
138 |
141 |
private javax.swing.JLabel jLabel1; |
private javax.swing.JLabel jLabel1; |
139 |
142 |
private javax.swing.JLabel jLabel2; |
private javax.swing.JLabel jLabel2; |
140 |
143 |
private javax.swing.JPanel jPanel1; |
private javax.swing.JPanel jPanel1; |
File src/menu/InitialDir.form copied from file src/menu/DirMenu.form (similarity 86%) (mode: 100644) (index bf2efc6..31722cb) |
46 |
46 |
<Layout> |
<Layout> |
47 |
47 |
<DimensionLayout dim="0"> |
<DimensionLayout dim="0"> |
48 |
48 |
<Group type="103" groupAlignment="0" attributes="0"> |
<Group type="103" groupAlignment="0" attributes="0"> |
49 |
|
<Group type="102" alignment="0" attributes="0"> |
|
|
49 |
|
<Group type="102" attributes="0"> |
50 |
50 |
<EmptySpace max="-2" attributes="0"/> |
<EmptySpace max="-2" attributes="0"/> |
51 |
51 |
<Group type="103" groupAlignment="0" attributes="0"> |
<Group type="103" groupAlignment="0" attributes="0"> |
52 |
|
<Component id="jLabel1" max="32767" attributes="0"/> |
|
53 |
|
<Group type="102" attributes="0"> |
|
54 |
|
<Component id="jButton1" min="-2" max="-2" attributes="0"/> |
|
55 |
|
<EmptySpace min="-2" pref="78" max="-2" attributes="0"/> |
|
|
52 |
|
<Component id="jLabel1" pref="239" max="32767" attributes="0"/> |
|
53 |
|
<Component id="jLabel2" alignment="0" max="32767" attributes="0"/> |
|
54 |
|
<Group type="102" alignment="0" attributes="0"> |
56 |
55 |
<Component id="jButton2" min="-2" max="-2" attributes="0"/> |
<Component id="jButton2" min="-2" max="-2" attributes="0"/> |
57 |
|
<EmptySpace min="0" pref="14" max="32767" attributes="0"/> |
|
|
56 |
|
<EmptySpace max="32767" attributes="0"/> |
|
57 |
|
<Component id="jButton3" min="-2" max="-2" attributes="0"/> |
58 |
58 |
</Group> |
</Group> |
59 |
|
<Component id="jLabel2" alignment="0" max="32767" attributes="0"/> |
|
60 |
59 |
</Group> |
</Group> |
61 |
60 |
<EmptySpace max="-2" attributes="0"/> |
<EmptySpace max="-2" attributes="0"/> |
62 |
61 |
</Group> |
</Group> |
|
71 |
70 |
<Component id="jLabel2" min="-2" max="-2" attributes="0"/> |
<Component id="jLabel2" min="-2" max="-2" attributes="0"/> |
72 |
71 |
<EmptySpace type="separate" max="-2" attributes="0"/> |
<EmptySpace type="separate" max="-2" attributes="0"/> |
73 |
72 |
<Group type="103" groupAlignment="3" attributes="0"> |
<Group type="103" groupAlignment="3" attributes="0"> |
74 |
|
<Component id="jButton1" alignment="3" min="-2" max="-2" attributes="0"/> |
|
75 |
73 |
<Component id="jButton2" alignment="3" min="-2" max="-2" attributes="0"/> |
<Component id="jButton2" alignment="3" min="-2" max="-2" attributes="0"/> |
|
74 |
|
<Component id="jButton3" alignment="3" min="-2" max="-2" attributes="0"/> |
76 |
75 |
</Group> |
</Group> |
77 |
76 |
<EmptySpace pref="19" max="32767" attributes="0"/> |
<EmptySpace pref="19" max="32767" attributes="0"/> |
78 |
77 |
</Group> |
</Group> |
|
82 |
81 |
<SubComponents> |
<SubComponents> |
83 |
82 |
<Component class="javax.swing.JLabel" name="jLabel1"> |
<Component class="javax.swing.JLabel" name="jLabel1"> |
84 |
83 |
<Properties> |
<Properties> |
85 |
|
<Property name="text" type="java.lang.String" value="Текущая директория:"/> |
|
|
84 |
|
<Property name="text" type="java.lang.String" value="Выберите каталог с исходными файлами:"/> |
86 |
85 |
</Properties> |
</Properties> |
87 |
86 |
</Component> |
</Component> |
88 |
87 |
<Component class="javax.swing.JLabel" name="jLabel2"> |
<Component class="javax.swing.JLabel" name="jLabel2"> |
|
90 |
89 |
<Property name="text" type="java.lang.String" value=" "/> |
<Property name="text" type="java.lang.String" value=" "/> |
91 |
90 |
</Properties> |
</Properties> |
92 |
91 |
</Component> |
</Component> |
93 |
|
<Component class="javax.swing.JButton" name="jButton1"> |
|
|
92 |
|
<Component class="javax.swing.JButton" name="jButton2"> |
94 |
93 |
<Properties> |
<Properties> |
95 |
|
<Property name="text" type="java.lang.String" value="Назад"/> |
|
|
94 |
|
<Property name="text" type="java.lang.String" value="Изменить"/> |
96 |
95 |
</Properties> |
</Properties> |
97 |
96 |
<Events> |
<Events> |
98 |
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/> |
|
|
97 |
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton2ActionPerformed"/> |
99 |
98 |
</Events> |
</Events> |
100 |
99 |
</Component> |
</Component> |
101 |
|
<Component class="javax.swing.JButton" name="jButton2"> |
|
|
100 |
|
<Component class="javax.swing.JButton" name="jButton3"> |
102 |
101 |
<Properties> |
<Properties> |
103 |
|
<Property name="text" type="java.lang.String" value="Изменить"/> |
|
|
102 |
|
<Property name="text" type="java.lang.String" value="Далее"/> |
104 |
103 |
</Properties> |
</Properties> |
105 |
104 |
<Events> |
<Events> |
106 |
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton2ActionPerformed"/> |
|
|
105 |
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton3ActionPerformed"/> |
107 |
106 |
</Events> |
</Events> |
108 |
107 |
</Component> |
</Component> |
109 |
108 |
</SubComponents> |
</SubComponents> |
File src/menu/InitialDir.java copied from file src/menu/DirMenu.java (similarity 62%) (mode: 100644) (index 6a651d3..cd122a9) |
... |
... |
import javax.swing.JFileChooser; |
12 |
12 |
* |
* |
13 |
13 |
* @author tassy |
* @author tassy |
14 |
14 |
*/ |
*/ |
15 |
|
public class DirMenu extends javax.swing.JDialog { |
|
|
15 |
|
public class InitialDir extends javax.swing.JDialog { |
16 |
16 |
|
|
17 |
|
private MainMenu parent = null; |
|
|
17 |
|
private String path = null; |
18 |
18 |
private JFileChooser ch = new JFileChooser(); |
private JFileChooser ch = new JFileChooser(); |
19 |
19 |
|
|
20 |
20 |
/** |
/** |
21 |
21 |
* Creates new form DirMenu |
* Creates new form DirMenu |
22 |
22 |
*/ |
*/ |
23 |
|
public DirMenu(MainMenu parent) { |
|
24 |
|
this.parent = parent; |
|
|
23 |
|
|
|
24 |
|
public InitialDir() { |
|
25 |
|
|
25 |
26 |
initComponents(); |
initComponents(); |
26 |
|
this.jLabel2.setText(this.parent.getRootDir()); |
|
27 |
|
setLocationRelativeTo(parent); |
|
|
27 |
|
this.jLabel2.setText("D:/example/"); |
|
28 |
|
setLocationRelativeTo(null); |
28 |
29 |
} |
} |
|
30 |
|
|
|
31 |
|
|
29 |
32 |
|
|
|
33 |
|
|
30 |
34 |
/** |
/** |
31 |
35 |
* This method is called from within the constructor to initialize the form. |
* This method is called from within the constructor to initialize the form. |
32 |
36 |
* WARNING: Do NOT modify this code. The content of this method is always |
* WARNING: Do NOT modify this code. The content of this method is always |
|
... |
... |
public class DirMenu extends javax.swing.JDialog { |
39 |
43 |
jPanel1 = new javax.swing.JPanel(); |
jPanel1 = new javax.swing.JPanel(); |
40 |
44 |
jLabel1 = new javax.swing.JLabel(); |
jLabel1 = new javax.swing.JLabel(); |
41 |
45 |
jLabel2 = new javax.swing.JLabel(); |
jLabel2 = new javax.swing.JLabel(); |
42 |
|
jButton1 = new javax.swing.JButton(); |
|
43 |
46 |
jButton2 = new javax.swing.JButton(); |
jButton2 = new javax.swing.JButton(); |
|
47 |
|
jButton3 = new javax.swing.JButton(); |
44 |
48 |
|
|
45 |
49 |
setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); |
setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); |
46 |
50 |
|
|
47 |
|
jLabel1.setText("Текущая директория:"); |
|
|
51 |
|
jLabel1.setText("Выберите каталог с исходными файлами:"); |
48 |
52 |
|
|
49 |
53 |
jLabel2.setText(" "); |
jLabel2.setText(" "); |
50 |
54 |
|
|
51 |
|
jButton1.setText("Назад"); |
|
52 |
|
jButton1.addActionListener(new java.awt.event.ActionListener() { |
|
|
55 |
|
jButton2.setText("Изменить"); |
|
56 |
|
jButton2.addActionListener(new java.awt.event.ActionListener() { |
53 |
57 |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
54 |
|
jButton1ActionPerformed(evt); |
|
|
58 |
|
jButton2ActionPerformed(evt); |
55 |
59 |
} |
} |
56 |
60 |
}); |
}); |
57 |
61 |
|
|
58 |
|
jButton2.setText("Изменить"); |
|
59 |
|
jButton2.addActionListener(new java.awt.event.ActionListener() { |
|
|
62 |
|
jButton3.setText("Далее"); |
|
63 |
|
jButton3.addActionListener(new java.awt.event.ActionListener() { |
60 |
64 |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
61 |
|
jButton2ActionPerformed(evt); |
|
|
65 |
|
jButton3ActionPerformed(evt); |
62 |
66 |
} |
} |
63 |
67 |
}); |
}); |
64 |
68 |
|
|
|
... |
... |
public class DirMenu extends javax.swing.JDialog { |
69 |
73 |
.addGroup(jPanel1Layout.createSequentialGroup() |
.addGroup(jPanel1Layout.createSequentialGroup() |
70 |
74 |
.addContainerGap() |
.addContainerGap() |
71 |
75 |
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
72 |
|
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
|
|
76 |
|
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 239, Short.MAX_VALUE) |
|
77 |
|
.addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
73 |
78 |
.addGroup(jPanel1Layout.createSequentialGroup() |
.addGroup(jPanel1Layout.createSequentialGroup() |
74 |
|
.addComponent(jButton1) |
|
75 |
|
.addGap(78, 78, 78) |
|
76 |
79 |
.addComponent(jButton2) |
.addComponent(jButton2) |
77 |
|
.addGap(0, 14, Short.MAX_VALUE)) |
|
78 |
|
.addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) |
|
|
80 |
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
|
81 |
|
.addComponent(jButton3))) |
79 |
82 |
.addContainerGap()) |
.addContainerGap()) |
80 |
83 |
); |
); |
81 |
84 |
jPanel1Layout.setVerticalGroup( |
jPanel1Layout.setVerticalGroup( |
|
... |
... |
public class DirMenu extends javax.swing.JDialog { |
87 |
90 |
.addComponent(jLabel2) |
.addComponent(jLabel2) |
88 |
91 |
.addGap(18, 18, 18) |
.addGap(18, 18, 18) |
89 |
92 |
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
90 |
|
.addComponent(jButton1) |
|
91 |
|
.addComponent(jButton2)) |
|
|
93 |
|
.addComponent(jButton2) |
|
94 |
|
.addComponent(jButton3)) |
92 |
95 |
.addContainerGap(19, Short.MAX_VALUE)) |
.addContainerGap(19, Short.MAX_VALUE)) |
93 |
96 |
); |
); |
94 |
97 |
|
|
|
... |
... |
public class DirMenu extends javax.swing.JDialog { |
120 |
123 |
int ret = ch.showOpenDialog(this); |
int ret = ch.showOpenDialog(this); |
121 |
124 |
if(ret == JFileChooser.APPROVE_OPTION) { |
if(ret == JFileChooser.APPROVE_OPTION) { |
122 |
125 |
this.jLabel2.setText(ch.getSelectedFile().getAbsolutePath()+ "\\"); |
this.jLabel2.setText(ch.getSelectedFile().getAbsolutePath()+ "\\"); |
123 |
|
parent.refresh(ch.getSelectedFile().getAbsolutePath()+ "\\" ); |
|
|
126 |
|
path = ch.getSelectedFile().getAbsolutePath()+ "\\"; |
124 |
127 |
} |
} |
125 |
128 |
else return; |
else return; |
126 |
129 |
}//GEN-LAST:event_jButton2ActionPerformed |
}//GEN-LAST:event_jButton2ActionPerformed |
127 |
130 |
|
|
128 |
|
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed |
|
129 |
|
// back |
|
|
131 |
|
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed |
|
132 |
|
// next |
130 |
133 |
this.setVisible(false); |
this.setVisible(false); |
131 |
|
parent.setVisible(true); |
|
132 |
|
}//GEN-LAST:event_jButton1ActionPerformed |
|
|
134 |
|
new MainMenu(path).setVisible(true); |
|
135 |
|
}//GEN-LAST:event_jButton3ActionPerformed |
|
136 |
|
|
|
137 |
|
public static void main(String args[]) { |
|
138 |
|
/* Set the Nimbus look and feel */ |
|
139 |
|
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> |
|
140 |
|
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. |
|
141 |
|
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html |
|
142 |
|
*/ |
|
143 |
|
try { |
|
144 |
|
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { |
|
145 |
|
if ("Nimbus".equals(info.getName())) { |
|
146 |
|
javax.swing.UIManager.setLookAndFeel(info.getClassName()); |
|
147 |
|
break; |
|
148 |
|
} |
|
149 |
|
} |
|
150 |
|
} catch (ClassNotFoundException ex) { |
|
151 |
|
java.util.logging.Logger.getLogger(MainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); |
|
152 |
|
} catch (InstantiationException ex) { |
|
153 |
|
java.util.logging.Logger.getLogger(MainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); |
|
154 |
|
} catch (IllegalAccessException ex) { |
|
155 |
|
java.util.logging.Logger.getLogger(MainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); |
|
156 |
|
} catch (javax.swing.UnsupportedLookAndFeelException ex) { |
|
157 |
|
java.util.logging.Logger.getLogger(MainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); |
|
158 |
|
} |
|
159 |
|
//</editor-fold> |
133 |
160 |
|
|
|
161 |
|
/* Create and display the form */ |
|
162 |
|
java.awt.EventQueue.invokeLater(new Runnable() { |
|
163 |
|
public void run() { |
|
164 |
|
new InitialDir().setVisible(true); |
|
165 |
|
} |
|
166 |
|
}); |
|
167 |
|
} |
134 |
168 |
|
|
135 |
169 |
// Variables declaration - do not modify//GEN-BEGIN:variables |
// Variables declaration - do not modify//GEN-BEGIN:variables |
136 |
|
private javax.swing.JButton jButton1; |
|
137 |
170 |
private javax.swing.JButton jButton2; |
private javax.swing.JButton jButton2; |
|
171 |
|
private javax.swing.JButton jButton3; |
138 |
172 |
private javax.swing.JLabel jLabel1; |
private javax.swing.JLabel jLabel1; |
139 |
173 |
private javax.swing.JLabel jLabel2; |
private javax.swing.JLabel jLabel2; |
140 |
174 |
private javax.swing.JPanel jPanel1; |
private javax.swing.JPanel jPanel1; |
File src/menu/MainMenu.java changed (mode: 100644) (index c4a0d74..ffebc25) |
... |
... |
import lleak.helpers.*; |
13 |
13 |
*/ |
*/ |
14 |
14 |
public class MainMenu extends javax.swing.JFrame { |
public class MainMenu extends javax.swing.JFrame { |
15 |
15 |
|
|
16 |
|
private String rootDir = "D:/example/"; |
|
|
16 |
|
|
|
17 |
|
private String rootDir = null; |
17 |
18 |
private ConfReader cr; |
private ConfReader cr; |
18 |
19 |
|
|
19 |
20 |
/** |
/** |
20 |
21 |
* Creates new form MainMenu |
* Creates new form MainMenu |
21 |
22 |
*/ |
*/ |
22 |
|
public MainMenu() { |
|
|
23 |
|
public MainMenu(String dir) { |
|
24 |
|
this.rootDir = dir; |
23 |
25 |
initComponents(); |
initComponents(); |
24 |
26 |
setLocationRelativeTo(null); |
setLocationRelativeTo(null); |
25 |
27 |
cr = new ConfReader(rootDir + "mainconf.txt"); |
cr = new ConfReader(rootDir + "mainconf.txt"); |
|
... |
... |
public class MainMenu extends javax.swing.JFrame { |
145 |
147 |
|
|
146 |
148 |
}//GEN-LAST:event_jButton1ActionPerformed |
}//GEN-LAST:event_jButton1ActionPerformed |
147 |
149 |
|
|
148 |
|
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed |
|
149 |
|
// dir |
|
150 |
|
|
|
151 |
|
this.setVisible(false); |
|
152 |
|
new DirMenu(this).setVisible(true); |
|
153 |
|
|
|
154 |
|
|
|
155 |
|
}//GEN-LAST:event_jButton4ActionPerformed |
|
156 |
|
|
|
157 |
150 |
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed |
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed |
158 |
151 |
// time |
// time |
159 |
152 |
this.setVisible(false); |
this.setVisible(false); |
|
... |
... |
public class MainMenu extends javax.swing.JFrame { |
166 |
159 |
new ParamDynamicsMenu(this).setVisible(true); |
new ParamDynamicsMenu(this).setVisible(true); |
167 |
160 |
}//GEN-LAST:event_jButton2ActionPerformed |
}//GEN-LAST:event_jButton2ActionPerformed |
168 |
161 |
|
|
169 |
|
/** |
|
170 |
|
* @param args the command line arguments |
|
171 |
|
*/ |
|
172 |
|
public static void main(String args[]) { |
|
173 |
|
/* Set the Nimbus look and feel */ |
|
174 |
|
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> |
|
175 |
|
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. |
|
176 |
|
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html |
|
177 |
|
*/ |
|
178 |
|
try { |
|
179 |
|
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { |
|
180 |
|
if ("Nimbus".equals(info.getName())) { |
|
181 |
|
javax.swing.UIManager.setLookAndFeel(info.getClassName()); |
|
182 |
|
break; |
|
183 |
|
} |
|
184 |
|
} |
|
185 |
|
} catch (ClassNotFoundException ex) { |
|
186 |
|
java.util.logging.Logger.getLogger(MainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); |
|
187 |
|
} catch (InstantiationException ex) { |
|
188 |
|
java.util.logging.Logger.getLogger(MainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); |
|
189 |
|
} catch (IllegalAccessException ex) { |
|
190 |
|
java.util.logging.Logger.getLogger(MainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); |
|
191 |
|
} catch (javax.swing.UnsupportedLookAndFeelException ex) { |
|
192 |
|
java.util.logging.Logger.getLogger(MainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); |
|
193 |
|
} |
|
194 |
|
//</editor-fold> |
|
195 |
|
|
|
196 |
|
/* Create and display the form */ |
|
197 |
|
java.awt.EventQueue.invokeLater(new Runnable() { |
|
198 |
|
public void run() { |
|
199 |
|
new MainMenu().setVisible(true); |
|
200 |
|
} |
|
201 |
|
}); |
|
202 |
|
} |
|
|
162 |
|
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed |
|
163 |
|
// dir |
|
164 |
|
|
|
165 |
|
this.setVisible(false); |
|
166 |
|
new DirMenu(this).setVisible(true); |
|
167 |
|
|
|
168 |
|
}//GEN-LAST:event_jButton4ActionPerformed |
|
169 |
|
|
|
170 |
|
|
203 |
171 |
|
|
204 |
172 |
// Variables declaration - do not modify//GEN-BEGIN:variables |
// Variables declaration - do not modify//GEN-BEGIN:variables |
205 |
173 |
private javax.swing.JButton jButton1; |
private javax.swing.JButton jButton1; |
File src/menu/ParamDynamicsMenu.form changed (mode: 100644) (index 7b0a707..e6c3cfe) |
32 |
32 |
</DimensionLayout> |
</DimensionLayout> |
33 |
33 |
<DimensionLayout dim="1"> |
<DimensionLayout dim="1"> |
34 |
34 |
<Group type="103" groupAlignment="0" attributes="0"> |
<Group type="103" groupAlignment="0" attributes="0"> |
35 |
|
<Group type="102" alignment="1" attributes="0"> |
|
|
35 |
|
<Group type="102" alignment="0" attributes="0"> |
36 |
36 |
<EmptySpace max="-2" attributes="0"/> |
<EmptySpace max="-2" attributes="0"/> |
37 |
37 |
<Component id="jPanel1" max="32767" attributes="0"/> |
<Component id="jPanel1" max="32767" attributes="0"/> |
38 |
38 |
<EmptySpace max="-2" attributes="0"/> |
<EmptySpace max="-2" attributes="0"/> |
|
46 |
46 |
<Layout> |
<Layout> |
47 |
47 |
<DimensionLayout dim="0"> |
<DimensionLayout dim="0"> |
48 |
48 |
<Group type="103" groupAlignment="0" attributes="0"> |
<Group type="103" groupAlignment="0" attributes="0"> |
49 |
|
<Group type="102" alignment="0" attributes="0"> |
|
|
49 |
|
<Group type="102" attributes="0"> |
50 |
50 |
<EmptySpace max="-2" attributes="0"/> |
<EmptySpace max="-2" attributes="0"/> |
51 |
51 |
<Group type="103" groupAlignment="0" attributes="0"> |
<Group type="103" groupAlignment="0" attributes="0"> |
52 |
52 |
<Component id="jLabel1" alignment="0" max="32767" attributes="0"/> |
<Component id="jLabel1" alignment="0" max="32767" attributes="0"/> |
53 |
53 |
<Group type="102" alignment="0" attributes="0"> |
<Group type="102" alignment="0" attributes="0"> |
54 |
|
<Component id="jScrollPane1" min="-2" pref="105" max="-2" attributes="0"/> |
|
|
54 |
|
<Component id="jButton1" min="-2" max="-2" attributes="0"/> |
|
55 |
|
<EmptySpace max="32767" attributes="0"/> |
|
56 |
|
<Component id="jButton4" min="-2" max="-2" attributes="0"/> |
|
57 |
|
</Group> |
|
58 |
|
<Component id="jLabel2" alignment="1" max="32767" attributes="0"/> |
|
59 |
|
<Group type="102" alignment="0" attributes="0"> |
|
60 |
|
<Component id="jScrollPane3" min="-2" pref="105" max="-2" attributes="0"/> |
55 |
61 |
<EmptySpace type="unrelated" max="-2" attributes="0"/> |
<EmptySpace type="unrelated" max="-2" attributes="0"/> |
56 |
62 |
<Group type="103" groupAlignment="0" attributes="0"> |
<Group type="103" groupAlignment="0" attributes="0"> |
57 |
|
<Component id="jButton2" alignment="0" min="-2" max="-2" attributes="0"/> |
|
58 |
|
<Component id="jButton3" alignment="0" min="-2" max="-2" attributes="0"/> |
|
|
63 |
|
<Component id="jButton5" min="-2" max="-2" attributes="0"/> |
|
64 |
|
<Component id="jButton6" min="-2" max="-2" attributes="0"/> |
59 |
65 |
</Group> |
</Group> |
60 |
|
<EmptySpace type="separate" max="-2" attributes="0"/> |
|
61 |
|
<Component id="jScrollPane2" min="-2" pref="102" max="-2" attributes="0"/> |
|
62 |
|
<EmptySpace min="0" pref="0" max="32767" attributes="0"/> |
|
63 |
|
</Group> |
|
64 |
|
<Group type="102" alignment="0" attributes="0"> |
|
65 |
|
<Component id="jButton1" min="-2" max="-2" attributes="0"/> |
|
66 |
66 |
<EmptySpace max="32767" attributes="0"/> |
<EmptySpace max="32767" attributes="0"/> |
67 |
|
<Component id="jButton4" min="-2" max="-2" attributes="0"/> |
|
|
67 |
|
<Component id="jScrollPane4" min="-2" pref="105" max="-2" attributes="0"/> |
|
68 |
|
</Group> |
|
69 |
|
<Group type="102" attributes="0"> |
|
70 |
|
<Group type="103" groupAlignment="0" attributes="0"> |
|
71 |
|
<Group type="102" alignment="0" attributes="0"> |
|
72 |
|
<Component id="jScrollPane1" min="-2" pref="105" max="-2" attributes="0"/> |
|
73 |
|
<EmptySpace type="unrelated" max="-2" attributes="0"/> |
|
74 |
|
<Group type="103" groupAlignment="0" attributes="0"> |
|
75 |
|
<Component id="jButton2" alignment="0" min="-2" max="-2" attributes="0"/> |
|
76 |
|
<Component id="jButton3" alignment="0" min="-2" max="-2" attributes="0"/> |
|
77 |
|
</Group> |
|
78 |
|
<EmptySpace type="separate" max="-2" attributes="0"/> |
|
79 |
|
<Component id="jScrollPane2" min="-2" pref="102" max="-2" attributes="0"/> |
|
80 |
|
</Group> |
|
81 |
|
<Group type="102" alignment="0" attributes="0"> |
|
82 |
|
<Component id="jButton7" min="-2" max="-2" attributes="0"/> |
|
83 |
|
<EmptySpace type="unrelated" max="-2" attributes="0"/> |
|
84 |
|
<Component id="jButton8" min="-2" max="-2" attributes="0"/> |
|
85 |
|
</Group> |
|
86 |
|
</Group> |
|
87 |
|
<EmptySpace min="0" pref="0" max="32767" attributes="0"/> |
68 |
88 |
</Group> |
</Group> |
69 |
89 |
</Group> |
</Group> |
70 |
90 |
<EmptySpace max="-2" attributes="0"/> |
<EmptySpace max="-2" attributes="0"/> |
|
90 |
110 |
</Group> |
</Group> |
91 |
111 |
</Group> |
</Group> |
92 |
112 |
</Group> |
</Group> |
93 |
|
<EmptySpace pref="68" max="32767" attributes="0"/> |
|
94 |
|
<Group type="103" groupAlignment="3" attributes="0"> |
|
95 |
|
<Component id="jButton1" alignment="3" min="-2" max="-2" attributes="0"/> |
|
96 |
|
<Component id="jButton4" alignment="3" min="-2" max="-2" attributes="0"/> |
|
|
113 |
|
<EmptySpace type="separate" max="-2" attributes="0"/> |
|
114 |
|
<Component id="jLabel2" min="-2" max="-2" attributes="0"/> |
|
115 |
|
<Group type="103" groupAlignment="1" attributes="0"> |
|
116 |
|
<Group type="102" alignment="1" attributes="0"> |
|
117 |
|
<EmptySpace min="-2" pref="50" max="-2" attributes="0"/> |
|
118 |
|
<Component id="jButton5" min="-2" max="-2" attributes="0"/> |
|
119 |
|
<EmptySpace type="separate" max="-2" attributes="0"/> |
|
120 |
|
<Component id="jButton6" min="-2" max="-2" attributes="0"/> |
|
121 |
|
<EmptySpace max="32767" attributes="0"/> |
|
122 |
|
</Group> |
|
123 |
|
<Group type="102" alignment="1" attributes="0"> |
|
124 |
|
<EmptySpace type="unrelated" max="-2" attributes="0"/> |
|
125 |
|
<Group type="103" groupAlignment="1" attributes="0"> |
|
126 |
|
<Component id="jScrollPane4" pref="145" max="32767" attributes="0"/> |
|
127 |
|
<Component id="jScrollPane3" max="32767" attributes="0"/> |
|
128 |
|
</Group> |
|
129 |
|
<EmptySpace type="unrelated" max="-2" attributes="0"/> |
|
130 |
|
<Group type="103" groupAlignment="3" attributes="0"> |
|
131 |
|
<Component id="jButton7" alignment="3" min="-2" max="-2" attributes="0"/> |
|
132 |
|
<Component id="jButton8" alignment="3" min="-2" max="-2" attributes="0"/> |
|
133 |
|
</Group> |
|
134 |
|
<EmptySpace type="separate" max="-2" attributes="0"/> |
|
135 |
|
<Group type="103" groupAlignment="3" attributes="0"> |
|
136 |
|
<Component id="jButton1" alignment="3" min="-2" max="-2" attributes="0"/> |
|
137 |
|
<Component id="jButton4" alignment="3" min="-2" max="-2" attributes="0"/> |
|
138 |
|
</Group> |
|
139 |
|
<EmptySpace min="-2" pref="17" max="-2" attributes="0"/> |
|
140 |
|
</Group> |
97 |
141 |
</Group> |
</Group> |
98 |
|
<EmptySpace max="-2" attributes="0"/> |
|
99 |
142 |
</Group> |
</Group> |
100 |
143 |
</Group> |
</Group> |
101 |
144 |
</DimensionLayout> |
</DimensionLayout> |
|
185 |
228 |
<Property name="text" type="java.lang.String" value="OK"/> |
<Property name="text" type="java.lang.String" value="OK"/> |
186 |
229 |
</Properties> |
</Properties> |
187 |
230 |
</Component> |
</Component> |
|
231 |
|
<Component class="javax.swing.JLabel" name="jLabel2"> |
|
232 |
|
<Properties> |
|
233 |
|
<Property name="text" type="java.lang.String" value="Выберите переменные для отображения:"/> |
|
234 |
|
</Properties> |
|
235 |
|
</Component> |
|
236 |
|
<Container class="javax.swing.JScrollPane" name="jScrollPane3"> |
|
237 |
|
<AuxValues> |
|
238 |
|
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> |
|
239 |
|
</AuxValues> |
|
240 |
|
|
|
241 |
|
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> |
|
242 |
|
<SubComponents> |
|
243 |
|
<Component class="javax.swing.JList" name="jList3"> |
|
244 |
|
<Properties> |
|
245 |
|
<Property name="model" type="javax.swing.ListModel" editor="org.netbeans.modules.form.editors2.ListModelEditor"> |
|
246 |
|
<StringArray count="5"> |
|
247 |
|
<StringItem index="0" value="Item 1"/> |
|
248 |
|
<StringItem index="1" value="Item 2"/> |
|
249 |
|
<StringItem index="2" value="Item 3"/> |
|
250 |
|
<StringItem index="3" value="Item 4"/> |
|
251 |
|
<StringItem index="4" value="Item 5"/> |
|
252 |
|
</StringArray> |
|
253 |
|
</Property> |
|
254 |
|
</Properties> |
|
255 |
|
<AuxValues> |
|
256 |
|
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/> |
|
257 |
|
</AuxValues> |
|
258 |
|
</Component> |
|
259 |
|
</SubComponents> |
|
260 |
|
</Container> |
|
261 |
|
<Component class="javax.swing.JButton" name="jButton5"> |
|
262 |
|
<Properties> |
|
263 |
|
<Property name="text" type="java.lang.String" value=">>"/> |
|
264 |
|
</Properties> |
|
265 |
|
<Events> |
|
266 |
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton5ActionPerformed"/> |
|
267 |
|
</Events> |
|
268 |
|
</Component> |
|
269 |
|
<Component class="javax.swing.JButton" name="jButton6"> |
|
270 |
|
<Properties> |
|
271 |
|
<Property name="text" type="java.lang.String" value="<<"/> |
|
272 |
|
</Properties> |
|
273 |
|
<Events> |
|
274 |
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton6ActionPerformed"/> |
|
275 |
|
</Events> |
|
276 |
|
</Component> |
|
277 |
|
<Container class="javax.swing.JScrollPane" name="jScrollPane4"> |
|
278 |
|
<AuxValues> |
|
279 |
|
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> |
|
280 |
|
</AuxValues> |
|
281 |
|
|
|
282 |
|
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> |
|
283 |
|
<SubComponents> |
|
284 |
|
<Component class="javax.swing.JList" name="jList4"> |
|
285 |
|
<Properties> |
|
286 |
|
<Property name="model" type="javax.swing.ListModel" editor="org.netbeans.modules.form.editors2.ListModelEditor"> |
|
287 |
|
<StringArray count="5"> |
|
288 |
|
<StringItem index="0" value="Item 1"/> |
|
289 |
|
<StringItem index="1" value="Item 2"/> |
|
290 |
|
<StringItem index="2" value="Item 3"/> |
|
291 |
|
<StringItem index="3" value="Item 4"/> |
|
292 |
|
<StringItem index="4" value="Item 5"/> |
|
293 |
|
</StringArray> |
|
294 |
|
</Property> |
|
295 |
|
</Properties> |
|
296 |
|
<AuxValues> |
|
297 |
|
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/> |
|
298 |
|
</AuxValues> |
|
299 |
|
</Component> |
|
300 |
|
</SubComponents> |
|
301 |
|
</Container> |
|
302 |
|
<Component class="javax.swing.JButton" name="jButton7"> |
|
303 |
|
<Properties> |
|
304 |
|
<Property name="text" type="java.lang.String" value="Очистить выбор"/> |
|
305 |
|
</Properties> |
|
306 |
|
<Events> |
|
307 |
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton7ActionPerformed"/> |
|
308 |
|
</Events> |
|
309 |
|
</Component> |
|
310 |
|
<Component class="javax.swing.JButton" name="jButton8"> |
|
311 |
|
<Properties> |
|
312 |
|
<Property name="text" type="java.lang.String" value="Выбрать всё"/> |
|
313 |
|
</Properties> |
|
314 |
|
<Events> |
|
315 |
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton8ActionPerformed"/> |
|
316 |
|
</Events> |
|
317 |
|
</Component> |
188 |
318 |
</SubComponents> |
</SubComponents> |
189 |
319 |
</Container> |
</Container> |
190 |
320 |
</SubComponents> |
</SubComponents> |
File src/menu/ParamDynamicsMenu.java changed (mode: 100644) (index 1beabfe..03b6827) |
... |
... |
import java.text.DecimalFormat; |
9 |
9 |
import java.text.DecimalFormatSymbols; |
import java.text.DecimalFormatSymbols; |
10 |
10 |
import java.util.ArrayList; |
import java.util.ArrayList; |
11 |
11 |
import javax.swing.DefaultListModel; |
import javax.swing.DefaultListModel; |
|
12 |
|
import lleak.channel.ChanCol; |
12 |
13 |
import lleak.helpers.*; |
import lleak.helpers.*; |
13 |
14 |
|
|
14 |
15 |
/** |
/** |
|
... |
... |
import lleak.helpers.*; |
18 |
19 |
public class ParamDynamicsMenu extends javax.swing.JDialog { |
public class ParamDynamicsMenu extends javax.swing.JDialog { |
19 |
20 |
|
|
20 |
21 |
private MainMenu parent = null; |
private MainMenu parent = null; |
|
22 |
|
ArrayList<ChanCol> columns = null; |
21 |
23 |
private DefaultListModel<String> lmod1 = new DefaultListModel<>(); |
private DefaultListModel<String> lmod1 = new DefaultListModel<>(); |
22 |
|
private DefaultListModel<String> lmod2 = new DefaultListModel<>(); |
|
|
24 |
|
private DefaultListModel<String> lmod2 = new DefaultListModel<>(); |
|
25 |
|
private DefaultListModel<String> lmod3 = new DefaultListModel<>(); |
|
26 |
|
private DefaultListModel<String> lmod4 = new DefaultListModel<>(); |
23 |
27 |
/** |
/** |
24 |
28 |
* Creates new form ParamDynamicsMenu |
* Creates new form ParamDynamicsMenu |
25 |
29 |
*/ |
*/ |
|
... |
... |
public class ParamDynamicsMenu extends javax.swing.JDialog { |
30 |
34 |
jList1.setModel(lmod1); |
jList1.setModel(lmod1); |
31 |
35 |
lmod2.clear(); |
lmod2.clear(); |
32 |
36 |
jList2.setModel(lmod2); |
jList2.setModel(lmod2); |
|
37 |
|
jList3.setModel(lmod3); |
|
38 |
|
lmod4.clear(); |
|
39 |
|
jList4.setModel(lmod4); |
33 |
40 |
setLocationRelativeTo(parent); |
setLocationRelativeTo(parent); |
34 |
41 |
} |
} |
35 |
42 |
|
|
|
... |
... |
public class ParamDynamicsMenu extends javax.swing.JDialog { |
52 |
59 |
jScrollPane2 = new javax.swing.JScrollPane(); |
jScrollPane2 = new javax.swing.JScrollPane(); |
53 |
60 |
jList2 = new javax.swing.JList<>(); |
jList2 = new javax.swing.JList<>(); |
54 |
61 |
jButton4 = new javax.swing.JButton(); |
jButton4 = new javax.swing.JButton(); |
|
62 |
|
jLabel2 = new javax.swing.JLabel(); |
|
63 |
|
jScrollPane3 = new javax.swing.JScrollPane(); |
|
64 |
|
jList3 = new javax.swing.JList<>(); |
|
65 |
|
jButton5 = new javax.swing.JButton(); |
|
66 |
|
jButton6 = new javax.swing.JButton(); |
|
67 |
|
jScrollPane4 = new javax.swing.JScrollPane(); |
|
68 |
|
jList4 = new javax.swing.JList<>(); |
|
69 |
|
jButton7 = new javax.swing.JButton(); |
|
70 |
|
jButton8 = new javax.swing.JButton(); |
55 |
71 |
|
|
56 |
72 |
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); |
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); |
57 |
73 |
|
|
|
... |
... |
public class ParamDynamicsMenu extends javax.swing.JDialog { |
94 |
110 |
|
|
95 |
111 |
jButton4.setText("OK"); |
jButton4.setText("OK"); |
96 |
112 |
|
|
|
113 |
|
jLabel2.setText("Выберите переменные для отображения:"); |
|
114 |
|
|
|
115 |
|
jList3.setModel(new javax.swing.AbstractListModel<String>() { |
|
116 |
|
String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; |
|
117 |
|
public int getSize() { return strings.length; } |
|
118 |
|
public String getElementAt(int i) { return strings[i]; } |
|
119 |
|
}); |
|
120 |
|
jScrollPane3.setViewportView(jList3); |
|
121 |
|
|
|
122 |
|
jButton5.setText(">>"); |
|
123 |
|
jButton5.addActionListener(new java.awt.event.ActionListener() { |
|
124 |
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
125 |
|
jButton5ActionPerformed(evt); |
|
126 |
|
} |
|
127 |
|
}); |
|
128 |
|
|
|
129 |
|
jButton6.setText("<<"); |
|
130 |
|
jButton6.addActionListener(new java.awt.event.ActionListener() { |
|
131 |
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
132 |
|
jButton6ActionPerformed(evt); |
|
133 |
|
} |
|
134 |
|
}); |
|
135 |
|
|
|
136 |
|
jList4.setModel(new javax.swing.AbstractListModel<String>() { |
|
137 |
|
String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; |
|
138 |
|
public int getSize() { return strings.length; } |
|
139 |
|
public String getElementAt(int i) { return strings[i]; } |
|
140 |
|
}); |
|
141 |
|
jScrollPane4.setViewportView(jList4); |
|
142 |
|
|
|
143 |
|
jButton7.setText("Очистить выбор"); |
|
144 |
|
jButton7.addActionListener(new java.awt.event.ActionListener() { |
|
145 |
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
146 |
|
jButton7ActionPerformed(evt); |
|
147 |
|
} |
|
148 |
|
}); |
|
149 |
|
|
|
150 |
|
jButton8.setText("Выбрать всё"); |
|
151 |
|
jButton8.addActionListener(new java.awt.event.ActionListener() { |
|
152 |
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
153 |
|
jButton8ActionPerformed(evt); |
|
154 |
|
} |
|
155 |
|
}); |
|
156 |
|
|
97 |
157 |
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); |
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); |
98 |
158 |
jPanel1.setLayout(jPanel1Layout); |
jPanel1.setLayout(jPanel1Layout); |
99 |
159 |
jPanel1Layout.setHorizontalGroup( |
jPanel1Layout.setHorizontalGroup( |
|
... |
... |
public class ParamDynamicsMenu extends javax.swing.JDialog { |
103 |
163 |
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
104 |
164 |
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
105 |
165 |
.addGroup(jPanel1Layout.createSequentialGroup() |
.addGroup(jPanel1Layout.createSequentialGroup() |
106 |
|
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
166 |
|
.addComponent(jButton1) |
|
167 |
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
|
168 |
|
.addComponent(jButton4)) |
|
169 |
|
.addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
|
170 |
|
.addGroup(jPanel1Layout.createSequentialGroup() |
|
171 |
|
.addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE) |
107 |
172 |
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) |
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) |
108 |
173 |
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
109 |
|
.addComponent(jButton2) |
|
110 |
|
.addComponent(jButton3)) |
|
111 |
|
.addGap(18, 18, 18) |
|
112 |
|
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
113 |
|
.addGap(0, 0, Short.MAX_VALUE)) |
|
114 |
|
.addGroup(jPanel1Layout.createSequentialGroup() |
|
115 |
|
.addComponent(jButton1) |
|
|
174 |
|
.addComponent(jButton5) |
|
175 |
|
.addComponent(jButton6)) |
116 |
176 |
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
117 |
|
.addComponent(jButton4))) |
|
|
177 |
|
.addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)) |
|
178 |
|
.addGroup(jPanel1Layout.createSequentialGroup() |
|
179 |
|
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
180 |
|
.addGroup(jPanel1Layout.createSequentialGroup() |
|
181 |
|
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
182 |
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) |
|
183 |
|
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
184 |
|
.addComponent(jButton2) |
|
185 |
|
.addComponent(jButton3)) |
|
186 |
|
.addGap(18, 18, 18) |
|
187 |
|
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)) |
|
188 |
|
.addGroup(jPanel1Layout.createSequentialGroup() |
|
189 |
|
.addComponent(jButton7) |
|
190 |
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) |
|
191 |
|
.addComponent(jButton8))) |
|
192 |
|
.addGap(0, 0, Short.MAX_VALUE))) |
118 |
193 |
.addContainerGap()) |
.addContainerGap()) |
119 |
194 |
); |
); |
120 |
195 |
jPanel1Layout.setVerticalGroup( |
jPanel1Layout.setVerticalGroup( |
|
... |
... |
public class ParamDynamicsMenu extends javax.swing.JDialog { |
132 |
207 |
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) |
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) |
133 |
208 |
.addComponent(jScrollPane2) |
.addComponent(jScrollPane2) |
134 |
209 |
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE)))) |
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE)))) |
135 |
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 68, Short.MAX_VALUE) |
|
136 |
|
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
|
137 |
|
.addComponent(jButton1) |
|
138 |
|
.addComponent(jButton4)) |
|
139 |
|
.addContainerGap()) |
|
|
210 |
|
.addGap(18, 18, 18) |
|
211 |
|
.addComponent(jLabel2) |
|
212 |
|
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) |
|
213 |
|
.addGroup(jPanel1Layout.createSequentialGroup() |
|
214 |
|
.addGap(50, 50, 50) |
|
215 |
|
.addComponent(jButton5) |
|
216 |
|
.addGap(18, 18, 18) |
|
217 |
|
.addComponent(jButton6) |
|
218 |
|
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) |
|
219 |
|
.addGroup(jPanel1Layout.createSequentialGroup() |
|
220 |
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) |
|
221 |
|
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) |
|
222 |
|
.addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 145, Short.MAX_VALUE) |
|
223 |
|
.addComponent(jScrollPane3)) |
|
224 |
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) |
|
225 |
|
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
|
226 |
|
.addComponent(jButton7) |
|
227 |
|
.addComponent(jButton8)) |
|
228 |
|
.addGap(18, 18, 18) |
|
229 |
|
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
|
230 |
|
.addComponent(jButton1) |
|
231 |
|
.addComponent(jButton4)) |
|
232 |
|
.addGap(17, 17, 17)))) |
140 |
233 |
); |
); |
141 |
234 |
|
|
142 |
235 |
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); |
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); |
|
... |
... |
public class ParamDynamicsMenu extends javax.swing.JDialog { |
150 |
243 |
); |
); |
151 |
244 |
layout.setVerticalGroup( |
layout.setVerticalGroup( |
152 |
245 |
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
153 |
|
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() |
|
|
246 |
|
.addGroup(layout.createSequentialGroup() |
154 |
247 |
.addContainerGap() |
.addContainerGap() |
155 |
248 |
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
156 |
249 |
.addContainerGap()) |
.addContainerGap()) |
|
... |
... |
public class ParamDynamicsMenu extends javax.swing.JDialog { |
174 |
267 |
for (Double p : pointsInTime) { |
for (Double p : pointsInTime) { |
175 |
268 |
lmod1.addElement(decimalFormat.format(p)); |
lmod1.addElement(decimalFormat.format(p)); |
176 |
269 |
} |
} |
|
270 |
|
|
|
271 |
|
columns = ChanCol.readCSV(parent.getRootDir() + "meta.csv"); |
|
272 |
|
lmod3.clear(); |
|
273 |
|
for (ChanCol c : columns) { |
|
274 |
|
lmod3.addElement(c.getFullname()); |
|
275 |
|
} |
177 |
276 |
|
|
178 |
277 |
} |
} |
179 |
278 |
|
|
|
... |
... |
public class ParamDynamicsMenu extends javax.swing.JDialog { |
184 |
283 |
}//GEN-LAST:event_jButton1ActionPerformed |
}//GEN-LAST:event_jButton1ActionPerformed |
185 |
284 |
|
|
186 |
285 |
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed |
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed |
187 |
|
// select |
|
|
286 |
|
// select coord |
188 |
287 |
String selVal = jList1.getSelectedValue(); |
String selVal = jList1.getSelectedValue(); |
189 |
288 |
int ind = jList1.getSelectedIndex(); |
int ind = jList1.getSelectedIndex(); |
190 |
289 |
if (!selVal.isEmpty()) { |
if (!selVal.isEmpty()) { |
|
... |
... |
public class ParamDynamicsMenu extends javax.swing.JDialog { |
199 |
298 |
}//GEN-LAST:event_jButton2ActionPerformed |
}//GEN-LAST:event_jButton2ActionPerformed |
200 |
299 |
|
|
201 |
300 |
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed |
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed |
202 |
|
// unselect |
|
|
301 |
|
// unselect coord |
203 |
302 |
String selVal = jList2.getSelectedValue(); |
String selVal = jList2.getSelectedValue(); |
204 |
303 |
int ind = jList2.getSelectedIndex(); |
int ind = jList2.getSelectedIndex(); |
205 |
304 |
if (!selVal.isEmpty()) { |
if (!selVal.isEmpty()) { |
|
... |
... |
public class ParamDynamicsMenu extends javax.swing.JDialog { |
210 |
309 |
} |
} |
211 |
310 |
}//GEN-LAST:event_jButton3ActionPerformed |
}//GEN-LAST:event_jButton3ActionPerformed |
212 |
311 |
|
|
|
312 |
|
private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed |
|
313 |
|
// select arg |
|
314 |
|
String selVal = jList3.getSelectedValue(); |
|
315 |
|
int ind = jList3.getSelectedIndex(); |
|
316 |
|
if (!selVal.isEmpty()) { |
|
317 |
|
lmod4.addElement(selVal); |
|
318 |
|
lmod3.remove(ind); |
|
319 |
|
jList3.setModel(lmod3); |
|
320 |
|
jList4.setModel(lmod4); |
|
321 |
|
|
|
322 |
|
//TODO: сортировка списков после добавления/удаления |
|
323 |
|
} |
|
324 |
|
}//GEN-LAST:event_jButton5ActionPerformed |
|
325 |
|
|
|
326 |
|
private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed |
|
327 |
|
// unselect arg |
|
328 |
|
String selVal = jList4.getSelectedValue(); |
|
329 |
|
int ind = jList4.getSelectedIndex(); |
|
330 |
|
if (!selVal.isEmpty()) { |
|
331 |
|
lmod3.addElement(selVal); |
|
332 |
|
lmod4.remove(ind); |
|
333 |
|
jList3.setModel(lmod3); |
|
334 |
|
jList4.setModel(lmod4); |
|
335 |
|
} |
|
336 |
|
}//GEN-LAST:event_jButton6ActionPerformed |
|
337 |
|
|
|
338 |
|
private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed |
|
339 |
|
// clear |
|
340 |
|
|
|
341 |
|
lmod3.clear(); |
|
342 |
|
for (ChanCol c : columns) { |
|
343 |
|
lmod3.addElement(c.getFullname()); |
|
344 |
|
} |
|
345 |
|
jList3.setModel(lmod3); |
|
346 |
|
lmod4.clear(); |
|
347 |
|
jList4.setModel(lmod4); |
|
348 |
|
}//GEN-LAST:event_jButton7ActionPerformed |
|
349 |
|
|
|
350 |
|
private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton8ActionPerformed |
|
351 |
|
// select all |
|
352 |
|
|
|
353 |
|
lmod4.clear(); |
|
354 |
|
for (ChanCol c : columns) { |
|
355 |
|
lmod4.addElement(c.getFullname()); |
|
356 |
|
} |
|
357 |
|
jList4.setModel(lmod4); |
|
358 |
|
|
|
359 |
|
lmod3.clear(); |
|
360 |
|
jList3.setModel(lmod3); |
|
361 |
|
}//GEN-LAST:event_jButton8ActionPerformed |
|
362 |
|
|
213 |
363 |
|
|
214 |
364 |
|
|
215 |
365 |
// Variables declaration - do not modify//GEN-BEGIN:variables |
// Variables declaration - do not modify//GEN-BEGIN:variables |
|
... |
... |
public class ParamDynamicsMenu extends javax.swing.JDialog { |
217 |
367 |
private javax.swing.JButton jButton2; |
private javax.swing.JButton jButton2; |
218 |
368 |
private javax.swing.JButton jButton3; |
private javax.swing.JButton jButton3; |
219 |
369 |
private javax.swing.JButton jButton4; |
private javax.swing.JButton jButton4; |
|
370 |
|
private javax.swing.JButton jButton5; |
|
371 |
|
private javax.swing.JButton jButton6; |
|
372 |
|
private javax.swing.JButton jButton7; |
|
373 |
|
private javax.swing.JButton jButton8; |
220 |
374 |
private javax.swing.JLabel jLabel1; |
private javax.swing.JLabel jLabel1; |
|
375 |
|
private javax.swing.JLabel jLabel2; |
221 |
376 |
private javax.swing.JList<String> jList1; |
private javax.swing.JList<String> jList1; |
222 |
377 |
private javax.swing.JList<String> jList2; |
private javax.swing.JList<String> jList2; |
|
378 |
|
private javax.swing.JList<String> jList3; |
|
379 |
|
private javax.swing.JList<String> jList4; |
223 |
380 |
private javax.swing.JPanel jPanel1; |
private javax.swing.JPanel jPanel1; |
224 |
381 |
private javax.swing.JScrollPane jScrollPane1; |
private javax.swing.JScrollPane jScrollPane1; |
225 |
382 |
private javax.swing.JScrollPane jScrollPane2; |
private javax.swing.JScrollPane jScrollPane2; |
|
383 |
|
private javax.swing.JScrollPane jScrollPane3; |
|
384 |
|
private javax.swing.JScrollPane jScrollPane4; |
226 |
385 |
// End of variables declaration//GEN-END:variables |
// End of variables declaration//GEN-END:variables |
227 |
386 |
} |
} |
File src/menu/TimeMenu.java changed (mode: 100644) (index 23336e1..99fcd2f) |
... |
... |
import lleak.helpers.TimeReader; |
23 |
23 |
public class TimeMenu extends javax.swing.JDialog { |
public class TimeMenu extends javax.swing.JDialog { |
24 |
24 |
|
|
25 |
25 |
private MainMenu parent = null; |
private MainMenu parent = null; |
26 |
|
private ChanFile cf = null; |
|
|
26 |
|
ArrayList<ChanCol> columns = null; |
27 |
27 |
private DefaultListModel<String> lmod1 = new DefaultListModel<>(); |
private DefaultListModel<String> lmod1 = new DefaultListModel<>(); |
28 |
28 |
private DefaultListModel<String> lmod2 = new DefaultListModel<>(); |
private DefaultListModel<String> lmod2 = new DefaultListModel<>(); |
29 |
29 |
private DefaultListModel<String> lmod3 = new DefaultListModel<>(); |
private DefaultListModel<String> lmod3 = new DefaultListModel<>(); |
|
... |
... |
public class TimeMenu extends javax.swing.JDialog { |
59 |
59 |
lmod1.addElement(decimalFormat.format(p)); |
lmod1.addElement(decimalFormat.format(p)); |
60 |
60 |
} |
} |
61 |
61 |
|
|
62 |
|
ArrayList<ChanCol> columns = ChanCol.readCSV(parent.getRootDir() + "meta.csv"); |
|
|
62 |
|
columns = ChanCol.readCSV(parent.getRootDir() + "meta.csv"); |
63 |
63 |
//columns.add(new ChanCol(0, "t", "Время")); |
//columns.add(new ChanCol(0, "t", "Время")); |
64 |
64 |
//columns.add(new ChanCol(1, "j", "Индекс")); |
//columns.add(new ChanCol(1, "j", "Индекс")); |
65 |
65 |
//columns.add(new ChanCol(2, "x", "Координата")); |
//columns.add(new ChanCol(2, "x", "Координата")); |
66 |
66 |
//columns.add(new ChanCol(3, "u", "Скорость")); |
//columns.add(new ChanCol(3, "u", "Скорость")); |
67 |
|
int nt = tr.getNSteps()+ 1; |
|
68 |
|
System.out.println(nt); |
|
|
67 |
|
//int nt = tr.getNSteps()+ 1; |
|
68 |
|
|
|
69 |
|
//ConfReader cr = new ConfReader(parent.getRootDir() + "mainconf.txt"); |
|
70 |
|
//ChanProfReader cpr = new ChanProfReader(parent.getRootDir() + cr.getChan()); |
|
71 |
|
//ChanTxtReader ctr = new ChanTxtReader(parent.getRootDir() + cpr.getChans().get(0).getFile()); //А если несколько каналов?????? |
|
72 |
|
//GeomReader gr = new GeomReader(parent.getRootDir() + ctr.getGeom()); |
|
73 |
|
//int nx = gr.getNx() + 1; |
69 |
74 |
|
|
70 |
|
ConfReader cr = new ConfReader(parent.getRootDir() + "mainconf.txt"); |
|
71 |
|
ChanProfReader cpr = new ChanProfReader(parent.getRootDir() + cr.getChan()); |
|
72 |
|
ChanTxtReader ctr = new ChanTxtReader(parent.getRootDir() + cpr.getChans().get(0).getFile()); //А если несколько каналов?????? |
|
73 |
|
GeomReader gr = new GeomReader(parent.getRootDir() + ctr.getGeom()); |
|
74 |
|
int nx = gr.getNx() + 1; |
|
75 |
|
System.out.println(nx); |
|
76 |
75 |
|
|
77 |
|
ChanFile instance = new ChanFile(nt, nx, parent.getRootDir() + ctr.getOutfile(), columns); |
|
78 |
|
cf = instance; |
|
|
76 |
|
//ChanFile instance = new ChanFile(nt, nx, parent.getRootDir() + ctr.getOutfile(), columns); |
|
77 |
|
//cf = instance; |
79 |
78 |
|
|
80 |
79 |
lmod3.clear(); |
lmod3.clear(); |
81 |
|
ArrayList<ChanCol> cols = cf.getColumns(); |
|
82 |
|
for (ChanCol c : cols) { |
|
|
80 |
|
//ArrayList<ChanCol> cols = cf.getColumns(); |
|
81 |
|
for (ChanCol c : columns) { |
83 |
82 |
lmod3.addElement(c.getFullname()); |
lmod3.addElement(c.getFullname()); |
84 |
83 |
} |
} |
85 |
84 |
|
|
|
... |
... |
public class TimeMenu extends javax.swing.JDialog { |
304 |
303 |
}//GEN-LAST:event_jButton1ActionPerformed |
}//GEN-LAST:event_jButton1ActionPerformed |
305 |
304 |
|
|
306 |
305 |
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed |
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed |
307 |
|
// select |
|
|
306 |
|
// select time |
308 |
307 |
String selVal = jList1.getSelectedValue(); |
String selVal = jList1.getSelectedValue(); |
309 |
308 |
int ind = jList1.getSelectedIndex(); |
int ind = jList1.getSelectedIndex(); |
310 |
309 |
if (!selVal.isEmpty()) { |
if (!selVal.isEmpty()) { |
|
... |
... |
public class TimeMenu extends javax.swing.JDialog { |
320 |
319 |
}//GEN-LAST:event_jButton2ActionPerformed |
}//GEN-LAST:event_jButton2ActionPerformed |
321 |
320 |
|
|
322 |
321 |
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed |
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed |
323 |
|
// unselect |
|
|
322 |
|
// unselect time |
324 |
323 |
String selVal = jList2.getSelectedValue(); |
String selVal = jList2.getSelectedValue(); |
325 |
324 |
int ind = jList2.getSelectedIndex(); |
int ind = jList2.getSelectedIndex(); |
326 |
325 |
if (!selVal.isEmpty()) { |
if (!selVal.isEmpty()) { |
|
... |
... |
public class TimeMenu extends javax.swing.JDialog { |
333 |
332 |
}//GEN-LAST:event_jButton3ActionPerformed |
}//GEN-LAST:event_jButton3ActionPerformed |
334 |
333 |
|
|
335 |
334 |
private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed |
private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed |
336 |
|
// select |
|
|
335 |
|
// select arg |
337 |
336 |
String selVal = jList3.getSelectedValue(); |
String selVal = jList3.getSelectedValue(); |
338 |
337 |
int ind = jList3.getSelectedIndex(); |
int ind = jList3.getSelectedIndex(); |
339 |
338 |
if (!selVal.isEmpty()) { |
if (!selVal.isEmpty()) { |
|
... |
... |
public class TimeMenu extends javax.swing.JDialog { |
348 |
347 |
}//GEN-LAST:event_jButton5ActionPerformed |
}//GEN-LAST:event_jButton5ActionPerformed |
349 |
348 |
|
|
350 |
349 |
private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed |
private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed |
351 |
|
// unselect |
|
|
350 |
|
// unselect arg |
352 |
351 |
String selVal = jList4.getSelectedValue(); |
String selVal = jList4.getSelectedValue(); |
353 |
352 |
int ind = jList4.getSelectedIndex(); |
int ind = jList4.getSelectedIndex(); |
354 |
353 |
if (!selVal.isEmpty()) { |
if (!selVal.isEmpty()) { |
|
... |
... |
public class TimeMenu extends javax.swing.JDialog { |
363 |
362 |
// clear |
// clear |
364 |
363 |
|
|
365 |
364 |
lmod3.clear(); |
lmod3.clear(); |
366 |
|
ArrayList<ChanCol> cols = cf.getColumns(); |
|
367 |
|
for (ChanCol c : cols) { |
|
|
365 |
|
for (ChanCol c : columns) { |
368 |
366 |
lmod3.addElement(c.getFullname()); |
lmod3.addElement(c.getFullname()); |
369 |
367 |
} |
} |
370 |
368 |
jList3.setModel(lmod3); |
jList3.setModel(lmod3); |
|
... |
... |
public class TimeMenu extends javax.swing.JDialog { |
376 |
374 |
// select all |
// select all |
377 |
375 |
|
|
378 |
376 |
lmod4.clear(); |
lmod4.clear(); |
379 |
|
ArrayList<ChanCol> cols = cf.getColumns(); |
|
380 |
|
for (ChanCol c : cols) { |
|
|
377 |
|
for (ChanCol c : columns) { |
381 |
378 |
lmod4.addElement(c.getFullname()); |
lmod4.addElement(c.getFullname()); |
382 |
379 |
} |
} |
383 |
380 |
jList4.setModel(lmod4); |
jList4.setModel(lmod4); |