Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

class JFrame  RSS feed

 
leo donahue
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
True or False:

getContentPane is a method of class JFrame.

I'll hold off on my opinion for now. Just curious to see the responses.
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rather that writing yes or no, here's a handy link to answer your next one hundred questions: http://java.sun.com/j2se/1.5.0/docs/api/
 
leo donahue
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jeff Albertson:
Rather that writing yes or no, here's a handy link to answer your next one hundred questions: http://java.sun.com/j2se/1.5.0/docs/api/


Jeff, I post questions for the benefit of learning. I know the answer to the question already. My goal is to solicit an intelligent conversation with people in this forum. Please, think about the question before you put me in a box and direct me to the api.

Is getContentPane a method of class JFrame? Obviously it is in the api. But put some thought into how you use getContentPane. Is that method an inherited method, or is it a method that must be implemented because class JFrame implements interface RootPaneContainer? Can you just call method getContentPane? No. You must assign the return value of that method to a Container object.

So what is you answer now?
[ March 03, 2006: Message edited by: leo donahue ]
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> I post questions for the benefit of learning. I know the answer to the
> question already. My goal is to solicit an intelligent conversation with
> people in this forum. Please, think about the question before you put me >
> in a box and direct me to the api.

Funny, I don't recall your original post indicating that you already knew the answer and that you wanted to start a discussion. I thought you wrote "True or False: getContentPane is a method of class JFrame." If you think I was unfaily putting you into a box, it was only because your post was indistinguishable from the many posts where the posters are too lazily to go to the API.
 
leo donahue
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeff,

I don't want to trade insults with you.

I thought this forum was a place to sharpen oneself. I am apparently mistaken. I apologize for posting a question that you find lazy.

If you read a post and feel as though it was lazily written, or it is not distinguishable from any other lazy "do my homework" poster, then why do you bother to give it a reply? Just ignore it and lazy posters will stop posting, eventually. Your reply sends the wrong message about you.
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So do you have an actual question? Your earlier response suggests that you do, but I can't quite tell what it is.
 
leo donahue
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Paul Clapham:
So do you have an actual question?


Yes.

Your earlier response suggests that you do, but I can't quite tell what it is.


It's fairly straightforward.
I originally asked: "True or False - getContentPane is a method of class JFrame".

You can interpret it as:
Is 'getContentPane' an inherited method from the class Container or one that must be implemented via the RootPaneContainer interface? I don't think it's a hard question. My goal was to see how people initially responded, after giving it some thought. I'm not trying to be stupid or arrogant, I just wanted to know what people's "off the cuff response" would be.

So far I've only received your reply and Jeff's. Neither one of them seem friendly. You both seem bent on proving my question as idiotic, but neither of you give your thoughts.
[ March 06, 2006: Message edited by: leo donahue ]
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaRanch is, by design, "A friendly place for Java greenhorns". I'll thank all of you to continue to be as nice as possible.

Leo, I understand -- as I imagine we all do now -- that your intent in posting this question was to stimulate discussion. Jeff's reaction is understandable, though, because your approach and your intent are very unusual around these parts. Usually, someone asks a question, and they'll get an answer. Many people will use a Socratic or Rogerian approach to draw the answer out of the original poster. You've turned the tables on all of us. In all my nearly 12,000 posts, I don't recall ever seeing a stranger ride in and start asking leading questions with the intent to educate.

Now, with all that said, I still don't personally understand where you wanted this to go. Maybe you're just saying, "Huh! I just found out that JFrame.getContentPane() is actually defined in an interface named 'RootPaneContainer', and that interface is implemented by half a dozen classes. Thought I'd point this out in case it might help somebody."

But in any case, let's nobody take offense. Jeff made an honest mistake, and I know he's man enough to admit it. We try to welcome strangers around these parts, even if their ways seem odd to us. In time, we'll get to know ye and we'll all be friends.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!