Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » How can I view the visual components from a class that extends from an abstract class?
How can I view the visual components from a class that extends from an abstract class? [message #617576] Mon, 14 December 2009 18:40
Danilo  is currently offline Danilo Friend
Messages: 9
Registered: September 2009
Junior Member
Hello!

I've created an abstract class that extends from JPanel. If I create any class that extends this first class, that class doesn't show the componentes from the first class.

What can I do for showing the components?

public abstract class AbstractClass extends JPanel {

private JLabel jLabel = null;

public AbstractClass() {
super();
initialize();
}

private void initialize() {
GridBagConstraints gridBagConstraints = new GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 0;
jLabel = new JLabel();
jLabel.setText("JLabel");
this.setSize(300, 200);
this.setLayout(new GridBagLayout());
this.add(jLabel, gridBagConstraints);
}

}

public class A extends AbstractClass {

}
Previous Topic:How can I view the visual components from a class that extends from an abstract class?
Next Topic:Palette Entry
Goto Forum:
  


Current Time: Tue Mar 19 06:18:47 GMT 2024

Powered by FUDForum. Page generated in 0.02212 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top