Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Commit

Permalink
Revert "make the GUI scrollable when needed"
Browse files Browse the repository at this point in the history
This reverts commit 9148359.

Revert commit since it also scroll horizontaly
  • Loading branch information
Laurent Clouet committed Jun 17, 2018
1 parent b2a0caf commit 2b90085
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/com/sheepit/client/standalone/GuiSwing.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
package com.sheepit.client.standalone;

import java.awt.AWTException;
import java.awt.Container;
import java.awt.GridBagLayout;
import java.awt.Image;
import java.awt.MenuItem;
Expand All @@ -39,7 +38,6 @@
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.border.EmptyBorder;
Expand All @@ -60,7 +58,6 @@ public enum ActivityType {

private SystemTray sysTray;
private JPanel panel;
private JScrollPane scrollPane;
private Working activityWorking;
private Settings activitySettings;
private TrayIcon trayIcon;
Expand Down Expand Up @@ -130,8 +127,7 @@ public void windowStateChanged(WindowEvent e) {

panel = new JPanel();
panel.setLayout(new GridBagLayout());
scrollPane = new JScrollPane(panel);
setContentPane(this.scrollPane);
setContentPane(this.panel);
panel.setBorder(new EmptyBorder(20, 20, 20, 20));

activityWorking = new Working(this);
Expand Down Expand Up @@ -338,11 +334,6 @@ public void actionPerformed(ActionEvent e) {

}

@Override
public Container getContentPane() {
return panel;
}

public class ThreadClient extends Thread {
@Override
public void run() {
Expand Down

0 comments on commit 2b90085

Please sign in to comment.