drobne opravy
parent
ed24bddcc7
commit
635f301b1d
|
|
@ -1,7 +1,7 @@
|
||||||
autoconnect = true
|
autoconnect = true
|
||||||
debug = true
|
debug = true
|
||||||
port = 1225
|
port = 1225
|
||||||
server = 10.5.5.49
|
server = localhost
|
||||||
user = michal
|
user = michal
|
||||||
volume = 75
|
volume = 75
|
||||||
start_minimalized = false
|
start_minimalized = false
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
package jnet.client.gui;
|
package jnet.client.gui;
|
||||||
|
|
||||||
|
import jnet.client.gui.serversettings.ServerSettingsPanel;
|
||||||
import jnet.client.gui.dialog.LoginDialog;
|
import jnet.client.gui.dialog.LoginDialog;
|
||||||
import jnet.client.network.NettyClient;
|
import jnet.client.network.NettyClient;
|
||||||
import java.awt.Dimension;
|
import java.awt.Dimension;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
package jnet.client.gui;
|
package jnet.client.gui;
|
||||||
|
|
||||||
|
import jnet.client.gui.serversettings.ServerSettingsPanel;
|
||||||
import jnet.client.gui.mapview.MapView;
|
import jnet.client.gui.mapview.MapView;
|
||||||
import jnet.client.Client;
|
import jnet.client.Client;
|
||||||
import java.awt.BorderLayout;
|
import java.awt.BorderLayout;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package jnet.client.gui.dialog;
|
package jnet.client.gui.dialog;
|
||||||
|
|
||||||
import jnet.client.gui.ServerSettingsPanel;
|
import jnet.client.gui.serversettings.ServerSettingsPanel;
|
||||||
import jnet.client.gui.Window;
|
import jnet.client.gui.Window;
|
||||||
import jnet.client.network.NettyClient;
|
import jnet.client.network.NettyClient;
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
|
|
|
||||||
|
|
@ -35,10 +35,10 @@ public class OnlineClientsDialog extends JDialog {
|
||||||
JLabel line = new JLabel(" " + oc.getUsername() + " (" + oc.getIp() + ")");
|
JLabel line = new JLabel(" " + oc.getUsername() + " (" + oc.getIp() + ")");
|
||||||
switch (oc.getPlatform()) {
|
switch (oc.getPlatform()) {
|
||||||
case OnlineClients.PLATFORM_MOBILE:
|
case OnlineClients.PLATFORM_MOBILE:
|
||||||
line.setIcon(new ImageIcon(ImageIO.read(new File("img/platform_android.png"))));
|
line.setIcon(new ImageIcon(ImageIO.read(getClass().getResourceAsStream("/img/platform_android.png"))));
|
||||||
break;
|
break;
|
||||||
case OnlineClients.PLATFORM_PC:
|
case OnlineClients.PLATFORM_PC:
|
||||||
line.setIcon(new ImageIcon(ImageIO.read(new File("img/platform_pc.png"))));
|
line.setIcon(new ImageIcon(ImageIO.read(getClass().getResourceAsStream("/img/platform_pc.png"))));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
panel.add(line);
|
panel.add(line);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package jnet.client.gui.dialog;
|
package jnet.client.gui.dialog;
|
||||||
|
|
||||||
import jnet.client.gui.ServerSettingsPanel;
|
import jnet.client.gui.serversettings.ServerSettingsPanel;
|
||||||
import jnet.client.gui.Window;
|
import jnet.client.gui.Window;
|
||||||
import jnet.client.network.NettyClient;
|
import jnet.client.network.NettyClient;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package jnet.client.gui;
|
package jnet.client.gui.serversettings;
|
||||||
|
|
||||||
import jnet.client.Client;
|
import jnet.client.Client;
|
||||||
import jnet.client.gui.dialog.AddDeviceTypeDialog;
|
import jnet.client.gui.dialog.AddDeviceTypeDialog;
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package jnet.client.gui;
|
package jnet.client.gui.serversettings;
|
||||||
|
|
||||||
import jnet.client.Client;
|
import jnet.client.Client;
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
package jnet.client.gui;
|
package jnet.client.gui.serversettings;
|
||||||
|
|
||||||
|
import jnet.client.gui.serversettings.TableDeviceType;
|
||||||
import jnet.client.Client;
|
import jnet.client.Client;
|
||||||
import jnet.client.gui.dialog.UserDialog;
|
import jnet.client.gui.dialog.UserDialog;
|
||||||
import java.awt.Component;
|
import java.awt.Component;
|
||||||
|
|
@ -83,8 +84,8 @@ public class TableUsers extends JTable {
|
||||||
for (User u : Client.users) {
|
for (User u : Client.users) {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ImageIcon ii_yes = new ImageIcon(ImageIO.read(getClass().getResourceAsStream("img/yes.png")));
|
ImageIcon ii_yes = new ImageIcon(ImageIO.read(getClass().getResourceAsStream("/img/yes.png")));
|
||||||
ImageIcon ii_no = new ImageIcon(ImageIO.read(getClass().getResourceAsStream("img/no.png")));
|
ImageIcon ii_no = new ImageIcon(ImageIO.read(getClass().getResourceAsStream("/img/no.png")));
|
||||||
|
|
||||||
this.setValueAt(u.getId(), row, 0);
|
this.setValueAt(u.getId(), row, 0);
|
||||||
this.setValueAt(u.getUsername(), row, 1);
|
this.setValueAt(u.getUsername(), row, 1);
|
||||||
Loading…
Reference in New Issue