What are some of the decisions you must make when extending a JFrame?

What will be an ideal response?


When you extend a JFrame to create a new custom class, you must remember to make decisions as to which attributes you want to set within the class and which you want to leave to the applications that will use the class. For example, you can place the setVisible() statement within the JFrame child class constructor (using either an explicit or implied this reference), or you can allow the application to use a setVisible() statement (using the name of an instantiated object followed by a dot and the method name). Either one works, but if you fail to do either, the frame will not be visible.

Computer Science & Information Technology

You might also like to view...

Ideally, a database user should have access to the data through forms and ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

A ________ displays when the contents of a window are not completely visible

A) scroll arrow B) restore button C) scroll bar D) minimize button

Computer Science & Information Technology

In the accompanying figure, Item 2 refers to the ____.

A. toolbar control B. action button C. size control D. quick look button

Computer Science & Information Technology

In Babbage's Analytical Engine, a mill was most like the ____ of modern-day computers.

A. RAM B. processor C. logic unit D. input/output

Computer Science & Information Technology