Fixed errors
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package org.openautonomousconnection.webclient.network.website.tab;
|
||||
|
||||
import org.openautonomousconnection.webclient.network.website.WebSite;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.net.URL;
|
||||
|
||||
@@ -10,5 +12,8 @@ public interface Tab {
|
||||
URL getInfoName();
|
||||
void setInfoName(URL infoName);
|
||||
|
||||
WebSite getWebSite();
|
||||
void setWebSite(WebSite webSite);
|
||||
|
||||
void refresh() throws Exception;
|
||||
}
|
||||
|
||||
@@ -52,6 +52,7 @@ public final class WebTab implements Tab {
|
||||
}
|
||||
|
||||
public void refresh() throws Exception {
|
||||
|
||||
if (client.getClientServerConnection().isConnected()) client.getClientServerConnection().disconnect();
|
||||
int port = infoName.getPort() == -1 ? DEFAULT_WEB_PORT_TCP : infoName.getPort();
|
||||
client.buildServerConnection(null, true);
|
||||
|
||||
@@ -4,15 +4,7 @@
|
||||
|
||||
package org.openautonomousconnection.webclient.ui;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.awt.event.ComponentAdapter;
|
||||
import java.awt.event.ComponentEvent;
|
||||
import java.awt.event.MouseAdapter;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.awt.geom.RoundRectangle2D;
|
||||
import org.openautonomousconnection.oacswing.component.OACFrame;
|
||||
|
||||
public abstract class BrowserFrame extends OACFrame {
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ import java.awt.event.MouseAdapter;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.awt.event.MouseMotionAdapter;
|
||||
|
||||
@Deprecated(forRemoval = true)
|
||||
public class TopBar extends JPanel {
|
||||
@Getter
|
||||
private MenuButton closeButton, minimizeButton, maximizeButton;
|
||||
|
||||
Reference in New Issue
Block a user