Waypoint kaas
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user