swingx
  1. swingx
  2. SWINGX-158

DropShadowBorder on buttons, textfields displays funny

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 0.9.0
    • Fix Version/s: 0.9.0
    • Component/s: Misc Component
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: PC

    • Issuezilla Id:
      158

      Description

      After creating a simple JXFrame and adding a few swing and swingx component with
      NetBeans (dev build 4.2 from Aug 30 2005), there are some strange shadows that
      appear, and opacity seems off.

      I'll attach the code generated by Netbeans and a screenshot.

      1. FramewithDropShadows.java
        6 kB
        anns97
      2. NewJXFrame.java
        3 kB
        anns97
      1. dropshadowborder.png
        41 kB
      2. dropshadowInPanel_issue158.png
        44 kB

        Activity

        Hide
        anns97 added a comment -

        Created an attachment (id=28)
        generated code - a JXFrame with a button, list and textfield

        Show
        anns97 added a comment - Created an attachment (id=28) generated code - a JXFrame with a button, list and textfield
        Hide
        anns97 added a comment -

        Created an attachment (id=29)
        screenshot of jxframe with button, list, textfield with dropshadowborders

        Show
        anns97 added a comment - Created an attachment (id=29) screenshot of jxframe with button, list, textfield with dropshadowborders
        Hide
        anns97 added a comment -

        made summary more accurate.

        Show
        anns97 added a comment - made summary more accurate.
        Hide
        kleopatra added a comment -

        cleanup: subcomponent

        Show
        kleopatra added a comment - cleanup: subcomponent
        Hide
        rbair added a comment -

        This is normal for those components, because of how they work their borders and
        margins. One work around is to embed your button/text field in a JPanel and give
        that panel the border. You may also be able to use a compound border for
        Button/TExtField, but I'm not certain on that

        Show
        rbair added a comment - This is normal for those components, because of how they work their borders and margins. One work around is to embed your button/text field in a JPanel and give that panel the border. You may also be able to use a compound border for Button/TExtField, but I'm not certain on that
        Hide
        anns97 added a comment -

        Workaround also awfully ugly. (embedding components into a panel with
        dropshadow) You don't think this is going to be a common case use of dropshadow?
        Attached are code and screenshot.

        A common case that I can see is trying to use DropShadows for menus.. I tried,
        and you can see the results.

        Show
        anns97 added a comment - Workaround also awfully ugly. (embedding components into a panel with dropshadow) You don't think this is going to be a common case use of dropshadow? Attached are code and screenshot. A common case that I can see is trying to use DropShadows for menus.. I tried, and you can see the results.
        Hide
        anns97 added a comment -

        Created an attachment (id=55)
        source code - frame containing components embedded in panels with dropshadow

        Show
        anns97 added a comment - Created an attachment (id=55) source code - frame containing components embedded in panels with dropshadow
        Hide
        anns97 added a comment -

        Created an attachment (id=56)
        screenshot of jxframe with button,textfield embedded in panels with dropshadowborders

        Show
        anns97 added a comment - Created an attachment (id=56) screenshot of jxframe with button,textfield embedded in panels with dropshadowborders

          People

          • Assignee:
            swingx-issues
            Reporter:
            anns97
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: