Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.6.2
    • Fix Version/s: None
    • Component/s: Renderer
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      1,376

      Description

      If JRendererLabel were using a JXLabel instead of the JLabel, this renderer
      could easily handle line wrapping.

      Line wrapping in a table also generate the problem that the table doesn't
      automatically resize its cells when a cell needs it(how could he knows). A
      possible solution would be to change the height of the cell when the column is
      resized.

        Activity

        Hide
        kleopatra added a comment -

        hmm ... did you actually try to use a JXLabel? Asking, because I doubt the "easily" Last time I looked into it the outcome was less than satisfying - there's a visual test in RendererVisualCheck. Which seems to be completely broken ... as of changes in the JXLabel background handling (@Karl?)

        Cheers
        Jeanette

        Show
        kleopatra added a comment - hmm ... did you actually try to use a JXLabel? Asking, because I doubt the "easily" Last time I looked into it the outcome was less than satisfying - there's a visual test in RendererVisualCheck. Which seems to be completely broken ... as of changes in the JXLabel background handling (@Karl?) Cheers Jeanette
        Hide
        Karl Schaefer added a comment -

        I would tend to think that we want to keep the normal label renderer as lightweight as possible. We may want to provide a second variant that supports multi-line display.

        Regardless, we need to simplify the painter support in JXLabel before we consider any such move.

        Show
        Karl Schaefer added a comment - I would tend to think that we want to keep the normal label renderer as lightweight as possible. We may want to provide a second variant that supports multi-line display. Regardless, we need to simplify the painter support in JXLabel before we consider any such move.
        Hide
        Karl Schaefer added a comment -

        I do not think JXLabel is the way to go to multi-line rendering. Updating the title to capture the root idea here and marking as a new feature. I think this should cover what was intended.

        Show
        Karl Schaefer added a comment - I do not think JXLabel is the way to go to multi-line rendering. Updating the title to capture the root idea here and marking as a new feature. I think this should cover what was intended.

          People

          • Assignee:
            kleopatra
            Reporter:
            klbsjpolp
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: