Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.xml
1,180 changes: 0 additions & 1,180 deletions .idea/workspace.xml

This file was deleted.

Binary file modified out/production/clientDocks/AddDocsTab.class
Binary file not shown.
Binary file modified out/production/clientDocks/ClientGUI$1.class
Binary file not shown.
Binary file modified out/production/clientDocks/ClientGUI$10.class
Binary file not shown.
Binary file modified out/production/clientDocks/ClientGUI$2.class
Binary file not shown.
Binary file modified out/production/clientDocks/ClientGUI$8.class
Binary file not shown.
Binary file modified out/production/clientDocks/ClientGUI$9.class
Binary file not shown.
Binary file modified out/production/clientDocks/ClientGUI.class
Binary file not shown.
Binary file not shown.
12 changes: 6 additions & 6 deletions src/ClientGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ public ClientGUI() throws RemoteException, NotBoundException, MalformedURLExcept
newDocButton.setEnabled(false);
newDocNameField.setEnabled(false);

String server = "10.10.1.3";
final ConnectionInterface ci = (ConnectionInterface) Naming.lookup("//" + server + "/1527");

// InitialContext ic = new InitialContext();
// final ConnectionInterface ci = (ConnectionInterface)ic.lookup("//10.10.1.3/nikitot");
String server = "127.0.0.1";
final ConnectInterface ci = (ConnectInterface) Naming.lookup("//" + server + "/DocsRMI");
// modules/glassfish-naming
// InitialContext ic = new InitialContext();
// final ConnectInterface ci = (ConnectInterface)ic.lookup("//10.10.1.3/nikitot");

loginOrCreateButton.addActionListener(new ActionListener() {
@Override
Expand Down Expand Up @@ -303,7 +303,7 @@ public void keyTyped(KeyEvent e) {
});
}

private void updateDocsTable(ConnectionInterface ci) throws RemoteException {
private void updateDocsTable(ConnectInterface ci) throws RemoteException {
Vector<String> colsName = new Vector<String>();
colsName.add("Name");
colsName.add("Author");
Expand Down
2 changes: 1 addition & 1 deletion src/ConnectionInterface.java → src/ConnectInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import java.rmi.RemoteException;
import java.util.ArrayList;

public interface ConnectionInterface extends Remote {
public interface ConnectInterface extends Remote {
// boolean createUser(String login, String password);
//
// boolean loginUser(String login, String password);
Expand Down