Commit 366e2c94 authored by Nils Vreman's avatar Nils Vreman
Browse files

Final focus changing. Will continue working on task adding at bottom of taskset gui

parent 76cbee39
......@@ -3,10 +3,18 @@ package gui;
import javax.swing.JPanel;
import static java.awt.BorderLayout.CENTER;
import static java.awt.BorderLayout.WEST;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
public class ActionPanel extends BorderPanel {
protected ActionPanel(JPanel tasksetPanel, JPanel schedulePanel) {
add(WEST, tasksetPanel);
add(CENTER, schedulePanel);
addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent e) {
grabFocus();
}
});
}
}
package gui.tasksetgui;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.BoxLayout;
import javax.swing.JPanel;
import java.awt.Dimension;
......@@ -32,12 +30,6 @@ public class TasksetDisplay extends BoxPanel implements Observer, UpdateListener
this.taskset = taskset;
taskset.addObserver(this);
addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent e) {
grabFocus();
}
});
add(header);
setMaximumSize(new Dimension(300, 35));
add(createVerticalStrut(offset));
......
Markdown is supported
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