Commit 28c59ac0 authored by Diah Fauziah's avatar Diah Fauziah
Browse files
parents 13046212 f3fb801d
/src/server/dist/
\ No newline at end of file
......@@ -3,13 +3,11 @@
<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:/F:/z~edo/Kuliah/Semester%206/IF3230%20Sistem%20Paralel%20dan%20Terdistribusi/Tugas%20Akhir/src/client/TheAlchemistClient/src/thealchemist/gui/AlcMixItem.java</file>
<file>file:/F:/z~edo/Kuliah/Semester%206/IF3230%20Sistem%20Paralel%20dan%20Terdistribusi/Tugas%20Akhir/src/client/TheAlchemistClient/src/thealchemist/gui/AlcLogon.java</file>
<file>file:/F:/z~edo/Kuliah/Semester%206/IF3230%20Sistem%20Paralel%20dan%20Terdistribusi/Tugas%20Akhir/src/client/TheAlchemistClient/src/thealchemist/gui/AlcMap.java</file>
<file>file:/F:/z~edo/Kuliah/Semester%206/IF3230%20Sistem%20Paralel%20dan%20Terdistribusi/Tugas%20Akhir/src/client/TheAlchemistClient/src/thealchemist/gui/AlcOffer.java</file>
<file>file:/F:/z~edo/Kuliah/Semester%206/IF3230%20Sistem%20Paralel%20dan%20Terdistribusi/Tugas%20Akhir/src/client/TheAlchemistClient/src/thealchemist/gui/AlcFindItem.java</file>
<file>file:/F:/z~edo/Kuliah/Semester%206/IF3230%20Sistem%20Paralel%20dan%20Terdistribusi/Tugas%20Akhir/src/client/TheAlchemistClient/src/thealchemist/engine/Main.java</file>
<file>file:/F:/z~edo/Kuliah/Semester%206/IF3230%20Sistem%20Paralel%20dan%20Terdistribusi/Tugas%20Akhir/src/client/TheAlchemistClient/src/thealchemist/gui/AlcTradeBox.java</file>
<file>file:/F:/z~edo/Kuliah/Semester%206/IF3230%20Sistem%20Paralel%20dan%20Terdistribusi/Tugas%20Akhir/src/client/TheAlchemistClient/src/thealchemist/gui/AlcItem.java</file>
<file>file:/F:/z~edo/Kuliah/Semester%206/IF3230%20Sistem%20Paralel%20dan%20Terdistribusi/Tugas%20Akhir/src/client/TheAlchemistClient/src/thealchemist/gui/AlcTradeItem.java</file>
<file>file:/F:/z~edo/Kuliah/Semester%206/IF3230%20Sistem%20Paralel%20dan%20Terdistribusi/Tugas%20Akhir/src/client/TheAlchemistClient/src/thealchemist/engine/Response.java</file>
<file>file:/F:/z~edo/Kuliah/Semester%206/IF3230%20Sistem%20Paralel%20dan%20Terdistribusi/Tugas%20Akhir/src/client/TheAlchemistClient/src/thealchemist/engine/Connection.java</file>
</group>
</open-files>
......
......@@ -71,13 +71,13 @@ public class Connection {
return obj.toString();
}
public String signUp(String username, String password) throws JSONException, NoSuchAlgorithmException{
public String signUp(String username, String password) throws JSONException, NoSuchAlgorithmException, IOException{
JSONObject obj = new JSONObject();
obj.put("method", "signup");
obj.put("username", username);
obj.put("password", toMD5(password));
return obj.toString();
return sendRequest(obj.toString());
}
public String map() throws JSONException{
......
......@@ -210,7 +210,7 @@ public class AlcLogon extends javax.swing.JFrame {
String hasilRespon;
try {
try {
hasilRespon = respon.signUpOK(connection.signUp(txtAccount.getText(), pass));
hasilRespon = connection.signUp(txtAccount.getText(), pass);
if(connection.JSONtoString("status", hasilRespon).equals("ok")){
System.out.println("ok");
......
......@@ -53,8 +53,8 @@ public class AlcMap extends javax.swing.JFrame {
*/
public AlcMap(Connection connect, int _x, int _y) {
respon = new Response();
dateCurrent = new Date();
dateMove = new Date();
dateCurrent = new Date();
setConnection(connect);
setCurrentTime();
......@@ -88,6 +88,8 @@ public class AlcMap extends javax.swing.JFrame {
@Override
public void actionPerformed(ActionEvent e) {
dateCurrent = new Date();
SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy");
String dateString = formatter.format(dateCurrent);
......
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