Transparent JButton

后端 未结 2 402
旧巷少年郎
旧巷少年郎 2020-11-29 00:37

Is it possible to make a JButton transparent (including the border) but not the text? I extend swing\'s JButton and override this:

@Override
public void pain         


        
2条回答
  •  独厮守ぢ
    2020-11-29 01:22

    button.setOpaque(false);
    button.setContentAreaFilled(false);
    button.setBorderPainted(false);
    

提交回复
热议问题