Hi Gurpreet,
Shall I use the default Metal for my main client gui ?. Or provide a option for the examiner on menu with different PLAF's. Secondly, do we require any decoration of gui for example my client gui background color is yellow. These sort of things or shall I left it plain (default : Metal).
These things are probably not worth the amount of time you would have to put into them. Besides, I think the Metal is a pretty good choice in the first place. Changing colors is probably OK so long as your GUI doesn't wind up suffering from "Clown Foot" syndrome or look like the bird of paradise when you're done.
Thirdly, most important thing is that my schema is covering all of the gui from left to right. Still after covering all of the frame "destination airport" does not fits in its house. The word "airport" is invisible but destination is visible, rest of all the columns are fit. For this I had used nested panel approach and now I am using GridLayout for the table. What do you suggest shall I use FlowLayout ?. But the problem in using FlowLayout is all the schema shrinks and one cannot read the columns.
A very considerable amount of my time in developing the client GUI involved sizing the individual columns and table so all fit on the screen and each column had just enough room with a little buffer added. First of all
you should shorten the names on the column headers. I created an interface called FBNConstants which was really just a C-style struct. There was a
String[] for the schema defined there as well as a String[] for the headers. There were also constants defined for the field positions such as FLIGHT, ORIGIN, CARRIER, etc. such that SCHEMA[ORIGIN].equals("Origin airport") and HEADERS[ORIGIN].equals("Origin"). As for layout, I just wrapped the table in a JScrollPane and put that at BorderLayout.CENTER on the GUI content pane.
Sizing the individual columns involves some work, but I feel that it is a worthwhile endeavor.
Hope this helps,
Michael Morris