Better control pannel
This commit is contained in:
parent
b0f9fabf52
commit
a55b983443
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
|
||||||
<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
|
<Form version="1.5" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
|
||||||
<AuxValues>
|
<AuxValues>
|
||||||
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
|
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
|
||||||
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
|
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
|
||||||
@ -11,6 +11,7 @@
|
|||||||
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
|
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
|
||||||
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
|
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
|
||||||
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
|
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
|
||||||
|
<AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,44,0,0,1,-112"/>
|
||||||
</AuxValues>
|
</AuxValues>
|
||||||
|
|
||||||
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridLayout">
|
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridLayout">
|
||||||
@ -21,9 +22,17 @@
|
|||||||
<Component class="javax.swing.JButton" name="jButton2">
|
<Component class="javax.swing.JButton" name="jButton2">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||||
<Color blue="0" green="ff" red="41" type="rgb"/>
|
<Color blue="c" green="0" red="b5" type="rgb"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" value="Buy"/>
|
<Property name="font" type="java.awt.Font" editor="org.netbeans.modules.form.editors2.FontEditor">
|
||||||
|
<FontInfo relative="true">
|
||||||
|
<Font bold="true" component="jButton2" property="font" relativeSize="true" size="12"/>
|
||||||
|
</FontInfo>
|
||||||
|
</Property>
|
||||||
|
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||||
|
<Color blue="fe" green="fe" red="fe" type="rgb"/>
|
||||||
|
</Property>
|
||||||
|
<Property name="text" type="java.lang.String" value="Sell"/>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events>
|
<Events>
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton2ActionPerformed"/>
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton2ActionPerformed"/>
|
||||||
@ -46,6 +55,17 @@
|
|||||||
</Container>
|
</Container>
|
||||||
<Component class="javax.swing.JButton" name="jButton3">
|
<Component class="javax.swing.JButton" name="jButton3">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||||
|
<Color blue="1" green="5e" red="5" type="rgb"/>
|
||||||
|
</Property>
|
||||||
|
<Property name="font" type="java.awt.Font" editor="org.netbeans.modules.form.editors2.FontEditor">
|
||||||
|
<FontInfo relative="true">
|
||||||
|
<Font bold="true" component="jButton3" property="font" relativeSize="true" size="12"/>
|
||||||
|
</FontInfo>
|
||||||
|
</Property>
|
||||||
|
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||||
|
<Color blue="fe" green="fe" red="fe" type="rgb"/>
|
||||||
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" value="Buy"/>
|
<Property name="text" type="java.lang.String" value="Buy"/>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
|
@ -54,8 +54,10 @@ public class ControlPanel extends javax.swing.JPanel {
|
|||||||
|
|
||||||
setLayout(new java.awt.GridLayout(3, 0));
|
setLayout(new java.awt.GridLayout(3, 0));
|
||||||
|
|
||||||
jButton2.setBackground(new java.awt.Color(65, 255, 0));
|
jButton2.setBackground(new java.awt.Color(181, 0, 12));
|
||||||
jButton2.setText("Buy");
|
jButton2.setFont(jButton2.getFont().deriveFont(jButton2.getFont().getStyle() | java.awt.Font.BOLD, jButton2.getFont().getSize()+12));
|
||||||
|
jButton2.setForeground(new java.awt.Color(254, 254, 254));
|
||||||
|
jButton2.setText("Sell");
|
||||||
jButton2.addActionListener(new java.awt.event.ActionListener() {
|
jButton2.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
jButton2ActionPerformed(evt);
|
jButton2ActionPerformed(evt);
|
||||||
@ -69,6 +71,9 @@ public class ControlPanel extends javax.swing.JPanel {
|
|||||||
|
|
||||||
add(jScrollPane1);
|
add(jScrollPane1);
|
||||||
|
|
||||||
|
jButton3.setBackground(new java.awt.Color(5, 94, 1));
|
||||||
|
jButton3.setFont(jButton3.getFont().deriveFont(jButton3.getFont().getStyle() | java.awt.Font.BOLD, jButton3.getFont().getSize()+12));
|
||||||
|
jButton3.setForeground(new java.awt.Color(254, 254, 254));
|
||||||
jButton3.setText("Buy");
|
jButton3.setText("Buy");
|
||||||
add(jButton3);
|
add(jButton3);
|
||||||
}// </editor-fold>//GEN-END:initComponents
|
}// </editor-fold>//GEN-END:initComponents
|
||||||
|
@ -8,7 +8,7 @@ import SeSim.Order.OrderStatus;
|
|||||||
public class Exchange extends Thread {
|
public class Exchange extends Thread {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Histrory of all quotes
|
* Histrory of quotes
|
||||||
*/
|
*/
|
||||||
public ArrayList<Quote> quoteHistory;
|
public ArrayList<Quote> quoteHistory;
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ package SeSim;
|
|||||||
|
|
||||||
public abstract class Trader {
|
public abstract class Trader {
|
||||||
|
|
||||||
String name = null;
|
public String name = null;
|
||||||
|
|
||||||
public abstract void trade();
|
public abstract void trade();
|
||||||
public Account account = new Account();
|
public Account account = new Account();
|
||||||
|
@ -34,6 +34,11 @@ import SeSim.BuyOrder;
|
|||||||
* @author 7u83 <7u83@mail.ru>
|
* @author 7u83 <7u83@mail.ru>
|
||||||
*/
|
*/
|
||||||
public class ManTrader extends Trader{
|
public class ManTrader extends Trader{
|
||||||
|
|
||||||
|
public void ManTrader(){
|
||||||
|
this.name = "ManTrader";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void trade(){
|
public void trade(){
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user