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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.1-rc-1, 1.1-rc-2, 1.1-rc-3
    • Fix Version/s: 1.5
    • Component/s: Groovysh
    • Labels:
      None
    • Environment:
      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

            • Assignee:
              shemnon Danno Ferrin
              Reporter:
              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