Tag: shapes

Different button shapes in swing

Make a class that extends JButton and in its constructor write following [Following code is common for all shapes]: Round [Circular] buttons: Triangle buttons: Oval buttons: RoundRect buttons Star buttons: Just change the first argument of makeStarDesign to number of arrows you want in star and it will try to draw it for you. 🙂 … Continue reading Different button shapes in swing