how can i get Information (like Locations, Name, Size, etc.) from new Objects.
public class Labelerzeugungklasse extends JLabel {
public Labelerzeugungklasse(String name, int x, int y, ImageIcon icon) {
new JLabel(name);
this.setIcon(icon);
this.setBounds(0, 0, 80, 60);
this.setLocation(x, y);
DragListener drag = new DragListener();
this.addMouseListener(drag);
this.addMouseMotionListener(drag);
}
}
HintergrundRukkla.add(new Labelerzeugungklasse(LabelName, x, y, iiii));
Here i generate a new JLabel, but how can i get Information/Data from this Label after the generation.
Like: "generatedJLabel".getLocation();
Best Regards Justin