In my design, when start the application, a dialog will prompt for user to select the connection type(local or remote). The dialog is fixed size, I want to setLayoutManagement to this dialog to null. Do U think it's not good and deducted some marks ? Thx a lot.
Hi Alan, welcome to JavaRanch. The reason for layout managers is that it provides an object oriented way of laying out components that works regardless of operating system. The bad things about setting layout manager to null and manually placing each component are that:
Adding or moving a component becomes very labour intensive - if you add a row, all components under that row have to manually moved down a row.
The same screen displayed on different operating systems can look wrong: If you design using a screen with standard components that take up 12 pixels, and move to a screen with standard components that take up 16 pixels, then your components may overlap. Conversely, if you design on a screen with standard components that take up 16 pixels and move to a screen with standard components that take up 12 pixels, then your components may move too far apart.
My instructions mention that:
Your user interface should be designed with the expectation of future functionality enhancements
I think that the first point I mentioned above would fail to meet this requirement. A further requirement is:
. This is worth 16% of the whole assignment! If the examiner starts your application on the wrong hardware (or even just notices that it might cause problems) you could loose significant points here. So, no - even though it is not specifically disallowed, I think there is too much risk of it costing you marks. Regards, Andrew