LineBorder do not react on colors. What verif

2012-06-23
2013-04-29
  • SashaBamboo

    SashaBamboo - 2012-06-23

    y to…?

    What shall I verify, or what may cause this, when line borders do not react on color specifing?

    Here is screenshot of Charva's test.sh -
    http://s1.ipicture.ru/uploads/20120623/RxCjztjz.png - several terminal emulators (XTerm, LXTerminal, Konsole) and color support is functional.

    But all borders are white on black, even when another color was specified.

    The same is observed in my own code using Charva:
        JPanel contentPanel = new JPanel();
        contentPanel.setBorder(new LineBorder(Color.red));
        …

    What must be checked to verify why borders only are not colorified?

     
  • John

    John - 2013-03-05

    Hi,

    I know it is an old thread, but i was also struggling with this, but after some searching today i took a look at the Toolkit.c which is in the download package.

    The function Java_charva_awt_Toolkit_drawBoxNative is missing the use of the commands attron() and attroff():

    I added "attron(attr);" at line 374, and an "attroff(attr);" at line 417 (without the double quotes offcourse).

    After i recompiled the thingy it worked.

    Hope it still helps you or others.

    John.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks