I’m creating a dialog in java with some basic controls in it, and I was wondering how could I change the size of all the dialog’s controls and font sizes to the double if the parameter BIG_DIALOG was passed as true.
Hope to get some guidelines on how to accomplish this
Thanks in Advance
If your serious about doing this only for the dialog (& not effecting any other components within the GUI), you are going to need to recursively walk the component hierarchy stating at the content pane (you could start higher, but let’s makes this easy)
Of course, you should be able to fill the parameter requirements for the constructor & it’s logic
UPDATE
I put this together and got really awesome results. I may keep this idea for use in my own code, thanks!
One thing I did note is that the output for the Font.original and Font.scaled is the same. The transformation is occurring at the paint stage and does not effect the base line font, just it’s paint matrix