Thoughts about CR 6483875
Hi, let me share my thoughts about CR 6483875 "Save and restore the Configuration/Template editor window size"
1) I'm not sure that this is right idea because our config editor has very complicated layout and we have a lot of code in com.sun.interview.wizard package that calculates and sets right size for the window and its components based on particular content. We had many problems with the layout especially if complex questions like PropertyQuestion were included. Now it works not a bad and I'm afraid to break this.
2) On the other hand saving/restoring size and position could be useful function for any dialogs. So I'd suggest to add this feature to the base ToolDialog class. As for config editor we can TRY to restore a size and we can restore window location.
So my suggested fix is here - https://jtharness.dev.java.net/source/browse/jtharness?view=rev&rev=1551
First, it adds some save/restore functionality to the base ToolDialog class
Second, TRIES to save and restore size and position for config/template editors but typically size can not be restored.
What do you think?
Thanks in advance,