Commit f1d3bf7f authored by Darwin's avatar Darwin
Browse files

send

parent ac8f720d
......@@ -30,5 +30,5 @@ user.properties.file=C:\\Users\\user\\AppData\\Roaming\\NetBeans\\8.0\\build.pro
user.properties.file=C:\\Users\\user\\AppData\\Roaming\\NetBeans\\8.0\\build.properties
>>>>>>> 5c393c17c0f1ef1dd5ee2823322f7f8ff51533ad
=======
user.properties.file=C:\\Users\\Stephen\\AppData\\Roaming\\NetBeans\\8.0.2\\build.properties
user.properties.file=C:\\Users\\user\\AppData\\Roaming\\NetBeans\\8.0\\build.properties
>>>>>>> 6092b816dd3fdb47e423d8ff58331eee92413992
......@@ -1679,7 +1679,7 @@
<Component id="FindIcon" min="-2" max="-2" attributes="0"/>
<Component id="Find" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace min="0" pref="165" max="32767" attributes="0"/>
<EmptySpace min="0" pref="174" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
......@@ -1724,14 +1724,14 @@
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="FindPotion" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="FindHoney" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="FindHerbs" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="FindClay" alignment="0" min="-2" pref="155" max="-2" attributes="0"/>
<Component id="FindMineral" alignment="0" min="-2" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" max="-2" attributes="0">
<Component id="FindPotion" alignment="0" max="32767" attributes="0"/>
<Component id="FindHoney" alignment="0" max="32767" attributes="0"/>
<Component id="FindHerbs" alignment="0" max="32767" attributes="0"/>
<Component id="FindMineral" alignment="0" max="32767" attributes="0"/>
<Component id="FindClay" alignment="0" max="32767" attributes="0"/>
</Group>
<EmptySpace type="separate" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="36" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="FindIncense" alignment="0" min="-2" max="-2" attributes="0"/>
<Component id="FindGems" alignment="0" min="-2" max="-2" attributes="0"/>
......@@ -1750,7 +1750,6 @@
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/inventory/images/honey.PNG"/>
</Property>
<Property name="text" type="java.lang.String" value="jButton1"/>
<Property name="horizontalTextPosition" type="int" value="0"/>
<Property name="verticalTextPosition" type="int" value="3"/>
</Properties>
......@@ -1763,7 +1762,6 @@
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/inventory/images/herbs.PNG"/>
</Property>
<Property name="text" type="java.lang.String" value="jButton1"/>
<Property name="horizontalTextPosition" type="int" value="0"/>
<Property name="verticalTextPosition" type="int" value="3"/>
</Properties>
......@@ -1776,7 +1774,6 @@
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/inventory/images/clay.PNG"/>
</Property>
<Property name="text" type="java.lang.String" value="jButton1"/>
<Property name="horizontalTextPosition" type="int" value="0"/>
<Property name="verticalTextPosition" type="int" value="3"/>
</Properties>
......@@ -1789,7 +1786,6 @@
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/inventory/images/mineral.PNG"/>
</Property>
<Property name="text" type="java.lang.String" value="jButton1"/>
<Property name="horizontalTextPosition" type="int" value="0"/>
<Property name="verticalTextPosition" type="int" value="3"/>
</Properties>
......@@ -1802,7 +1798,6 @@
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/inventory/images/potion.PNG"/>
</Property>
<Property name="text" type="java.lang.String" value="jButton1"/>
<Property name="horizontalTextPosition" type="int" value="0"/>
<Property name="verticalTextPosition" type="int" value="3"/>
</Properties>
......@@ -1815,7 +1810,6 @@
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/inventory/images/stone.PNG"/>
</Property>
<Property name="text" type="java.lang.String" value="jButton1"/>
<Property name="horizontalTextPosition" type="int" value="0"/>
<Property name="verticalTextPosition" type="int" value="3"/>
</Properties>
......@@ -1828,7 +1822,6 @@
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/inventory/images/manaCrystal.PNG"/>
</Property>
<Property name="text" type="java.lang.String" value="jButton1"/>
<Property name="horizontalTextPosition" type="int" value="0"/>
<Property name="verticalTextPosition" type="int" value="3"/>
</Properties>
......@@ -1841,7 +1834,6 @@
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/inventory/images/lifeElixir.PNG"/>
</Property>
<Property name="text" type="java.lang.String" value="jButton1"/>
<Property name="horizontalTextPosition" type="int" value="0"/>
<Property name="verticalTextPosition" type="int" value="3"/>
</Properties>
......@@ -1854,7 +1846,6 @@
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/inventory/images/gems.PNG"/>
</Property>
<Property name="text" type="java.lang.String" value="jButton1"/>
<Property name="horizontalTextPosition" type="int" value="0"/>
<Property name="verticalTextPosition" type="int" value="3"/>
</Properties>
......@@ -1867,7 +1858,6 @@
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/inventory/images/incense.PNG"/>
</Property>
<Property name="text" type="java.lang.String" value="jButton1"/>
<Property name="horizontalTextPosition" type="int" value="0"/>
<Property name="verticalTextPosition" type="int" value="3"/>
</Properties>
......
......@@ -1301,7 +1301,6 @@ public class MainPage extends javax.swing.JFrame {
MainPanel.add(offerPanel, "OfferCard");
FindHoney.setIcon(new javax.swing.ImageIcon(getClass().getResource("/inventory/images/honey.PNG"))); // NOI18N
FindHoney.setText("jButton1");
FindHoney.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
FindHoney.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
FindHoney.addActionListener(new java.awt.event.ActionListener() {
......@@ -1311,7 +1310,6 @@ public class MainPage extends javax.swing.JFrame {
});
FindHerbs.setIcon(new javax.swing.ImageIcon(getClass().getResource("/inventory/images/herbs.PNG"))); // NOI18N
FindHerbs.setText("jButton1");
FindHerbs.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
FindHerbs.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
FindHerbs.addActionListener(new java.awt.event.ActionListener() {
......@@ -1321,7 +1319,6 @@ public class MainPage extends javax.swing.JFrame {
});
FindClay.setIcon(new javax.swing.ImageIcon(getClass().getResource("/inventory/images/clay.PNG"))); // NOI18N
FindClay.setText("jButton1");
FindClay.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
FindClay.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
FindClay.addActionListener(new java.awt.event.ActionListener() {
......@@ -1331,7 +1328,6 @@ public class MainPage extends javax.swing.JFrame {
});
FindMineral.setIcon(new javax.swing.ImageIcon(getClass().getResource("/inventory/images/mineral.PNG"))); // NOI18N
FindMineral.setText("jButton1");
FindMineral.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
FindMineral.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
FindMineral.addActionListener(new java.awt.event.ActionListener() {
......@@ -1341,7 +1337,6 @@ public class MainPage extends javax.swing.JFrame {
});
FindPotion.setIcon(new javax.swing.ImageIcon(getClass().getResource("/inventory/images/potion.PNG"))); // NOI18N
FindPotion.setText("jButton1");
FindPotion.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
FindPotion.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
FindPotion.addActionListener(new java.awt.event.ActionListener() {
......@@ -1351,7 +1346,6 @@ public class MainPage extends javax.swing.JFrame {
});
FindPhilosopherStone.setIcon(new javax.swing.ImageIcon(getClass().getResource("/inventory/images/stone.PNG"))); // NOI18N
FindPhilosopherStone.setText("jButton1");
FindPhilosopherStone.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
FindPhilosopherStone.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
FindPhilosopherStone.addActionListener(new java.awt.event.ActionListener() {
......@@ -1361,7 +1355,6 @@ public class MainPage extends javax.swing.JFrame {
});
FindManaCrystal.setIcon(new javax.swing.ImageIcon(getClass().getResource("/inventory/images/manaCrystal.PNG"))); // NOI18N
FindManaCrystal.setText("jButton1");
FindManaCrystal.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
FindManaCrystal.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
FindManaCrystal.addActionListener(new java.awt.event.ActionListener() {
......@@ -1371,7 +1364,6 @@ public class MainPage extends javax.swing.JFrame {
});
FindLifeElixir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/inventory/images/lifeElixir.PNG"))); // NOI18N
FindLifeElixir.setText("jButton1");
FindLifeElixir.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
FindLifeElixir.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
FindLifeElixir.addActionListener(new java.awt.event.ActionListener() {
......@@ -1381,7 +1373,6 @@ public class MainPage extends javax.swing.JFrame {
});
FindGems.setIcon(new javax.swing.ImageIcon(getClass().getResource("/inventory/images/gems.PNG"))); // NOI18N
FindGems.setText("jButton1");
FindGems.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
FindGems.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
FindGems.addActionListener(new java.awt.event.ActionListener() {
......@@ -1391,7 +1382,6 @@ public class MainPage extends javax.swing.JFrame {
});
FindIncense.setIcon(new javax.swing.ImageIcon(getClass().getResource("/inventory/images/incense.PNG"))); // NOI18N
FindIncense.setText("jButton1");
FindIncense.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
FindIncense.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
FindIncense.addActionListener(new java.awt.event.ActionListener() {
......@@ -1431,13 +1421,13 @@ public class MainPage extends javax.swing.JFrame {
FindItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(FindItemLayout.createSequentialGroup()
.addContainerGap()
.addGroup(FindItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(FindPotion)
.addComponent(FindHoney)
.addComponent(FindHerbs)
.addComponent(FindClay, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(FindMineral))
.addGap(18, 18, 18)
.addGroup(FindItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(FindPotion, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(FindHoney, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(FindHerbs, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(FindMineral, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(FindClay, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(36, 36, 36)
.addGroup(FindItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(FindIncense)
.addComponent(FindGems)
......@@ -1487,7 +1477,7 @@ public class MainPage extends javax.swing.JFrame {
.addGroup(finditemPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(FindIcon)
.addComponent(Find))
.addGap(0, 165, Short.MAX_VALUE))
.addGap(0, 174, Short.MAX_VALUE))
);
MainPanel.add(finditemPanel, "FindItemCard");
......@@ -2314,6 +2304,7 @@ public class MainPage extends javax.swing.JFrame {
if(offer.getJSONArray(i).get(4).toString().equals("true")) //avalaible
{
System.out.println("oit");
buttons[i] = new JButton("Cancel");
String offerToken=offer.getJSONArray(i).get(4).toString();
buttons[i].setActionCommand(offerToken);
......@@ -2324,6 +2315,7 @@ public class MainPage extends javax.swing.JFrame {
}
});
}else{
System.out.println("oit 2");
buttons[i] = new JButton("Fetch");
String offerToken=offer.getJSONArray(i).get(4).toString();
buttons[i].setActionCommand(offerToken);
......
......@@ -2,8 +2,6 @@
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/E:/semester%206/Sistem%20Paralel%20dan%20Terdistribusi/SISTER/IF3230-Tugas-Besar-Sister-2015/src/server/src/tcpserver/TCPServer.java</file>
</group>
<group/>
</open-files>
</project-private>
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