Menu

JButton border

Help
2004-10-13
2013-02-27
  • Lars Behnke

    Lars Behnke - 2004-10-13

    Thanks for this great look and feel.
    I ran into a strange issue with JButton: As long as I set a preferred size the button is rendered with border. However, if preferred size is not set, there is no border at all.
    Is it a bug or a feature?

     
    • Bertrand Florat

      Bertrand Florat - 2004-10-13

      This IS a bug but it seems that mikeai takes it as a "feature". To make it work again, you have to "replace toolbar.png from your version with one from 0.2.6 in icons folder inside liquidlnf.jar file".
      This already have been reported  as a bug but was closed. I can't find any logical reason to show a button like a label but this is the case. I hope this will change in futur releases so we will still not be obliged to make weird changes of the jar...
      Thanks anyway for this great LAF.

       
    • Anonymous

      Anonymous - 2004-10-18

      This "bug" (or not!?) is very distempering :-(.
      I can't use any version later than 0.2.6 in my applications.
      This error occurs even in the JOptionPane component. That sucks :-(
      anyway it is a great look and feel.

       
    • Lars Behnke

      Lars Behnke - 2004-10-19

      I finally found way to overcome this bug. I downloaded the source and replaced the lines 159 through 168 of LiquidButtonUI.java by the line getSkinButton().draw(g, index, button.getWidth(), button.getHeight()); Now even JOptionPane buttons are bordered.

       
    • Miroslav Lazarevic

      Hey guys.

      I was too busy last two month. I didn't noticed yours discussion before. I'm willing to resolve this issue. But first of all please tell me does this problem still exist in last release? I think I was resolved this with 0.2.9-alpha.

       
      • Bertrand Florat

        Bertrand Florat - 2004-11-25

        Hi,

        The 0.2.0-alpha5 solves the button border problem. Thanks a lot.

        Just another think : sometimes buttons are rounded, sometimes squared according their size. It's cool but what's the rule ?

         
        • Miroslav Lazarevic

          The rule is simple. If vertical or horizontal size of button is smaller then 21 pixel then button is squared.

           
    • Anonymous

      Anonymous - 2004-12-20

      Hello,
      now it works correct :-) but... :(
      I don't like the flat-painted Buttons in JToolBar. I'd like them with a normal border as in 0.2.6 release. Is there any way to reset the border's style?

       
      • Miroslav Lazarevic

        Yes. Answer is in the README file. You have to you use LiquidLookAndFeel.setToolbarFlattedButtons(false); static method to set flat behavior of buttons.

         

Log in to post a comment.

MongoDB Logo MongoDB