Properties Of The Frame.

Q10. Write the purpose of following two properties of the frame i.e., JFrame type object.

  1.  title 
  2. iconImage

Ans.

  1. title: This property is used to set the title of the frame which is displayed on the title bar of the frame.
  2.  iconImage: This property is used to specify the icon that would appear on the title bar of frame.

Leave a Reply

Your email address will not be published. Required fields are marked *