Waypoint kaas

This commit is contained in:
Yorick
2015-04-08 14:22:01 +02:00
parent a03463442c
commit 420e596590
5 changed files with 138 additions and 39 deletions
+3 -2
View File
@@ -17,7 +17,7 @@ public class WaypointPopup extends JFrame {
private static final long serialVersionUID = 1;
public WaypointPopup(DrawObject w)
public WaypointPopup(DrawObject w, Panel panel)
{
super("Artist editscreen!");
Waypoint wp = (Waypoint) w;
@@ -29,7 +29,7 @@ public class WaypointPopup extends JFrame {
content.add(center, BorderLayout.CENTER);
JPanel panel1 = new JPanel();
JLabel name = new JLabel("Waypoint");
JLabel name = new JLabel("Waypoint" + wp.getSelf());
panel1.add(name);
center.add(panel1);
@@ -44,6 +44,7 @@ public class WaypointPopup extends JFrame {
public void actionPerformed(ActionEvent e)
{
wp.setSelf(Integer.valueOf(tf.getText()));
panel.addWaypoint(wp);
dispose();
}
});