| setOpaque Usage | ||
|---|---|---|
| setOpaque(?) | call super.paintComponent
in paintComponent? |
Meaning |
| false | There is no point in doing this. | |
| false | You will paint only some of the pixels or use some transparent pixels to deliberately let what is painted underneath show through. | |
| true | You paint every pixel of the region, with no transparent pixels, and you want Swing to clear the region to the background colour for you automatically. | |
| true | You paint every pixel of the region, with no transparent pixels, and you will clear the background as needed with clearRect yourself in your paintComponent method. | |
If in your TableCellRenderer you create your own JLabels to return, rather than using the one from DefaultTableCellRenderer, make sure you call JLabel.setOpaque( true ) or else your JLabel.setBackground will be ignored.
|
|
available on the web at: |
http://mindprod.com/jgloss/setopaque.html |
optional Replicator mirror
|
J:\mindprod\jgloss\setopaque.html | |
![]() |
Please email your
feedback for publication,
letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear
wording, broken/redirected link reports, suggestions to improve this page or comments to
Roedy Green :
| |
| Blog | Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[23.22.252.150] |
|
| Feedback | You are visitor number 11. | |