Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

the following statement just needs a replay to please The scenario states I expe

ID: 2702727 • Letter: T

Question

the following statement just needs a replay to please


The scenario states I expect users on many "different platforms", so right away that tells me I want to use a layout manage. Otherwise, my hard coding is only going to work on one platform. Layout managers have some nice advantages... they can correctly position components that are independent of fonts, screen resolutions, and platform differences, they have intelligent component placement for containers that are dynamically resized at runtime, and they can offer an easier translation. If a string increases in length after translation, the associated components stay properly aligned.

Hard coding is still possible, but I would have to know all the possible platforms and configurations. This isnt always going to be the case. Ideally whoever I am writing the code for, tells me where they expect it to be used. I can use layout managers to specify rules and constraints for the layout of UI in a way that the code will be portable.

Explanation / Answer

users may be expected on many"different platforms", so right away is to use a layout manage. The                     hard coding is only going to work on one platform. Layout managers have some nice advantages... they can correctly position components that are independent of fonts, screen resolutions, and platform differences, they have intelligent component placement for containers that are dynamically resized at runtime, and they can offer an easier translation. If a string increases in length after translation, the associated components stay properly aligned.

Hard coding is still possible, but for this we have to know all the possible platforms and configurations. This isnt always going to be the case. Ideally whoever I am writing the code for, tells me where they expect it to be used. I can use layout managers to specify rules and constraints for the layout of UI in a way that the code will be portable