posted 14 years ago
Hi. I need some help but let me explain first.
I'm creating a component based off of JPanel. It's has a transparent background and an empty border. When I click it, it changes to a Yellow line border, then after 1.2 seconds it changes back to an empty border. My problem is, when I set the border back to the emptyborder, the border really does change to an empty border, but the color from the yellow line border remains! If I give my component a solid background, I do not have this problem.
Any thoughts? I've tried setting the border to null, tried setUI( new BasicPanelUI() );
Thanks in advance!