0

What method to override when extending Panel?

asked 2009-01-15 17:21:19 +0800

zacusca gravatar image zacusca
79 1 2

Hello!

As a beginner, I would like to ask you: If I am to create a class that extends Panel, which method should I override in order to put components on my panel? Something like this:

public class EventWindow extends Panel {
    public EventWindow() {
    
    }

    public void ....() //add components to the panel here
}

When using a Composer, there is the "doAfterCompose(Component comp)" method, and this one has to be overridden, but I haven't the slightest clue about what method to override when extending Panel.

Thanks in advance!

Radu

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2009-01-19 01:53:01 +0800

evpole gravatar image evpole
481 2

maybe you could try to do it in your constructer.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-01-15 17:21:19 +0800

Seen: 125 times

Last updated: Jan 19 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More