swingx
  1. swingx
  2. SWINGX-1389

JXErrorPane: Layout is incorrect with larger amounts of text

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.6.1
    • Fix Version/s: None
    • Component/s: Error
    • Labels:
      None
    • Environment:

      Operating System: Windows Vista
      Platform: PC

    • Issuezilla Id:
      1,389

      Description

      The following test run on Windows 7 (and probably other members of the family) exhibits layout issues where
      unnecessary space appears below the text and the buttons are pushed off the bottom of the dialog.

      public class ErrorPaneTest {
      public void run() {
      try

      { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); }

      catch (Exception e)

      { // Ignore }

      Exception e = new Exception("<html>" +
      "The file is locked by another instance of the software.<br>\n" +
      "Only one instance can open a file at a time.\n" +
      "<br><br>\n" +
      "<strong>Locked by: App<br>\n" +
      "running on 127.0.0.1 as user bob</strong>\n" +
      "<br><br>\n" +
      "If using a server, it is possible that another user opened the file<br>\n" +
      "at a point in time when the server was not configured to see the file.<br>\n" +
      "Closing down that app should fix the problem, though it will<br>\n" +
      "take the server a little time to refresh.\n" +
      "</html>\"/>");
      JXErrorPane.showDialog(null, new ErrorInfo("Unexpected error", e.getMessage(), null, null, e, null, null));
      }

      public static void main(String[] args)

      { new ErrorPaneTest().run(); }

      }

      Additionally, if you resize the dialog, the positions of the buttons will shuffle. I think the buttons should anchor to
      the bottom right regardless of the size of the dialog.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            trejkaz
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: