Hello, I'm working on a calendar app with a background image in a JPanel. I would like to have the borders of the various days painted in with the day in the upper right corner of each day as a jbutton, allowing users to click on it and edit their schedule for that day. Is it possible to have a transparent jbutton - when I try the usual setopaque, I'm told this isn't allowed for this component. Is there an alternative way of creating a transparent jbutton than through this method? Thanks.
You have to create customised Button - a class extending JButton, overriding paint() method. In paint() method, you have to provide painting for the component. Note: don't call super.paint() in paint() method implementation.