Using a code snippet show how to set the layout of a user interface.

      

Using a code snippet show how to set the layout of a user interface.

  

Answers


gregory
Typical syntax: in your Frame class’s constructor
setLayout(new FlowLayout(FlowLayout.LEFT))
OR
setLayout(new FlowLayout(FlowLayout.LEFT,hgap,vgap))
gregorymasila answered the question on January 24, 2018 at 17:42


Next: Differentiate between the following layout managers i. GridLayout ii. BorderLayout iii. FlowLayout
Previous: Explain the procedure for converting an applet to an application.

View More Computer Science Questions and Answers | Return to Questions Index


Exams With Marking Schemes

Related Questions