I really need help! Stuck on a few java questions.
1.) What is the default layout manager for Window Container?
I want to confirm its "GridLayout"?
2.) Which layout Manger will respect all dimensions of a component's preferredsize?
I want to confirm its "FlowLayout"?
3.) Which of the following listener interfaces have an associated adapter class?
KeyListener, ItemListener, MouseListener, ActionListener, TextListener.
I think its "KeyListener and MouseListener."
4.) Is it a syntax error if a method in a superclass and a method in its subclass have the same signature but different type?(True or false)?
5.) You can use obj instanceof AClass to check whether an object is an instance of a class?(True or false)?
Thanks.
[736 byte] By [
Storm9a] at [2007-11-27 11:08:35]

1) All top level container have rootpane. You cannot set the layout directly on the JWindow. You should call getContentPane() and set layout. The default content pane will have borderlayout as layout manager.
4) yes,it is an error. The signature of the method in the subclass should be same and should return the same type as its super class.
5) yes
hi Storm9,
why not you go and have look at Swing
forum?Anything about layout Managers can be learnt from there.
If you want to learn about Listeners, why not go and surf sun java tutorials.
I guess having these questions in your hand, that you're just waiting someone to help you = feed you
.
No... this is not the place for it anymore,hmm.. yeah!
Because, there're are so many resources already in this forum and in other internet places that you can learn. It's a whole lot.
Go.. and learn it, try yourself. When you do it by yourself, you learn truly.
BTW : look for examples to see exactly what you want to know about super classes and how the interaction.
All the Best to be a good Java Developer Storm9!