I have an inherited panel. In the design view of the child panel the attribute is not displayed. Why not?
Below you see the super class and the child class.
Thanks for any help,
Stefan
- Code: Select all
public class PanelGui_fieldStandard extends JPanel {
private JLabel labelAttribute = new JLabel("attribute");
public JLabel getLabelAttribute() { return labelAttribute; }
public void setLabelAttribute(JLabel l) { labelAttribute = l; }
public PanelGui_fieldStandard() {
super();
setLayout(null);
labelAttribute = new JLabel("attribute");
labelAttribute.setBounds(10, 10, 200, 20);
add(labelAttribute);
}
}
public class PanelGui_fieldImpl extends PanelGui_fieldStandard {
public PanelGui_fieldImpl() {
super();
}
}