Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2356

The groovy.ui.Console always switches the Swing look and feel breaking some running applications that use another LnF

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.1-rc-1, 1.1-rc-2, 1.1-rc-3
    • 1.5
    • Groovysh
    • None
    • Windows Vista running JDK6 with a non-system look and feel (in this case jgoodies or Jide respectively)

    Description

      I added the ability to start a groovy.ui.Console from within my swing application using a simple

      new Console(binding).run();

      call, however that call internally resets the look and feel to the system look and feel which causes all kinds of weird UI problems in the running application which has been configured to use a different look and feel.
      I like the fact that the LnF is set to the system look and feel, but that should only happen if the Console is run using the main() not in general if opened via a simple run().

      To maintain backward compatibility I would suggest to add a property which can be used to disable the LnF switching.

      Attachments

        Activity

          People

            shemnon Daniel Ferrin
            yguy Sebastian Müller
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m