Commit 3408d227 authored by Timothy Pratama's avatar Timothy Pratama
Browse files

(client) Set minimum value for item quantity to 0

parent 26a69ca0
<?xml version="1.0" encoding="UTF-8" ?>
<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
<Form version="1.5" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
<Properties>
<Property name="defaultCloseOperation" type="int" value="3"/>
<Property name="title" type="java.lang.String" value="Elder Tale - Offer Item"/>
......@@ -284,6 +284,11 @@
</Constraints>
</Component>
<Component class="javax.swing.JSpinner" name="n1_textfield">
<Properties>
<Property name="model" type="javax.swing.SpinnerModel" editor="org.netbeans.modules.form.editors2.SpinnerModelEditor">
<SpinnerModel initial="0" minimum="0" numberType="java.lang.Integer" stepSize="1" type="number"/>
</Property>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
<AbsoluteConstraints x="170" y="440" width="150" height="30"/>
......@@ -291,6 +296,11 @@
</Constraints>
</Component>
<Component class="javax.swing.JSpinner" name="n2_textfield">
<Properties>
<Property name="model" type="javax.swing.SpinnerModel" editor="org.netbeans.modules.form.editors2.SpinnerModelEditor">
<SpinnerModel initial="0" minimum="0" numberType="java.lang.Integer" stepSize="1" type="number"/>
</Property>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
<AbsoluteConstraints x="510" y="440" width="150" height="30"/>
......
......@@ -174,8 +174,12 @@ public class OfferItemScreen extends javax.swing.JFrame {
});
getContentPane().add(back_button);
back_button.setBounds(660, 40, 81, 26);
n1_textfield.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(0), Integer.valueOf(0), null, Integer.valueOf(1)));
getContentPane().add(n1_textfield);
n1_textfield.setBounds(170, 440, 150, 30);
n2_textfield.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(0), Integer.valueOf(0), null, Integer.valueOf(1)));
getContentPane().add(n2_textfield);
n2_textfield.setBounds(510, 440, 150, 30);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment