|Introduction||Simulating a Button Click|
|Creating and Configuring a JButton||Gotchas|
Even when you use a round button image, it still lives on a rectangular transparent background. This means if the user clicks in the transparent corners, it still counts as clicking the button. It also counts for the rollover button highlighting.
If you did a setLayout ( null ); you could absolutely position your buttons so they overlapped slightly in the transparent corners. This would let you pack the buttons more closely than the surrounding rectangles would naturally allow.
theButton.setFocusPainted( false );
This page is posted
Optional Replicator mirror
Your face IP:[22.214.171.124]
You are visitor number|