Home » questions » Can someone help explain this line of Java please?
Can someone help explain this line of Java please?
This is from pg. 355 of 'Head First Java - Second Edition'. I can't understand what is getting passed here. Directly from the book:
frame.getContentPane() .add(button);
Supposedly this is adding the button to the frame's content pane. But from reading this example in the book, I can't tell what function is getting called. Can you please help clarify this? Normally, I expect a method call to look like this:
BlahMethod(argument1, argument2, etc);
The placement of the period (and what appears to be a space) is throwing me here.
Thanks. And I'm new at this so go easy please...

Answers
Novy
On 2006-08-04 11:05:39
Neussendorfera
On 2006-08-04 09:51:56
rachelle105210
On 2006-08-04 09:50:58
boris
On 2006-08-04 09:54:03
TJ
On 2006-08-04 09:56:33
arbeit
On 2006-08-11 10:20:08