Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8041917

unexcepted behavior of LineBorder while using Boolean variable true

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7, 8, 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b15
    • OS:
      windows_8

      Backports

        Description

        FULL PRODUCT VERSION :
        1.7

        ADDITIONAL OS VERSION INFORMATION :
        windows 8 pro version 6.2 (9200)

        EXTRA RELEVANT SYSTEM CONFIGURATION :
        the border ->setBorder( new LineBoder(Color.white,10,true)); is not working properly in java 7 update 21 while it will work excellent in java 6 version so u must improve it

        A DESCRIPTION OF THE PROBLEM :
        just use the setBorder( new LineBoder(Color.white,10,true)); line on any JLabel , JPanel etc. & it behave differently compare to previous release

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        just use the setBorder( new LineBoder(Color.white,10,true)); line on any JLabel , JPanel etc. & it behave differently compare to previous release

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        when we true the boolean variable curve are on the edges & there is 2 line u compile the same program in java 6 & then in java 7 u find that in java6 the apperance is very atttractive as compare to java 7 that all i want
        ACTUAL -
        just use the setBorder( new LineBoder(Color.white,10,true)); line on any JLabel , JPanel etc. & it behave differently compare to previous release

        ERROR MESSAGES/STACK TRACES THAT OCCUR :
        just use the setBorder( new LineBoder(Color.white,10,true)); line on any JLabel , JPanel etc. & it behave differently compare to previous release

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        just use the setBorder( new LineBoder(Color.white,10,true)); line on any JLabel , JPanel etc. & it behave differently compare to previous release
        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        no i am a BTech student whose had to submit his project in college i notice it when i install the latest version of java so i don't know the method as i am a beginner in java who simply use gridbaglayout and made standalone desktop application. to submit in his college and want good marks in Last semester :) that's all i am :)

        Thank u for ur suppot.

        SUPPORT :
        YES

          Attachments

          1. LineBorderTest.java
            0.8 kB
            Alexey Ivanov
          2. LineBorderTest.png
            3 kB
            Alexey Ivanov

            Issue Links

              Activity

                People

                Assignee:
                malenkov Sergey Malenkov (Inactive)
                Reporter:
                webbuggrp Webbug Group
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: